Hi there,
thank you for this, extremely useful templates. I have no problem installing via git on linux (in my case ubuntu). But having a little problem replicating the effects of the push into a windows env (win 7)
Would it be possible to clarify windows appropriate installation walkthrough in the readme? (or if you give me a shove in the right direction, I would be happy to test and update the docs).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1974282.patch | 1.6 KB | fietserwin |
Comments
Comment #1
docwilmot commentedany news on this?
Comment #2
justindodge commentedIt looks like you can copy the files by hand into the corresponding directories.
On my Win 7 machine, my username is 'Justin' - so I found the IDE's config files in:
C:\Users\Justin\.WebIde60\configThe repo I checked out was here:
C:\Users\Justin\Documents\phpstorm-templates\WebIdeConfigManager\ConfigHome\drupalWhich has a 'fileTemplates', 'filetypes', and 'templates' folder.
I shutdown phpstorm and then copied the contents of these three folders into the corresponding folders in the IDE's folder. Start phpstorm again, and voila! Staying updated may be a little bit of a pain with this method though, but probably not unmanageable.
It definitely would have been handy to have some PC instructions documented though :)
Comment #3
sweetchuckThank you for your interest.
I don't understand what are the differences between the Windows installation and Linux/Mac installation.
What does not work on Windows, and what is the error message (If it has any)?
Comment #3.0
sweetchuckedit: grammar
Comment #4
fietserwinStep 7 (./WebIdeConfigManager.php push) does not work on Windows. Though that might depend on what has been configured as the standard action for .php files. For me that is to open them in an editor, not to execute them in the cli. So that step should become (for Windows users):
php ./WebIdeConfigManager.php pushUnfortunately, that gave me
So I started some debugging and found that Windows support has some errors. I attached a patch that corrects this.
- It detects whether the OS is Windows
- it finds the "HOME" directory on a Windows host.
- file_get_contents() does NOT work on directories, at least not on Windows, so that code needed some fixing as well. I am not totally sure that this is how it should be, but it seemed to work for me.
After this I got:
Which seems the correct and expected output.
Comment #5
sweetchuckOK. I will update the documentation.
I think this bug is belongs to the WebIdeConfigManager https://github.com/Sweetchuck/WebIdeConfigManager/issues?state=open
This repository only stores the Templates. I will commit the attached patch (#4)