-
Notifications
You must be signed in to change notification settings - Fork 333
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
Incorrect path for cache directories on windows #5590
Comments
I wonder if in such case we should do a workaround and replace Not the pretties workaround, but should work for us. What do you think? |
Alternatively, we could just return |
This is a bug in ProjectDirectories, which seems to be super hard to fix, so instead we can special case it. This is not super important to use that directory anyway, we fall back to local workspace. Fixes scalameta#5590
This is a bug in ProjectDirectories, which seems to be super hard to fix, so instead we can special case it. This is not super important to use that directory anyway, we fall back to local workspace. Fixes scalameta#5590
Let's try #5595 -> at least we will not create the null directory |
This is a bug in ProjectDirectories, which seems to be super hard to fix, so instead we can special case it. This is not super important to use that directory anyway, we fall back to local workspace. Fixes scalameta#5590
Seems reasonable 👍 |
This is a bug in ProjectDirectories, which seems to be super hard to fix, so instead we can special case it. This is not super important to use that directory anyway, we fall back to local workspace. Fixes scalameta#5590
This is a bug in ProjectDirectories, which seems to be super hard to fix, so instead we can special case it. This is not super important to use that directory anyway, we fall back to local workspace. Fixes scalameta#5590
This is a bug in ProjectDirectories, which seems to be super hard to fix, so instead we can special case it. This is not super important to use that directory anyway, we fall back to local workspace. Fixes #5590
I changed the fix a bit, so do let us know if that is not fixed in the end. |
Yes, that seems to work on my PC. Reverting metals to 1.0.1 reintroduced the bug after a restart as well. Thanks for the fix! |
I found that the issue persists to exist on Windows. Importing Metals build keeps creating |
That's unexpected, but best to create new issue. |
New issue created. |
Describe the bug
Seems that this issue (#2451) has resurfaced:
Steps to reproduce:
The "null" folder is created as soon as metals starts, the "powershell" folder is created when clicking "import build' on the popup from metals.
Output when running
ProjectDirectories.from()
as described in #2451:Setting env vars (COURSIER_BIN_DIR, COURSIER_CACHE, COURSIER_JVM_CACHE) as was recommended at some time in the past makes no difference for me. Building with
scala-cli
instead ofsbt
, by runningscala-cli setup-ide .
before opening VS Code makes no difference either.This seems to be an issue with
directories-jvm
again (dirs-dev/directories-jvm#51, dirs-dev/directories-jvm#49), so I'm not sure what can be done on metals' side. Mostly posting this in case someone else runs into this and only finds #2451.Expected behavior
No response
Operating system
Windows
Editor/Extension
VS Code
Version of Metals
v1.24.0
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: