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

Suggest users to clean working directory when Nailgun server failed #1916

Merged
merged 2 commits into from Mar 10, 2023

Conversation

lwronski
Copy link
Contributor

@lwronski lwronski commented Mar 9, 2023

Fixes #1882.

I reproduced bug from #1882, and now when users run scala-cli it print the following error:

➜  scala-demo /Users/lwronski/projects/scala-cli/out/cli/standaloneLauncher.dest/launcher Hello.scala 
[E] Failed to load project from /private/tmp/scala-demo/.scala-build/.bloop/project_853f6d1dbb-25fccf1679.json
Something is wrong with the current configuration. Nailgun server failed with exit code 1.
To resolve the problem, please run the clean sub-command to clear the working directory and remove caches.
If the error persists, please report the issue as a bug and attach a log with increased verbosity by passing -v -v -v.
Error: java.lang.RuntimeException: Bloop BSP connection in /Users/lwronski/Library/Caches/ScalaCli/bsp-sockets/proc-91655 was unexpectedly closed or bloop didn't start.
For more details, please see '/private/tmp/scala-demo/.scala-build/stacktraces/1678358545-18379785233871606763.log'

@lwronski lwronski marked this pull request as ready for review March 9, 2023 13:40
Copy link
Contributor

@alexarchambault alexarchambault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the minor extra suggested change, LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scala-cli fails to start with a "bloop server failed to start" error message
3 participants