Why are Server Mappings stored in workspace.xml?

Hi everyone, I would like to understand why server mappings are stored inside workspace.xml? I use Git repository for most of my projects and I always skip workspace.xml file through .gitignore because that files changes everytime i use PhpStorm and that means that i can't just define my per-project server mappings without having to keep comitting my workspace.xml to Git. Another option is to commit that file just once and then ignore it through .gitignore but in terms of design i believe this kind of settings should be separated from the workspace settings, that would allow us to have that kind of settings fixed (or not depending on personal taste) per-project without being locked to a file that changes everytime we use PhpStorm. I can imagine for instance having different mappings on the same server for different branches of our project without having to maintain workspace.xml on our repository.

Best regards,

Alex Paes

6 comments
Comment actions Permalink

Well, the workspace.xml *meant* to be ignored by source control system AND we plan to give option to share server mappings through project metadata.

0
Comment actions Permalink

Hello Alexandre,

Another option is to commit that file just once and then ignore it through .gitignore but in terms of design i believe this kind of settings should be separated from the workspace settings, that would allow us to have that kind of settings fixed (or not depending on personal taste) per-project without being locked to a file that changes everytime we use PhpStorm.

Do all team members have the same path mappings settings? It supposed to be local.

Thanks for feedback!

0
Comment actions Permalink

That's great news. From looking at the next version blog where you state you are done with adding features for 2.0 version and are now focusing on bugfixes, i presume that this won't make it into 2.0. Am i correct?

0
Comment actions Permalink

In our case everyone is supposed to have the same mappings since the local paths are stored from the $PROJECT_ROOT, on the remote server side so far of our projects using PhpStorm are set to the same server paths, meaning we could have this setting set in the Git repository and shared by everyone on the team workin in that particular project.

0
Comment actions Permalink

Alexandre,

In our case everyone is supposed to have the same mappings since the local paths are stored from the $PROJECT_ROOT, on the remote server side so far of our projects using PhpStorm are set to the same server paths, meaning we could have this setting set in the Git repository and shared by everyone on the team workin in that particular project.


I see your point. Please vote for the related issue: http://youtrack.jetbrains.net/issue/WI-4527

0
Comment actions Permalink

Hello Alexandre,

Yep, this feature is not going to be implemented in PhpStorm 2.0.
Please watch/vote for http://youtrack.jetbrains.net/issue/WI-715 to be notified on updates.

Regards,
Kirill

0

Please sign in to leave a comment.