IntelliJ can't find generated sources when used in same module

前端 未结 1 659
你的背包
你的背包 2021-02-07 09:26

I\'m using annotation processors of Google\'s AutoFactory. I annotated SomeClass with @AutoFactory and referenced new SomeClassFactory().create()

1条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 10:17

    I got help from Jetbrains support and the problem turned out to be a preference for excluded files. There are two places where these are configured:

    Please check that folders/files are not excluded in Preferences > Build, Execution, Deployment > Compiler > Excludes and the file/folder pattern in not listed in Preferences > Editor > File Types -> Ignored files and folders

    In my case target was included in the ignored files and folders list in Editor > File Types.

    Then there was still a compilation issue, which I solved by throwing away the IDEA project files and creating the project again.

    0 讨论(0)
提交回复
热议问题