[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:

  1. Download the .zip from plugins.jetbrains.com (for IdeaVIM you want https://plugins.jetbrains.com/plugin/164-ideavim/versions/stable)
  2. Extract .zip.
  3. Delete C:\Users\<user>\AppData\Roaming\JetBrains\PyCharm2021.2\plugins\IdeaVim folder.
  4. From your extracted IdeaVim-<version> folder, right click on the IdeaVim folder and go to properties.
  5. Make sure "Read-only" is turned off.
  6. Apply and close properties.
  7. Copy "IdeaVim" from extracted folder into C:\Users\<user>\AppData\Roaming\JetBrains\PyCharm2021.2\plugins
  8. Navigate to C:\Users\<user>\AppData\Roaming\JetBrains\PyCharm2021.2\plugins\IdeaVim\lib
  9. Right click on each .jar file and go to "Properties."
  10. For this I see "Security: This file came from another computer and might be blocked to help protect this computer."
  11. Click the "Unblock" box. Do this for each .jar file in the lib folder.
  12. Restart your IDE.
-2

Please sign in to leave a comment.