-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Mill 0.10.9 BSP unable to initialize with nightly Metals #2123
Comments
Thanks for the report! It took me a while to see what the issue is, but I think, as we now pass This is actually an issue with the bundled |
When I opened com-lihaoyi/mill#2123 it made me wonder why we didn't hit on this in our tests, but then I realized we were actually never testing the initialization with Mill server. This adds some more tests to ensure we're not only testing the generation of the BSP config file, but also connection to the build server.
Fixes issue com-lihaoyi/mill#2123 Pull request: #42
Also respect an already set DEFAULT_MILL_VERSION variable. Adapted from lefou/millw#42 Fix #2123 Pull request: #2124
* refactor: ensure we're testing the connection with Mill When I opened com-lihaoyi/mill#2123 it made me wonder why we didn't hit on this in our tests, but then I realized we were actually never testing the initialization with Mill server. This adds some more tests to ensure we're not only testing the generation of the BSP config file, but also connection to the build server. * deps: update millw to 0.4.5
So I think some combination of these prs are causing things to break or behave in weird ways when using Mill as a build server with the nightly version of Metals. Mainly, the BSP server doesn't respond at all.
mill.main.cli
sysprop lefou/millw#41To illustrate I'll start with a fresh project.
Everything working
So I'll start with the following:
Steps taken
mill-bsp
.bsp/mill-bsp.json
jps output is what I'd expect
Stuff not working
Now I'll bump the Metals version to the latest nightly (
0.11.9+131-601042ab-SNAPSHOT
) which brings in the new placement and version ofmillw
, and I'll fully clean the workspace.Steps taken
mill-bsp
.bsp/mill-bsp.json
There is a
mill-bsp.trace
file created, but with nothing inside of it and no other files created by Mill.When I look at the BSP trace file from Metals all I see is the following:
So the request is sent, but never responds. Looking at the output of
jps
I do see that Mill has started:Other research
I also tried reverting the place that Metals stores the
millw
back to a tmp dir and that still doesn't work. For example the BSP entry in this case looks like:And the same behavior of an
initialize
being sent, but not responded to.Conclusions
From what I can tell it just seems problematic that the BSP entry is pointing to the
millw
file. I'm not 100% sure how to dig in further to see why Mill isn't responding here or why pointing towardsmillw
is an issue. Any ideas or anything else I can provide?The text was updated successfully, but these errors were encountered: