Code Monkey home page Code Monkey logo

Comments (5)

jackkoenig avatar jackkoenig commented on September 23, 2024 3

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.

ihji avatar ihji commented on September 23, 2024

@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.

mpollmeier avatar mpollmeier commented on September 23, 2024

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.

jackkoenig avatar jackkoenig commented on September 23, 2024

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.

benmccann avatar benmccann commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.