why are python files open in PyCharm stored in the private/var/folders on Mac?
on the title bar of the PyCharm application window I see:
<python file name>.py [/private/var/folders/9k/2r56db9s7znbwk9cpm80dh500000gn/T/<python file name>.py] - ~/Documents/<python file name>.py
after the second location is where the actual file is stored on my computer, but when I turn off PyCharm and try to reopen the file from PyCharm (form where it shows up on the start page of PyCharm) it sees the file as being in the first location, and then it says that the file isn't available in that location. It seems like its a temporary location, my question is why is even being stored there at all?
Please sign in to leave a comment.
Hi,
That's not a usual case. We do not store your local project files anywhere else.
Do you use symlinks?
If not, would be useful to have a screenshot showing your project structure in PyCharm.
I'm seeing this as well. I haven't opened PyCharm since changing machines. When it launched, it was the Pro edition and I selected 30-day evaluation.
I then opened a .py file in a local folder. I can't seem to edit it. On the title bar it says:
`lmsrutils.py [/private/var/folders/sv/<hash>/T/lmsrutils.py] - ~/KEYW/Git/rm_score_bots/lmsurtils.py [lmsrutils.py]`
I've had to restart PyCharm 4x so it can use config changes, or when it gets stuck (MacOS spinning beachball of death). Each time, it loses all my project config.
What's up? What's the magic thing I have to do to get this to work like it used to?
I think I found the answer on a related StackOverflow ticket. It appears to be security Apple features introduced in Sierra and Mojave. Running the following commands seems to have solved it:
>xattr -d com.apple.quarantine /Applications/PyCharm.app/
>sudo chmod 775 /Applications/PyCharm.app/Contents/