[ 
https://issues.apache.org/jira/browse/THRIFT-5800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868472#comment-17868472
 ] 

Jens Geyer commented on THRIFT-5800:
------------------------------------

Agree with -strict

> "Could not find include file foo.thrift" probably should be failure instead 
> of warning
> --------------------------------------------------------------------------------------
>
>                 Key: THRIFT-5800
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5800
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (General)
>            Reporter: Yuxuan Wang
>            Priority: Minor
>
> Currently when a thrift file includes a non-exist file and don't reference it 
> in any way otherwise, like this:
> {code}
> include "foo.thrift" // does not exist
> ... // don't reference anything that's foo.*
> {code}
> The compiler will generate a warning:
> {code}
> [WARNING:/path/to/file.thrift:N] Could not find include file foo.thrift
> {code}
> This probably should be failure instead of warning? Or at least be a failure 
> when -strict arg is passed in, and keep at warning without -strict.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to