Skip to content

Restore BSP base directory to the original workspace regardless of permissions/ownership#4273

Draft
Gedochao wants to merge 2 commits into
VirtusLab:mainfrom
Gedochao:fix/wonky-base-directory
Draft

Restore BSP base directory to the original workspace regardless of permissions/ownership#4273
Gedochao wants to merge 2 commits into
VirtusLab:mainfrom
Gedochao:fix/wonky-base-directory

Conversation

@Gedochao
Copy link
Copy Markdown
Contributor

@Gedochao Gedochao commented May 14, 2026

If the owner of the workspace directory changes or permissions don't match, .scala-build directory gets saved in a temporary directory.
This in turn breaks BSP reporting the temporary directory in workspaceBuildTarget endpoints.
The ownership change happens when adding files in containerised IntelliJ setups, which makes supporting Scala CLI there tricky.

Checklist

  • ran the tests locally and it works
  • ran the code formatter (scala-cli fmt .)
  • ran scalafix (./mill -i __.fix)

How much have your relied on LLM-based tools in this contribution?

Extensively, Cursor + Claude

How was the solution tested?

Added new integration tests

@Gedochao Gedochao force-pushed the fix/wonky-base-directory branch from dd61325 to 6060cd6 Compare May 15, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant