NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Mapping always reset after startup


Joined: 27 Jun 2011
Posts: 1
Reply with quote
Hi, i got a small problem with mapping:

My Project-Root is the parent directory of my Doc-Root cause some include files are outside the www-root.

As example:
url: "http://lnx.test1.webdev"
Project-Dir: "/projects/test1/"
Webroot-Dir: "/projects/test1/htdocs/"
Include-Dir: "/projects/test1/includes/"

In this case I setup:
tab: Properties:
"Root directory" to "D:\projects\test1" (windows-style)

tab: Mapping (adding following):
"Remote directory" to: "/projects/test1/htdocs/"
"Local directory" to: "D:\projects\test1\htdocs" (windows-style)
"URL" to: "http://lnx.test1.webdev"

after saving all went fine. There are no Problems using the Buttons "Run (Crtl+F)" or "Run in debugger (F9)". Mapping works fine.
after a restart of PhpED the added mappings are lost, and the button run into troubles cause it uses the default mappings.
is this a bug or do i missunderstood this function Very Happy ?

many thanks in advance
viz
View user's profileFind all posts by vizArtSend private message


Joined: 28 Nov 2011
Posts: 2
Reply with quote
I would also like an answer to this question. It's been here quite some time but has not been addressed.

As of 6.2 (Build 6233) this issue still exists.

If we're doing something wrong please point us in the right direction, but it's quite inconvenient to have to re-enter the settings every time I start up the editor.

It's not a show-stopper, but it would be nice to have these settings saved.

Thanks.
View user's profileFind all posts by rahowardSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
It's not possible to address a problem that does not exist.
Guys, please read FAQ or this forum, or try Project Settings wizard if you can't find the answers in FAQ or in the forum. This case of project on top of the DOCUMENT_ROOT was discussed 3 or 4 times already.

BTW wizard resolves this trivial case easily.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Nov 2011
Posts: 2
Reply with quote
This is what I found in the FAQ:

http://www.nusphere.com/kb/technicalfaq/howto_setup_projects_out_scripts.htm

Here's where the problem lies: "then switch to the Mapping tab and add an additional mapping point:"

My issue is that the additional mapping points are not saved between sessions.

Every session (i.e., close, then re-open the editor) I have to re-enter my mappings (sometimes one, sometimes both entries) in order to have the editor save the files to the proper folders on the remote server and allow the debugger to run correctly. Once I re-enter the mappings everything works fine, at least until I restart the editor.

I did read the FAQ and I searched the forums prior to posting, but in all cases the mappings are not preserved between sessions. It may well be that I have not fully understood how to properly resolve this problem, but telling me to, in effect, "find the answer yourself" isn't very helpful. If I had found a suitable solution then nobody's time would be wasted.
View user's profileFind all posts by rahowardSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Mapping is cleaned from duplications every time you open the project, so if the entry you added is a duplication, it will be removed.
For example, if you project root is C:\myproject, PhpED will create a mapping entry for this directory. If you add one more pointing to the same directory, it won't remain next time you load the project.
If what you add is not a duplication and still the entry is not preserved, please contact support. Forum is useless in this case.

per wizArt example:
url: "http://lnx.test1.webdev"
Project-Dir: "/projects/test1/"

...

"URL" to: "http://lnx.test1.webdev"
"Local directory" to: "D:\projects\test1\htdocs" (windows-style)


it's just incorrect. Two entries shouldn't correspond to the same URL. Same goes to remote and local directories.
If the project is above the web document root, the project's URL must be empty.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Mapping always reset after startup
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic