.coursier\cache\v1\.structure.lock (Access is denied)
See original GitHub issueI had to comment out this line:
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC12")
in my plugins/build.sbt
, after I started getting the following error on any/all Scala projects I tried to build this morning:
coursier.ResolutionException: Exception during resolution
Caused by: java.io.FileNotFoundException: C:\Users\me\.coursier\cache\v1\.structure.lock (Access is denied)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:22 (4 by maintainers)
Top Results From Across the Web
coursier\cache\v1\.structure.lock (Access is denied)
I had to comment out this line: addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC12"). in my plugins/build.sbt , after I started ...
Read more >coursier/coursier - Gitter
I'm wondering if the way coursier writes out its lock files could be ... amybody seeing "access is denied" errors for ".coursier\cache\v1.structure.lock" on ......
Read more >"Access Denied" Message - Canvas Community
In student view I am seeing a big lock and "access denied" when I click on individual assignments. These are assignments that have...
Read more >SBT throws java.io.FileNotFoundException - scala
The (Permission denied) error says that you're probably running the sbt command from a user that doesn't have permission for the project ...
Read more >Unable to install plugins with Progress Developer Studio
... due to exception: DLC\oeide\eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\PlatformProfile.profile\.lock (Access is denied)
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have some good news, I think, at least if you’re running Windows 10 instead of an earlier version of Windows. It turned out before, at work, I was running Windows 8.1 Pro, not Windows 10 as I thought. The IT folks just upgraded my work laptop to Windows 10 Pro, and the issue I had with
.structure.lock
before has completely vanished, that is, the program I wrote using Coursier now works well on Mac, GNU/Linux and Windows (10).2022-11-11: I just ran into this issue with ‘sbt 1.5.8’ on a Windows Server. Just in case if you run into the problem, I was able to resolve this (without knowing what has completely fixed it).
Re-installing the
sbt
Cleaning .ivy2 directory (this is likely the cause) Cleaning ~.,sbt directory Make sure that all local dependencies are builtIt appears that if we encounter an unresolved reference, then the
sbt
reports the lock failure.