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

Support ecj #1

Open
gunnarmorling opened this issue Jan 2, 2019 · 7 comments
Open

Support ecj #1

gunnarmorling opened this issue Jan 2, 2019 · 7 comments

Comments

@gunnarmorling
Copy link
Member

There should be an implementation of Deptective based on Eclipse's compiler ejc, allowing to use it right within the Eclipse IDE.

@gunnarmorling gunnarmorling changed the title Support ejc Support ecj Jan 2, 2019
gunnarmorling referenced this issue in gunnarmorling/deptective Jan 2, 2019
@nilshartmann
Copy link

We might have to differentiate between:

  • adding support for the compiler (comparable to the Javac plug-in)
  • adding support for Eclipse IDE (see Problem markers inside the IDE, provide quick-fixes etc)

@gunnarmorling
Copy link
Member Author

Yes, that's true. I think adding support for the compiler would be first step. Then we'd have to look into integrating this into the IDE.

@nilshartmann
Copy link

nilshartmann commented Jan 7, 2019

Some potential use-cases for the IDE plug-in:

  • action inside a Class/Enum/Interface on it's "package x.y.z" Statement to automatically add it to deptective.json (or to update in in deptective.json with all current deps)
  • action on a (forbidden) reference to add it to reads in deptective.json
  • a view that visualizes the dependencies (as with GraphViz but directly in Eclipse)

@mickaelistria
Copy link

Note that the Eclipse Compiler for Java is actually the foundation of Eclipse JDT-Language Server which happens to be the most powerful and popular language server for Java. VSCode, Eclipse Theia & Eclipse Che (and downstream solutions like OpenShift.io or Google Cloud Platform) and most LSP-aware IDE/editor these days are already actually using ECJ under the hood.

@gunnarmorling
Copy link
Member Author

Another IDE feature would be authoring of the Deptective configuration, including auto-complete on package names etc.

@nilshartmann
Copy link

  • navigate from java class to package config in deptective.json (and maybe somehow back, for ex to Package View)
  • mark packages in deptective.json that does not exist in the project (anymore)

@gunnarmorling gunnarmorling transferred this issue from moditect/deptective Jan 18, 2019
@gunnarmorling
Copy link
Member Author

@wuetherich, moved this issue here from the main repo.

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

3 participants