Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Caret / Cursor problem on 4.1

1b5db937-49d4-41cd-a9f6-dc099c20b13cApr 15 2015 — edited Nov 27 2016

Hi !

I started having problems in Sql Developer 4.1 (17 and 18 release) on Linux...

In Editor window I can see Cursor, but after page down command Cursor disappears. I tried changing color, but I can't (I don't get puldown menu with colors, or whatever code selection is in Caret Configuration). It seems that Color of Caret is changed into background color (white). I wanted to change Theme, but my Theme Combo is missing, so I couldn't even test if my assumption is right... Were themes removed?

Take care,

Andy

Comments

thatJeffSmith-Oracle

Themes were not removed. What exact combo of Linux and Java are you running?

user12250313

I am getting the same problem with the 4.1 final release. As soon as I scroll down the screen, the caret/cursor disappears.

I see similar behavior as listed in this thread:

4.1EA2 Text cursor goes missing in SQL Worksheet

I also notice that if I change the default color of the cursor to something like red, the cusor still dissapears, but as it blinks i can see a green cursor as the the new "off color."

Let me know if I can provide any more information.

System info:

Arch Linux

3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 x86_64 GNU/Linux

openjdk version "1.8.0_45"

OpenJDK Runtime Environment (build 1.8.0_45-b14)

OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)

SQL Developer info:

Version 4.1.0.19

Build MAIN-19.07

rwpreece1

Work Around...

I've found that if you open a table for browsing and then switch back to your worksheet and click in the editor that your cursor will appear and seems to stay visible for your entire session.

All I did was connect to a database and then:

1) select a table for browsing.

2) click the data tab.

3) click in the filter window (at this point you'll see your cursor).

Then switch back to the worksheet editor and click.  At this point your cursor will become visible.

I hope this works for you.

Here's a thought or two for Jeff or one of the developers:

I wonder if it's a problem with something that has changed in the fusionblue.jar theme file.  Something related to the cursor behavior or coloring, etc.

Here's why:

When I first started using this 4.1 version (4.1.0.19.07-no-jre.zip) that you now see some "disabled" or "I'm busy" type of shading when you login or open a table and scroll it.  Basically when doing anything that requires the system to think hard or process something more than just scrolling through sql text.  Then, when I open a table to browse it the graphics appear to refresh just before the cursor appears when I click in the filter field.  I suppose at that point something different is loaded into memory that makes the cursor appear and stay visible for the rest of your session (the time you have sql developer open).

So that made me wonder if the theme had changed.  So I opened the sqldeveloper-4.1.0.19.07-no-jre.zip file that I had downloaded and browsed to the /sqldeveloper/ide/themes folder.  There I can see that the modified date on the fusionblue.jar theme file is 16 April 2015.  I realize that the date could just be the build date of when the download file was created but it's work a look.  And, maybe the problem is not in the fusionblue.jar theme file but in the application code that is related to the theme handling.

Just my thoughts.  Hope it helps.  I'm guessing someone has been chasing this bug since one of the initial early access releases and hasn't quite been able to squash it.

Roger

Linux Mint 17

user12250313

This now appears to be working in the lastest Version 4.1.1.19.

Shrodi

I still have this problem on Version 4.1.1.19 (Build MAIN-19.59) for Linux (rpm) with Oracle Java 1.8.0_60. The workaround from rwpreece1 works for me, but it's still annoying.

proutt

Hi,

I've got the same problem too (debian 8, jdk 1.8.0_45)

Thanks for the workaround.

anishjp

Got the same problem for me as well!

SQL Developer 4.1.1.19

Fedora 22

java -version

openjdk version "1.8.0_60"

OpenJDK Runtime Environment (build 1.8.0_60-b27)

OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)

Work around suggested by rwpreece1 works.

3070488

confirmed rwpreece1 workaround works.

My environment:

OS: ubuntu 14.04 LTS

Sqldeveloper  Version 4.1.1.19.

java version "1.7.0_79"

OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)

OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

user4801774

still have this Problem with 4.1.2

OS: Kubuntu 15.10 (KDE 5.4.3)

Oracle Java 1.8.0_66

Sqldeveloper 4.1.2.20.64

3124046

Hello,

i have the same problem, which is really annoying to work with

SQL Developer 4.1.2.20 Build MAIN-20.64

Java 1.8.0_66 amd64

Linux Mint 17.2 amd64

randoogle

I think there's a simpler work-around. In the previous post (4.1EA2 Text cursor goes missing in SQL Worksheet) they mention resizing the window. If you maximize and then restore your window (generally just takes a couple doubl-clicks on the title bar), your cursor will reappear. Worked for me.

**update** never-mind. That quicker fix doesn't last the whole session. It's gone again the moment you scroll way, like you guys were saying. I think I'm just going to change my cursor color to red, though, so I don't HAVE to do the longer workaround.

2974357

Same problem.

My environment:

Ubuntu 15.10

Oracle Java 1.8.0_60

SQL Developer 4.1.2.20 Build MAIN-20.64

Change the caret color to red seems the best workaround by now.

anishjp

Try the work around suggested by rwpreece1

user4801774

still have this Problem with 4.1.3

OS: Kubuntu 15.10 (KDE 5.4.3)

Oracle Java 1.8.0_66

Sqldeveloper 4.1.3.20.78

user10981447

I have the same issue but have found work-around, which after a several days is still holding up

Navigation:

Tools -> Preferences ->

Code Editor -> Caret Behavior

Settings

Insert Mode Caret Shape : Quad Width Vertical bar        (default is Double Width)

(note: because this makes the cursor pretty similar to the default Overwrite cursor, it's a good idea to also change the next setting too)

Overwrite Mode Caret Shape : Outline Box         (default is Solid Box)

Caret Color : I set mine to a deep orange color, a bold color seems to be the best, but no need for it to be orange I have tested with reds, blues, and greens and it seems to work

For anyone in the development team who may be looking at this, there is one interesting behvior I have noticed and that is that the cursor color changes during use, not the setting, just the cursor color. I had mine set to orange, and after a while it went to a cyan type color. The setting remains as selected. Not sure if this relates to the issue but perhaps, the condition which caused the cursor to disappear is actually the color changing, and the color changes to the background color, and so cannot be seen, and perhaps the color it changes to, is dependent upon the selected cursor color, just a theory.

My config:

Ubuntu 14.04 LTS

Java 1.7.0_80

SQL Developer 4.1.2.20

92f26e2e-ded5-44f2-99c7-edbd3e0868b3

randoogle's solution which is by the way super easy also worked for me!

limsguy

This worked for me too.

Mint 17.3 with MATE 1.12.0

SQL Dev.  Version 4.1.3.20 Build MAIN-20.78

user9212908

Hello,

I have the same problem with 4.1.3.20 (Build MAIN-20.78).

It actually inverts the cursor color after scrolling.

Setting the color to (127, 127, 127) and made it a bit thicker mitigated the problem for me.

System info:

OS: openSUSE Leap 42.1 (x86_64)

KDE: 5.21.0

openjdk version "1.8.0_91"

OpenJDK Runtime Environment (IcedTea 3.0.1) (suse-12.1-x86_64)

OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Kossak

Same issue here (resizing window fixes the problem temporarily):

SQL Developer 4.1.3.20 Build MAIN-20.78

Linux 3.19.0-32-generic x86_64

Distributor ID: LinuxMint

Description:    Linux Mint 17.3 Rosa (Cinnamon)

Release:        17.3

Codename:       rosa

java version "1.8.0_101"

Java(TM) SE Runtime Environment (build 1.8.0_101-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

proutt

Hello All,

Same issue with version :

Oracle SQL Developer 4.1.5.21

Version  4.1.5.21

Build MAIN-21.78

Oracle IDE    4.1.5.21.78

Plate-forme Java(TM)    1.8.0_45-internal

Prise en charge de la gestion des versions    4.1.5.21.78

Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux

For me the best workaround is to set a color other than black. I found that (RGB)= (132, 132, 132) don't change the color.

Hope this help.

HarveyK

in my case, this solution sometime work...

Tools > Preferences > Code Editor > Caret Behavior

Uncheck 'Enable Caret Blinking'

my environment

OS : Arch linux (Gnome3, Xorg)

JAVA : 1.8

Adam Morávek

The same problem with the SQL Developer 4.1.5-21.78

OS: Linux Mint 18 (Ubuntu 16.04)

java version "1.8.0_112"

Java(TM) SE Runtime Environment (build 1.8.0_112-b15)

Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

unknown-7404

Did you happen to notice this thread is going on two years old?

If you have a question or issue please create a NEW thread and post your particulars.

1 - 23
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 25 2016
Added on Apr 15 2015
23 comments
16,071 views