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

feature: Add support for buildTarget/jvmCompileClasspath #542

Merged
merged 2 commits into from Mar 27, 2024

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Mar 14, 2024

Previously, classpath would be obtained via scalacOptions and javacOptions requests, which would cause additional querries even if client was only interested in actual javac/scalac options.

Now, we don't send classpath together with scalac/javac options if the client declares that they will use the new jvmCompileClasspath request, which they should then trigger.

Integration tests blocked on build-server-protocol/bsp-testkit2#43

@abrams27
Copy link
Member

abrams27 commented Mar 15, 2024

code-wise looks good, but i'll have to test (next week) it with our plugin - we still use classpath for local executions

@tgodzik
Copy link
Contributor Author

tgodzik commented Mar 15, 2024

code-wise looks good, but i'll have to test (next week) it with our plugin - we still use classpath for local executions

Unless the client specifies compileClasspathReceiver nothing should change, so ideally nothing should break for Intellij plugin

@tgodzik tgodzik force-pushed the add-classpath branch 2 times, most recently from 00ca6f5 to 93ea825 Compare March 15, 2024 21:06
@tgodzik
Copy link
Contributor Author

tgodzik commented Mar 20, 2024

Any chance for someone to take a look at this or the other PRs?

@agluszak
Copy link
Contributor

@tgodzik I accepted the changes, please resolve conflicts

Previously, classpath would be obtained via scalacOptions and javacOptions requests, which would cause additional querries even if client was only interested in actual javac/scalac options.

Now, we don't send classpath together with scalac/javac options if the client declares that they will use the new jvmCompileClasspath request, which they should then trigger.
@tgodzik
Copy link
Contributor Author

tgodzik commented Mar 27, 2024

@tgodzik I accepted the changes, please resolve conflicts

Thanks! I rebased and added a note to the changelog

@agluszak agluszak merged commit cd00ed5 into JetBrains:master Mar 27, 2024
9 checks passed
@tgodzik tgodzik deleted the add-classpath branch April 24, 2024 11:55
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.

None yet

3 participants