Comments (5)
I have found that
javaSource in Antlr4 := (sourceManaged in Compile).value
helps, but I still need to run sbt "antlr4:antlr4Generate"
to make IntelliJ happy.
Is there a better way to do this?
from sbt-antlr4.
@mpollmeier Thanks for your comment. antlr4
subdirectory path was added because of the issue in sbt-idea
plugin. You can see the commit log here: b706e72
I think it's okay to remove antlr4
subdirectory path in the next version. It seems that many people are now using Intellij's native support of sbt
instead of sbt-idea
plugin.
from sbt-antlr4.
Interesting how everything revolves around intellij on this issue.
Thanks for the clarification, and the plugin :)
Shall we leave this issue open as a reminder to remove, and in case others are having the same problem?
from sbt-antlr4.
Is there a workaround for this? Can I just set javaSource in Antlr4 such that modern IntelliJ with the built-in SBT support will play nice?
from sbt-antlr4.
The recommendation is now against using (sourceManaged in Compile).value
altogether. Instead each plugin should roll out their own directory under target, and append to managedSourceDirectories in Compile
. See sbt/sbt#1664 (comment)
from sbt-antlr4.
Related Issues (15)
- Resolver URL returns 404 HOT 4
- sbt 1.0.0 compatible plugin HOT 2
- How to trigger antlr4 java code generation HOT 1
- incompatibility with sbt 1.1.0: A named attribute key must start with a lowercase letter HOT 2
- Not all the command line options are exposed through the plugin. HOT 3
- Update to ANTLR 4.8.x? HOT 1
- Invalid instructions HOT 2
- Am I missing something because it does not generate anything?
- disregard
- Infer package name from file location HOT 3
- Support for grun HOT 1
- bintray is deprecated, plugin is not (always) downloadable HOT 2
- Publish for a recent version of SBT
- Update to ANTLR 4.5.1? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-antlr4.