1
votes

I've been trying to edit a non-project file using IntelliJ Community Edition 2016.3, and I cannot get around the write only protection.

I do not get a pop-up asking whether I would actually like to edit the non-proj file, as seen in this post: Intelij 15 edit non project files by default

And I've also installed the Non Project Files Unlocker plugin, unfortunately it did not seem to have an impact (yes I restarted the IDE).

If anyone has had the same experience or if someone has a workaround/solution please let me know. All suggestions are appreciated!

Thanks!

2
What file type do you edit? Where is it located? What are the file permissions? Are you sure it's not configured as a part of some project library? - CrazyCoder
Java file, not sure on the permissions as the path to the file is located in the maven repository and I could not get to it via command line. Yes it is configured as a part of another project's library. - MuchStack
Are you trying to edit a decompiled class file (or one with attached sources) inside a jar? - Meo
If this file is inside a jar or a decompiled class file, you can't edit it. - CrazyCoder
Yes, I've realized that this isn't actually possible. My solution was just to create a new project, and edit the code in that new intellij window. - MuchStack

2 Answers

0
votes

--> Create new IntelliJ project (for the 'non-project' file), edit the code, build that code using maven, open original intelliJ project, and the desired file is updated.

0
votes

I had similar problem, but not with non-project files, rather with all the files, IntelliJ Community Edition 2016.3. Most of the time I wasn't able to edit anything. Played with file protection, checked/unchecked write permissions, nothing seemed to work.

What helped me eventually is to go to File->Preferences...->Plugins, then disabled the IdeaVim plugin.

I found that solution here:

https://superuser.com/questions/951374/cant-type-delete-in-intellij-idea-osx-el-capitan-4/952647#952647?s=38d8d09b1b824d14aa70da4954b5bf66

check the accepted answer.