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 207364 - Last opened file not remembered between sessions if the file outside of project or source folder
Summary: Last opened file not remembered between sessions if the file outside of proje...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-01-16 22:21 UTC by Deldadam
Modified: 2012-06-04 07:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deldadam 2012-01-16 22:21:20 UTC
Hi All,

I'm using the PHP Edition. If I opened a file from outside the project or source folder, Netbeans 7.0.1 could remember that file between sessions, so after restarting it the IDE has reopened that file again. This was a very convenient behaviour of Netbeans, as my projects need sometimes some external files to be edited as well.

In Netbeans 7.1 this doesn't work anymore, even if the file itself can be found on any of the paths added to 'Include Paths'.

To reproduce the problem:
1. Just start the IDE
2. Create a new PHP project.
3. Create a new PHP file.
4. Open any text file (I've used a regular TXT file) from outside the project paths.
5. Restart the IDE.
6. The PHP file will be reopened by the IDE while the TXT file wont.

Cheers,

Peter
Comment 1 Jiri Prox 2012-01-18 08:36:40 UTC
reproducible
Comment 2 Jaroslav Tulach 2012-06-01 21:44:40 UTC
I am not sure about PHP files, but .txt and .java files seem to be re-opened after restart.
Comment 3 Ondrej Brejla 2012-06-04 07:47:14 UTC
Works properly for both file types. Both PHP and TXT files opened from "not project scope" are open automatically after restarting the IDE.