Open JJ-Atkinson opened 7 years ago
This is very strange behavior. The files and directories are created as the user who launches the lein process. So ...
But specifically it doesn't have permission to access the compile-stamp.
There must be something about how you are running the process ????
Perhaps being Admin is the problem? Maybe create a user and see if you things work that way ...
Hmmm here is a clue Leiningen is a java process that launches another java process so perhaps the second launch has different user/perm setup because of some global setting?
You may want to check with the clojurians.slack.com,to see if someone else is having this issue: sign up at clojurians.net
I tried using a non-admin account, but that didn't work. The only thing that I can think of is that I'm using Hyper as my command line client, and that might have something to do with it... But I tried it with just a plain cmd and still have the same error. I forgot to mention, but I've had this problem before, except the last time the user settings weren't goofed up as bad, so I could still take ownership and create the file. I'll check out the clojurians now.
I just tried to use takeown
and icacls
under the local system account, and that had no effect either. This folder had some really strange permissions. But, after a restart, the folder was gone. Nothing. Without adding the file, I have no error anymore.
Apparently, I was too quick to assume the problem was resolved. After restarting my computer, the out folder was indeed deleted. However, after the next clean, the folder was goofed again. I had even made sure that I had full permissions before I started lein/figwheel. Apparently, somehow either lein
or figwheel
are changing the permissions of a pre-existing folder, and somehow raising the permissions so high that even the local system command prompt can't see the owner.
Folders can inherit permissions from the parent folder, so look there and see if there is anything strange there. Though I'm not a Windows user so I honestly have no idea how that works over there.
That's not what's happening in this case. No other permissions were changed, just those of the out
folder and its subdirectories.
In my case, the problem was Dropbox.
We should look at it carefully
Just a data point---I had (have) this, OpenJDK Runtime Environment Corretto-15.0.2.7.1 (build 15.0.2+7)
, Windows, working around it by running as admin.
¯\(ツ)/¯
After a clean of some sort, figwheel is unable to find
.figwheel-compile-stamp
in the out directory. My project is based on the hello-world figwheel template, with only minimal changes to the compile settings. The\out\
directory has some weird owner settings on Windows (10 in my case). I can't do anything to the\out\
directory, even though I'm an admin on my machine. I can't change any security settings or even see who owns the file. Not sure if this is a figwheel or leiningen problem.