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
Make Metals more Robust #357
Comments
If the issue in 3/4 is that it's sometimes hard to cancel a compiler run we should work together to make this possible. We could make the presentation and build compilers watch InterrupedExceptions, for instance, or watch some other cancellation signal. |
I have the same experience and I think we both use sbt as the build server. I often receive the pop up even if sbt is still running and responding. |
Thanks for reporting and the great feedback! This is something we are trying to get right.
This is a new feature and seems not work 100% yet. We want to move it to the status bar, which should be visible and not that intrusive at the same time scalameta/metals#5660 There have also been some fixes around that
We are trying some approaches:
That might be hard to do 100 % and not show wrong warnings, we have the same problem with the flaky status. It seemed obvious at first, but now we need to make it more reliable. But it's worth thinking about it. I wonder if VS Code could change the default here.
That's the biggest issue we have currently, that's where our recent improvements are trying to improve things. Switching to named sockets could also help, but the problem is that there are multiple issue that can contribute here:
But we are looking into it!
There is a "clean and restart build server" command both within the command palette as well as in the metals view. The only improvement I can think of is trying to figure out how we can show it as an actual button, but vs code tree view is not easy to make it work. |
Super excited to read there is work on this! How does the automatic search for project root work? What happens if it finds several projects? For our use-case, I believe the following would be super useful: “if a Scala file is opened, and one of its parent directories has a
I don't think Metals should be concerned by that. We could and did in the past set |
I will open the first one found currently, mostly to handle cases where project definition is not at the root. We don't handle multiple projects. We could potentially treat them the same as we do with multiple workspace folder. But no one currently reported a case like that.
That could be a nice improvement and we could show a command to reopen with the correct folder (at least in vs code, this would vary per editor). |
addressing scala/scala3#13082 should fix this which at least has a cooperative cancellation with bsp |
Is your feature request related to a problem? Please describe.
After having experienced another batch of 400 students starting their Scala journey with Metals here are some of the painpoints which would be great to fix. It' s second hand, if needed I could rope in some of the TAs who supervised the students. /cc @mbovel @adpi2 @bishabosha
Describe the solution you'd like
Some suggestions:
Describe alternatives you've considered
We considered using IntelliJ instead, since that's what students are used to from first year.
Additional context
No response
Search terms
Robustness, resilience
The text was updated successfully, but these errors were encountered: