Bug, gutter line numbers do not show when cursor is moved with keyboard

Claus Pedersen

Member³
I have chosen to show line numbers in the editor with an interval of 5, i.e. only the line numbers 5,10,15 etc. are shown.

But the current line number should also be shown.

This works when the cursor is repositioned by clicking with the mouse on a line, but not always when the line focus is changed by keyboard.

When I click on line 13, the line number is displayed, but when I move the cursor up by pressing the up key twice, the number is shifted to 12 and stays there even if I am on line 11. The number 12 stays in the gutter until I select another line with the mouse. When using the PgUp and PgDn keys it seems to work for the first and last line in the current view.

I am using version 7.1.2.1369, I think this is a newly introduced bug, I have not noticed this behaviour in the earlier versions.
 
I cannot immediately reproduce this. Is this 100% reproducible for you? Or does it depend on the editor contents?
 
I have investigated a little.

I have completely uninstalled and re-installed PLD to make sure no old settings were causing the problem. I then set the editor line number interval to "Each 5".

I have the following piece of code:
Code:
create procedure test as
  i integer;
begin
  i := 1;
  i := 1;
  i := 1;
  i := 1;
  null;
  null;
end;
I place the cursor on line one, first column. When I shift lines with the up and down arrow keys the line number is not displayed in the gutter when the cursor is in column one.

I now shift the cursor to column three. When I move the cursor down, only line numbers 1, 2, 3, 4, 5, 8 are shown, and line numbers 4 and 8 are "sticky". When I move the cursor back up from line 10, only line numbers 7, 3, 2, 1 are shown, and line number 7 is "sticky".

When I move the cursor to column 2 no line numbers are shifted at all. It seems that the variable highlight helps the update of the line numbers.

Can you reproduce this behaviour? I am running on machines with OS's Win2000 and WinXP.
 
No, I cannot reproduce this. We'll have a 7.1.3 version available shortly. Maybe you can give it another try.
 
I can reproduce this on version 7.1.2.1363.

Additional comment: the 'sticky' numbers that Claus describes are cleared when you switch to another running application (e.g. Internet explorer). When you return to PL/SQL Developer everything seems to be ok again.

Maybe this helps.
 
PeterW , thanks for your response.

Marco, I have aksed my co-workers if they can reproduce the problem, some of them could, some of them could not.

There seems to be the pattern that old machines do not tend to have the problem. Is this related to processor speed or similar? We all run WinXP as OS.

Another thing. When I completely remove PL/SQL Developer from my system, including start menu shortcuts, the PL/SQL Developer start menu shortcut is not created, despite the fact I choose default values in the setup. But the icons Manual, Help, New Features, OFS Manager, Uninstall are dumped directly below the Start menu (WinXP).

By the way: When I re-install PLD, I run the Uninstall icon. Then I delete the PL/SQL Developer directory in the Programs folder. Then I delete all references to PL/SQL Developer in the Windows registry (using RegEdit, search for "PLSQL Developer" and "plsqldev"). Somehow there must be some settings left, because when I reinstall PL/SQL Developer, the earlier saved window settings are applied. Where are they saved?

My settings are as follows:
PL/SQL Developer
Version 7.1.3.1379
Windows XP Professional 5.1 Build 2600 (Service Pack 2)

Physical memory : 1.039.804 kB (323.556 available)
Paging file : 2.504.848 kB (1.931.724 available)
Virtual memory : 2.097.024 kB (1.980.596 available)

Parameters
C:\Program Files\PLSQL Developer\PlSqlDev.exe
nosplash
nologon

Preferences
Session mode: Multi
OCI Library:
Use OCI7: False

Preference Files
C:\Program Files\PLSQL Developer\Preferences\Default\Default.ini
C:\Program Files\PLSQL Developer\Preferences\CP\default.ini

Plug-Ins

Aliases
LMCNT
se10.vmware2003
SWIX
SWIX_tstLogia
THEBE

Homes
DEFAULT_HOME (C:\orant)

DLLs
C:\orant\bin\oci.dll
C:\orant\bin\ORA803.DLL
C:\orant\bin\ORA804.DLL
C:\orant\bin\ORA805.DLL

TNS File
C:\orant\Net80\Admin\tnsnames.ora

Using
Home: DEFAULT_HOME
DLL: C:\orant\bin\oci.dll
OCI: Version 8.0
Oracle9i Enterprise Edition Release 9.2.0.5.0

Character Sets
Character size: 1 byte(s)
CharSetID: 46
NCharSetID: 871
Unicode Support: True
NLS_LANG: AMERICAN_AMERICA.WE8ISO8859P1
NLS_NCHAR_CHARACTERSET: UTF8
NLS_CHARACTERSET: WE8ISO8859P15
 
Another comment: if you enable the preference 'Highlight edit line' then everything works fine.

So it seems that highlighting certainly has some sort of influence.
 
Another comment: if you enable the preference 'Highlight edit line' then everything works fine.
Aha, I had this enabled as well. Disabling it does indeed cause the problem. We'll fix it.
 
Thanks.

Please also keep the following in mind:
Another thing. When I completely remove PL/SQL Developer from my system, including start menu shortcuts, the PL/SQL Developer start menu shortcut is not created, despite the fact I choose default values in the setup. But the icons Manual, Help, New Features, OFS Manager, Uninstall are dumped directly below the Start menu (WinXP).
 
Installation procedure still not quite right.

1) I download PLD from http://allroundautomations.swmirror.com/plsqldev713.exe
2) I start the setup program
3) First dialog: click OK (WinZip Self-Extractor runs)
4) Click "I Agree" on license agreement
5) Destination directory default "C:\Program Files\PLSQL Developer". Click Next
6) Shortcuts, both checkboxes checked: Create PL/SQL Developer group in "Programs" (default), Create shortcut on desktop. Click Next
7) Install options, both checkboxes checked. Click Finish
8) Install: Copying files, Creating desktop shortcut, Creating menu shortcuts. PL/SQL Developer installed successfully. Click Close

Now there is a shortcut on the desktop, but no shortcuts in the start menu, not even a PLSQL Developer entry.

I have investigated a little: When I remove the default marking from the shortcuts dialog (click twice on the top-most level "Programs", now the five shortcuts appear directly under the start menu, not in a seperate PLSQL Developer folder, as noticed in an earlier post. Even if I select another start menu folder, still no PLSQL Developer folder is created. The closest I get is to get the five shortcuts below the start menu and create a PLSQL Developer folder myself and move the five shortcuts into that folder.

Also when uninstalling an older version of PL/SQL Developer, the PLSQL Developer folder is not removed from the start menu, probably a symptom of the above findings?

Am I missing something?

P.S. Another (very small) detail in the setup dialog: There are no keyboard shortcuts to the buttons "I Agree"/"I Don't Agree" in the second dialog. Fist by pressing Tab five times, the buttons get focus so I can press Enter to continue. In the next dialog (destination directory), the Next button does not have focus either. Pressing Tab twice helps. In the rest of the dialogs the Next and Finish buttons have focus as I would expect.
All in all not an issue that would keep me awake at night if not fixed, but if you are going to look at the setup program for other reasons you might just as well consider this ;)
 
Back
Top