last day (15 days later) » 

2:39 PM
0
Q: Not able to modify File in Intellij 2016

Ravi sinhai reinstalled intellij 2016 ,whenever i am trying to modify any file (eg java,jsp) it is showing message like file is not writable. Can any one help me on this? i am using existing project from Git.whenever i am creating a new project i am able to modify the file and the problem only when Githu...

 
Yes when ever i am trying to edit the same file in notepad i am able to do.
Yes and modified changes is getting reflected in intellij as well.
Tried this as well but no luck!!
Added Screenshot
 
Check the file system permissions of your files, try creating them in a different folder.
 
Same file i am able to modify in notepad and in Eclipse,STS as well
@CrazyCoder Can you please provide more info to resolve this issue?
 
Make a short video of the problem showing the full IDE window, the folders where the files reside, status bar, etc.
 
Hi @CrazyCoder ,I added the complete screen shot now .Can you please help me now?
 
2:39 PM
It looks like you are trying to edit .java file inside the .jar. It's not possible. Use View | Select In | Project, IDE will navigate you to the file location. If it's inside the jar, you can't edit it. Open the file from the Source root of the Java module instead or unpack the jar into one of the source roots. Also make sure this directory is not added as a library somewhere, since editing of library files is disabled by design. Double check your module dependencies. Never add source roots to the libraries.
 
Hi @CrazyCoder This is not inside jar .This is in my sub-module and i created a package and there java file.And file name is same whic is reflecting there but not able to modify.
 
Then it's added as a root to some library, remove the root from the library.
 
The same project structure i am using previously and i was able to modify the files.i formatted my system and reinstalled Intellij and facing this problem,with the same project structure i am able to modify the same in class in different system.and same file i am able to edit in notepad and eclipse.
 
We can't help without a reproducible test case, please share the Minimal, Complete, and Verifiable example.
 
2:51 PM
Steps
Steps:-
• Checked out the code from Git hub
• Installed intellij
• Added hybris plugin in intellij and restarted
• Imported project from Git hub location
• Got message as git.exe Is not available please fix it. Given the path of git.exe ( C:\Users\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\mingw32\bin\Git.exe)
• Opened java class and not able to modifty
• Created new package and class but issue persists
• Create new separate project without github project and able to modify the file.
 
3:12 PM
Where can we get a sample project to reproduce it?
 
3:27 PM
You can use any project which is in git hub.previously when i was using git hub was not showing in lower right hand side beside lock symbol,but when git is not there it is working.
 
No, I can't reproduce it with any github project.
Did you try using the normal Git client instead of GitHub Portable Git? git-scm.com/download/win. Is there any difference if you checkout into your home directory?
 
 
1 hour later…
4:54 PM
Is there any setting for lock symbol which i highlighted ?
 
5:40 PM
i tried the same git which you suggested but same issue persists.can you please provide some other solutions?
 
6:28 PM
Did you try checking out the project to the home directory? Can you provide a link to any github project where this problem can be reproduced for you?
 
7:11 PM
My code location is C:\folder1\folder2\bin\sourcecode and i can't change this path .if i am creating aproject i am able to modiy .is there any way to delink github in intellij ?
 
Git integration can be disabled in Settings | Version Control, but I doubt it's the case. Looks like incorrectly configured project, therefore need the sample project to reproduce it.
 

  last day (15 days later) »