Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ does not create the files in src_managed #971

Open
kwalcock opened this issue Feb 23, 2021 · 1 comment
Open

IntelliJ does not create the files in src_managed #971

kwalcock opened this issue Feb 23, 2021 · 1 comment

Comments

@kwalcock
Copy link
Member

kwalcock commented Feb 23, 2021

Several of our projects have automatically generated source code. One kind is from the sbt-buildinfo plugin, which allows us to record build information in source code and have it compiled into the jar. Another kind is one specific to Eidos, the Versioner, which is used to add version information to the ontologies that are automatically retrieved from github. This is because Ben needs to know that everyone used the same ontology, or at least know what different one was used.

For most of the projects, that's the end of it. IntelliJ is not interested in these files and sbt will build as expected. Eidos, however, makes more active use of these files and IntelliJ needs to know about them. Unfortunately, with the version of sbt we're using, the scala plugin version, the build.sbt file, and anything else influencing the situation, the source files that sbt would normally produce in target/scala-2.12/src_managed are not generated if only IntelliJ is used. Build problems will ensue.

Right now it appears that the way around it is to make sure that sbt builds the project once and produces the files. After that, IntelliJ seems to be able to use them. It may be that this was the behavior the entire time and that anyone using IntelliJ happened to run sbt as well. Just recently that has not been the case.

@kwalcock
Copy link
Member Author

@JerryZeyu, thanks for discovering this problem. @vanh17, you might run into this if you move to Windows and use IntelliJ without sbt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant