[SOLVED] getting "java.nio.file.AccessDeniedException" when installing IdeaVIM to Pycharm on Windows 10
I found no help on the internet for this problem and ended up solving it by myself, so I wanted to go ahead and share the solution for future people with the issue.
What happened:
I tried to install IdeaVIM for PyCharm on Windows 10 through the plugin repository. When I restarted the IDE, i got the following Plugin Installation Error:
"""
The IDE failed to install some plugins.
Most probably, this happened because of a change in a serialization format.
Please try again, and if the problem persists, please report it
to https://jb.gg/ide/critical-startup-errors
The cause: java.nio.file.AccessDeniedException: C:\Users\taylojon\AppData\Roaming\JetBrains\PyCharm2021.2\plugins\IdeaVim\lib\IdeaVIM-1.8.0.jar
"""
Solution:
- Download the .zip from plugins.jetbrains.com (for IdeaVIM you want https://plugins.jetbrains.com/plugin/164-ideavim/versions/stable)
- Extract .zip.
- Delete C:\Users\<user>\AppData\Roaming\JetBrains\PyCharm2021.2\plugins\IdeaVim folder.
- From your extracted IdeaVim-<version> folder, right click on the IdeaVim folder and go to properties.
- Make sure "Read-only" is turned off.
- Apply and close properties.
- Copy "IdeaVim" from extracted folder into C:\Users\<user>\AppData\Roaming\JetBrains\PyCharm2021.2\plugins
- Navigate to C:\Users\<user>\AppData\Roaming\JetBrains\PyCharm2021.2\plugins\IdeaVim\lib
- Right click on each .jar file and go to "Properties."
- For this I see "Security: This file came from another computer and might be blocked to help protect this computer."
- Click the "Unblock" box. Do this for each .jar file in the lib folder.
- Restart your IDE.
Please sign in to leave a comment.
Thank you so much!