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 238076 - Netbeans 7.4 does not return to previous text position after restart.
Summary: Netbeans 7.4 does not return to previous text position after restart.
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 6 votes (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 238177 240107 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-07 04:00 UTC by jmsoft
Modified: 2016-07-07 07:29 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (49.87 KB, text/plain)
2013-11-07 04:00 UTC, jmsoft
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmsoft 2013-11-07 04:00:15 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) Client VM 24.0-b56


Steps to reproduce:
- open file A.java in Netbeans
- go to some position, say line 150:24
- exit Netbeans
- restart Netbeans
- Netbeans ends up in position 0:0 in file A.java
Comment 1 jmsoft 2013-11-07 04:00:18 UTC
Created attachment 141926 [details]
IDE log
Comment 2 Milutin Kristofic 2013-11-20 17:41:25 UTC
*** Bug 238177 has been marked as a duplicate of this bug. ***
Comment 3 Milutin Kristofic 2014-01-13 13:40:53 UTC
*** Bug 240107 has been marked as a duplicate of this bug. ***
Comment 4 supabitra 2014-01-19 17:47:53 UTC
Hi,

I am facing this below issues.

Steps to Reproduce:
1.	Open NetBeans 7.4 IDE
2.	Open any existing or new project.
3.	Open any file in Editor. For example lets assumeTest.Java program is being opened in Editor.
4.	Lets assume, this program have 100 lines of code. Lets go to line 50, kind of middle of the program file. Place cursor to line 50 and make it kind of middle of the screen.
5.	Add few lines in this program file. Anything, may be come few comments.
6.	Save the file.
7.	Close the NetBeans IDE by clicking the Windows close button at the top-right hand side.
8.	Re-open NetBeans IDE.
9.	It should bring the cursor to the same place, i.e. line 50 of the Test.Java file. To be precise, it should bring the cursor to the exact same place where I left it last time.

Instead:
1.	After opening NewBeans IDE, the Test.Java is getting opened by default, 
2.	******** “But instead of line 50, the cursor is placed at line 1 in the IDE”********. I expect NetBeans IDE to remember the cursor position of the last edited program file in editor.
3.	As far as I remember, the previous version of NetBeans IDE used to keep track of last edited line number of all the Program files at are kept open at NetBeans IDE and the same used to be set when NetBeans IDE used to be restarted.

This is very important feature which helps to remember where I was (the position and line number of code) during my last session work. Please help me to fix this issue.

Thank you in advance.

Thanks and Regards,
Supa
Comment 5 supabitra 2014-01-19 19:04:47 UTC
Hi,

Just now installed NetBeans 8.0 Beta, but unfortunately the same issue persist there as well.

Kindly fix this issues at the earliest. Anxiously waiting.

Thanks and Regards,
Supa
Comment 6 Jiri Prox 2014-01-20 09:17:22 UTC
Please do not set STARTED status, it is reserved for developers
thanks
Comment 7 Martin Balin 2016-07-07 07:29:30 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss