This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Mar 14, 2013 5:27 PM by Mads Lie Jensen  
Mads Lie Jensen Newbie 4 posts since
Mar 14, 2013
Currently Being Moderated

Mar 14, 2013 11:27 AM

Composer on mapped network drive

I have all my php projects stored on a shared network drive, mappen in windows to R:\

I want to use Composer-support from inside PhpStorm 6. The Init goes as it should. A composer.json is generated, I fill in the details and save the file.

 

But, when I want to add a dependency, using the gui, I see that phpstorm runs this command:

 

php.exe "C:\Program Files (x86)\PHP\Composer\composer.phar" require zendframework/zendframework:2.1.4 -n --no-progress

 

This gives the error 'composer.json is not writeable'. Why is this? What can I do to solve it? I mean, the file can be edited and saved from inside phpstorm and any other editor I use, so why does php think it is not writeable?

Elena Shaverdova JetBrains 172 posts since
Oct 13, 2010
Currently Being Moderated
Mar 14, 2013 3:58 PM in response to: Mads Lie Jensen
Re: Composer on mapped network drive

Did you try to run the same command from terminal? Could there be a network connection problem when you tried?

Elena Shaverdova JetBrains 172 posts since
Oct 13, 2010
Currently Being Moderated
Mar 14, 2013 5:20 PM in response to: Mads Lie Jensen
Re: Composer on mapped network drive

Working folder is project root, which is on mapped drive in your case.  Working with projects on network drives is highly not recommended as IDEA-based products relly on fast access to project files. You can use Create project from existing sources to copy the code locally and then autoupload all changes to the mapped drive.

More Like This

  • Retrieving data ...