-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
feat: add framework name to the test classes BSP request #1755
Conversation
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.
Looks reasonable to me. Please update as appropriate and remove the draft status when you think it is mergeable. Thank you!
5786991
to
5b3d67a
Compare
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.
Surprisingly, this is only for Scala projects and not for e.g. Java projects. Anyhow, I'm happy to merge, although this feature is probably not very relevant for Mill users, as we only support one test framework per module.
Resolution is failing because |
af28899
to
5f6e338
Compare
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.
@lefou I updated PR with the newly released bsp4j version.
Surprisingly, this is only for Scala projects and not for e.g. Java projects.
Do you mean that method names of method and classes contain ScalaTestClasses
?
Anyhow, I'm happy to merge, although this feature is probably not very relevant for Mill users, as we only support one test framework per module.
It may be not very relevant for Mill users but this will be very handy for Metals and maybe other IDEs as well. Thanks to that Metals will be able to detect single tests for some frameworks.
override def debugSessionStart(debugParams: DebugSessionParams) | ||
: CompletableFuture[DebugSessionAddress] = | ||
completable(s"debugSessionStart ${debugParams}") { state => | ||
throw new NotImplementedError("debugSessionStart endpoint is not implemented") | ||
} |
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.
There's a DebugProvider
capability that is not set by the Mill so it's safe to throw an error here from the BSP server perspective.
I mean, the framework name is only relevant for Scala projects, as it is only referenced in |
Thanks for the pointer. I think, this would be the right move, too. |
… test framework name In order to find single tests Metals needs to know test framework for give test suite. sbt/sbt#6830 which adds this feature to the sbt will be available from version 1.7.0 In mill it should be available from 0.10.4 com-lihaoyi/mill#1755
… test framework name In order to find single tests Metals needs to know test framework for give test suite. sbt/sbt#6830 which adds this feature to the sbt will be available from version 1.7.0 In mill it should be available from 0.10.4 com-lihaoyi/mill#1755
I've added
[skip ci]
because for now I only want to see what do you folks think about this PR.This PR will stay as a draft until changes in
bsp4j
are merged, for now I've used locally publishedbsp4j
version.It is an implementation of the BSP proposal which is described here. This proposal adds an optional framework field to the returned class.
There's already implementation for bloop.