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

detect the Eclipse compiler without using the TCCL #1452

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

hwellmann
Copy link
Contributor

Fixes #1451.

The current implementation depends on the thread context class loader being set to org.eclipse.osgi.internal.framework.ContextFinder which is true in Eclipse IDE, but not in the JDT Language Server used by Visual Studio Code.

In addition, it seems that the EclipseCompilerOrderingProvider is no longer required. It can be disabled by defining the system property -Dorg.immutables.disableEclipseOrderingProvider=true in the VS code setting java.jdt.ls.vmargs.

(The system property and the EclipseCompilerOrderingProvider should both be removed if this is confirmed.)

Moreover, java.jdt.ls.vmargs should include -DmaxCompiledUnitsAtOnce=10000 for large projects (see #1450).

@elucash
Copy link
Member

elucash commented Mar 22, 2023

Fully agree. If this really works than we should merge it :)

@elucash
Copy link
Member

elucash commented Mar 22, 2023

I'll merge it and will try to see if still works in Eclipse. Hope someone will re-validate it works for the language server

@elucash elucash merged commit 8c1a8c7 into immutables:master Mar 22, 2023
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

Successfully merging this pull request may close these issues.

Support Java Language Server
2 participants