Emulate symlinks and use them in PHPstorm

2.5k views Asked by At

Please help me to resolve the problem

My project is:

->folder1
--->modules
----->Module1
----->Module2
->folder2
--->modules
----->Module3
----->Module4

The following structure I have on my LEMP virtual box. There are symlinks for modules from folder2/modules and on linux I have

->folder1
--->modules
----->Module1
----->Module2
----->Module3_symlink
----->Module4_symlink

And everything is executing well.

The problem is:

I'm trying to setup IDE PHPStorm on windows7. I downloaded all code on local machine. xDebug is working properly, but there are two issues:

  1. folder1/lib contains some xsl schemas, which are necessary for spelling for folder2/lib. On one hand - I can just copy these schemas into 2nd folder and put them into .gitignore. But on the other hand I have one more problem:

  2. I'm trying to execute PHPunit tests for classes from folder2. But I faced with the same problems as in point one.

My question is: is there any possibility in windows / phpstorm to emulate symlinks? Or somehow resolve this problem without installation unix system.

Thanks for all responses I've achieved it with command mklink


I've created symlink but PHPstorm think that it's independent folder. PHPStorm is trying to synchronize it. And git is showing this folder in untracked files. Probably you can answer: synchronization with ftp will not bring harm. Folder can be added to gitignore.

But, is there another way? Please advice how properly achieve this.

0

There are 0 answers