-
Notifications
You must be signed in to change notification settings - Fork 326
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
bugfix: Allow to add jvmopts and env variables when running tests #4393
Conversation
00ad9d2
to
6bd324a
Compare
@Nullable jvmOptions: java.util.List[String] = null, | ||
@Nullable env: java.util.Map[String, String] = null, | ||
@Nullable envFile: String = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question.
Is it bloop only?
I haven't found these params in build-server-protocol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it's both bloop and sbt (all build servers which support debugging) - build-server-protocol/build-server-protocol#304
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx for explanation!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
btw, it's not really a bugfix, more like a improvement ;)
metals/src/main/scala/scala/meta/internal/metals/debug/DebugProvider.scala
Outdated
Show resolved
Hide resolved
Previously, only the test suite name was sent via BSP. Now we also add env variables and jvmopts. Fixes scalameta#4374
6bd324a
to
17cc3b5
Compare
Hmm, I wonder if this logic should also be applied to the requests from the Test Explorer. metals/metals/src/main/scala/scala/meta/internal/metals/debug/DebugProvider.scala Lines 568 to 592 in 42c5b16
|
Can you set addtional options for Test Explorer? |
There is some mechanism for configuration/options but currently vscode doesn't use it. Sounds like an improvement. |
Previously, only the test suite name was sent via BSP. Now we also add env variables and jvmopts.
Fixes #4374