2

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!

Community
  • 1
  • 1
MuchStack
  • 131
  • 1
  • 13
  • 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 Feb 21 '17 at 22:40
  • 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 Feb 21 '17 at 23:06
  • Are you trying to edit a decompiled class file (or one with attached sources) inside a jar? – Meo Feb 21 '17 at 23:37
  • If this file is inside a jar or a decompiled class file, you can't edit it. – CrazyCoder Feb 21 '17 at 23:46
  • 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 Feb 28 '17 at 17:43

2 Answers2

0

--> 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.

MuchStack
  • 131
  • 1
  • 13
0

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.

Tomas Antos
  • 284
  • 2
  • 6