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 258618 - Line numbers disappearing
Summary: Line numbers disappearing
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal with 8 votes (vote)
Assignee: Miloslav Metelka
: 254406 267559 (view as bug list)
Depends on:
Reported: 2016-04-01 15:55 UTC by lamikam
Modified: 2018-03-12 01:13 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

screen shot of missing line numbers. (21.22 KB, image/jpeg)
2016-04-01 15:55 UTC, lamikam
screenshot No line numbers (235.62 KB, image/jpeg)
2017-05-04 09:26 UTC, buitre
uigesture log (420.82 KB, text/plain)
2017-05-04 09:27 UTC, buitre

Note You need to log in before you can comment on or make changes to this bug.
Description lamikam 2016-04-01 15:55:17 UTC
Created attachment 159094 [details]
screen shot of missing line numbers.

After running NB IDE for a while, The line numbers disappear in the source editor, and I have to re-start the IDE to get them to re-appear.
Comment 1 Milutin Kristofic 2016-08-25 14:58:42 UTC
*** Bug 267559 has been marked as a duplicate of this bug. ***
Comment 2 lopura 2016-11-18 10:28:08 UTC
I have the same problem (using Netbeans 8.2). Some *.java files are missing line numbers (others still show them) after some time of working. I have no idea how to reproduce this.

An additional thing I noticed is that I cannot search (Ctrl+F) in those files any longer. Also, the Edit menu shows the 'Find' and 'Replace' items as deactivated. Restarting Netbeans solves the problem.
Comment 3 ThomasLandauer 2016-12-05 22:52:38 UTC
I have the same problem (Netbeans 8.2). And search also doesn't work (neither keyboard nor menu).

I also can't reproduce it, but I noticed two more things:

1) It only happens when I get back to the computer, not while working continuously. Might be related to Windows standby mode (just guessing).

2) The vertical toolbar on the very left of the editor gets wider when the problem occurs. However, it gets back to its original size as soon as I expand it (i.e. show e.g. the "Projects" pane).
Comment 4 Milutin Kristofic 2017-04-18 14:24:31 UTC
*** Bug 254406 has been marked as a duplicate of this bug. ***
Comment 5 buitre 2017-05-04 09:25:49 UTC
I'm having this issue two or three times everyday.

It usually happens when a change in focus happens, for example opening the "open project" dialog. Today also happened while in design view, with the "Select Image File" dialog, i changed the focused window. At that moment Netbeans launched a "nullPointerException", and the line numbers of every open file have disappeared.

I'm adding the "uigestures" log, where the exception appears, and a screenshot, it could help.
Comment 6 buitre 2017-05-04 09:26:30 UTC
Created attachment 164241 [details]
screenshot No line numbers
Comment 7 buitre 2017-05-04 09:27:18 UTC
Created attachment 164242 [details]
uigesture log
Comment 8 ibeaumont 2017-07-25 17:04:47 UTC
Is this related to 256104 which also has issues with line numbers disappearing after using webex.
Comment 9 mikedavison 2017-10-26 00:06:10 UTC
I have same problem with Netbeans 8.2 (Build 201609300101).
Additional information that may provide clues.
- Only seems to occur when idle for some time.
- Closing the file being edited and reopening makes line numbers reappear. I don't have to restart IDE.
Comment 10 st.m.h 2017-11-09 11:27:45 UTC
Similarly it does no longer react to keyboard shortcuts, when the line numbers have disappeared.
Comment 11 nathanhb 2017-12-01 19:38:03 UTC
Also, sometimes when the line numbers dissapear and Find stops working... it also jumps me to the top of the file instead of wherever I was scrolled to.
Comment 12 bocco51 2017-12-21 10:05:37 UTC
same bug with 8.2

I restarted Netbeans and the lines number appears.
Comment 13 Klynch 2017-12-21 14:15:56 UTC
I believe this and are related.  Both tend to happen after netbeans is open for some time.  Not sure if there is a period of time or another trigger has to occur, but both happen simultaneously for me.
Comment 14 lopura 2017-12-21 15:12:27 UTC Yes, as I wrote in my "Comment 2", those two things occur at the same. Whenever line numbers are gone, searching is not possible. The menu item is also greyed out then.

Regarding the time, I don't think there is a defined time. From my experience (from memory, I have not logged the time), the problem occurs sometimes quite fast (roughly half an hour?), sometimes it occurs after several hours, and sometimes I can work for a day without any problem.

It really should be fixed, as it makes working with NetBeans nuisance. Having to re-start NetBeans in the middle of a debug session is annoying.
Comment 15 dtoman 2017-12-24 09:32:14 UTC

I would like to support Klynch in that this bug is related with (CtrlF not working)

And it is possible that the problem tends to appear when the IDE is running longer time. I installed NetBeans on my Win7 before a month+  and not stopped / restarted it for long time (I don't switch off/reboot my PC). I see line numbers disappearing and CtrlF not working (the option which allows to search for selected text remains working) very frequently. I (re)open a file and in few tens of minutes the problem usually appears.  I newer saw the problem occuring before my eyes. It means I switch to other tab and when I return back to the source file there are no line numbers (and CtrlF is broken). Or maybe it may occur when I switch to another application (browser, ssh terminal window) and the back to the NetBeans

I use SFTP synchronisation (happy with CtrlS copying the file to remote server) and I configured all the things to have remote PHP debugging in working state (althoung not using it with the current project).

D. Toman
Comment 16 lamikam 2017-12-28 01:22:06 UTC
Is there any ETA on fixing this?  Very annoying.
Comment 17 mdunphy 2018-03-12 01:13:43 UTC
I've been seeing this problem lately when I leave NetBeans open and unused for a couple hours.  I tried deleting my config/Editors folder as caiofior suggested in a duplicate of this bug report, but the problem returned the same day. As others have reported, the Ctrl-F shortcut stops working while the line numbers are missing, and the numbers reliably return after restarting NetBeans.