This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 156220 - PHP Save files
Summary: PHP Save files
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker with 1 vote (vote)
Assignee: rmatous
URL: http://gigamole.com
Keywords:
: 158612 (view as bug list)
Depends on:
Blocks: 152390
  Show dependency tree
 
Reported: 2009-01-02 09:31 UTC by amienel
Modified: 2009-02-25 14:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test case for issue 156220 as requested (1.63 KB, text/plain)
2009-02-18 21:47 UTC, mv7402
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amienel 2009-01-02 09:31:58 UTC
You are messing up the project source page with the page copied on the web server for debugging. After a while of 
editing the current editing page does not point to the project souce page anymore, but to the page on the web server. I 
think that you are not resetting the current directory to the project source after you have copied the files to the web 
server.
Comment 1 amienel 2009-01-02 10:17:46 UTC
I see you open the web server page for debugging. Please add some visual feedback to indicate that the page shown is 
that of the wed server and not the one in the project source space. This will prevent changing the wrong page.

Please close
Comment 2 rmatous 2009-01-08 17:24:49 UTC
If there is opened  the web server page for debugging (instead of the source one) then its a bug and this issue
shouldn't be closed. On the other hand I'm not able to reproduce, so please try to find the the way how to let me setup
the php project to reproduce it.
Comment 3 mv7402 2009-02-02 22:48:09 UTC
This bug is very annoying and misleading. Very easy to reproduce:
- install x-debug
- create some test php file
- start debugging it
  === You will see that Netbeans open another editor instance of this file. This new file instance wouldn't have LOCAL 
HISTORY. 
      If you change that file, changes will be done only on server directory. Thus you will loose changes if update 
sever or restart Netbeans (NB) and edit this file. 
I lost some changes couple times. It wasn't happening with some previous NB version. Please fix ASAP.
Please, let me know if you have any questions.
Regards,
Vlad
Comment 4 mv7402 2009-02-02 23:04:05 UTC
Addition to my previous email:

You should set break point and start debugging to see that NB opening another instance of the file. Initial file will 
have break point (reg line) and the new instance have just green line highlighting current debugging line.
Regards,
Vlad

Comment 5 rmatous 2009-02-16 15:27:16 UTC
*** Issue 158612 has been marked as a duplicate of this issue. ***
Comment 6 rmatous 2009-02-16 18:14:31 UTC
thanks for your reports guys, I would like to fix it, increased priority to P2  and as I declared I don't know ho to
reproduce exactly, so 
would be great if you could provide either your project(MyProject) or project metadata(nbproject) and send it to me. 

You should probably see similar file layout:

MyProject 
|-- index.php
`-- nbproject
   |-- configs
   |   |-- scr.properties
   |   `-- web.properties
   |-- private
   |   |-- config.properties
   |   |-- configs
   |   |   |-- scr.properties
   |   |   `-- web.properties
   |   `-- private.properties
   |-- project.properties
   `-- project.xml


I mean pack it and attach to this issue (just click on this link
http://www.netbeans.org/issues/createattachment.cgi?id=156220), thanks
Comment 7 mv7402 2009-02-18 21:47:10 UTC
Created attachment 77126 [details]
test case for issue 156220 as requested
Comment 8 rmatous 2009-02-19 13:09:38 UTC
thanks for attachment, not reproducible on linux && mac but reproducible on WINDOWS. Hopefully will be fixed soon
Comment 9 rmatous 2009-02-19 15:20:27 UTC
Fixed, "/" versus "\" mismatch

http://hg.netbeans.org/main/rev/8a1c6facd678
Comment 10 Quality Engineering 2009-02-22 08:04:29 UTC
Integrated into 'main-golden', will be available in build *200902220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8a1c6facd678
User: Radek Matous <rmatous@netbeans.org>
Log: #156220 PHP Save files
Comment 11 Quality Engineering 2009-02-24 20:16:41 UTC
Integrated into 'main-golden', will be available in build *200902241401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/39dc320bcf65
User: Radek Matous <rmatous@netbeans.org>
Log: source file and web server URI mapping related to #156220, #152390