Getting Clear read only status on Webstorm 8

GitIntellij IdeaWebstorm

Git Problem Overview


I am new to Webstorm 8. I have webstorm 8 installed on Ubuntu 14.04 LTS.

I am trying to edit a file but I am getting a popup, with heading "Clear read only status", which shows file and two radio button

  • Using File System
  • Using version control integration

When I select Using File system and click OK, nothing happens, and it doesn't allow to select Second option.

I am using git as my dcvs.

Please guide me on how I can remove this read only status from that file.

Thanks in advance.

Git Solutions


Solution 1 - Git

I had similar problem and I ran following command and my problem was resolved:

> sudo chown -R $(whoami) my-project-folder

Works on both Ubuntu & OS X

To check username use: whoami

Solution 2 - Git

Same answer as above but use the current user and also add the files to the current group

sudo chown -R $USER:$USER my-project-folder

$USER is a variable which stores your currently logged in user,at least on Ubuntu.

Solution 3 - Git

> When I select Using File system and click OK, nothing happens

Nothing visible happen, but you should be able to edit your file, since the file should now be in 755 mode (as opposed to 644)

More generally, check your umask: it should be 0022, which means a git clone would by default create 644 files (writable), as detailed in "why my file permission being changed after pull from git repository".

> it doesn't allow to select Second option.

That may be because the sources edited in Webstorm aren't in a git repo.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMozakView Question on Stackoverflow
Solution 1 - GitRaheelView Answer on Stackoverflow
Solution 2 - GitMihaiView Answer on Stackoverflow
Solution 3 - GitVonCView Answer on Stackoverflow