Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 551343

Summary: Cannot change value of variables
Product: [Eclipse Project] Platform Reporter: Axel Mueller <aegges>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: cdtdoug, ericwill, jonah, loskutov
Version: 4.13   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
animated gif of failure none

Description Axel Mueller CLA 2019-09-21 11:53:06 EDT
After updating from 2019-06 to 2019-09 release I cannot longer change the value of a variable during a debug session (gdb).
Comment 1 Jonah Graham CLA 2019-09-21 16:45:58 EDT
I was easily able to reproduce this with both a trivial Java program in JDT and trivial C program in CDT. However it is not simply that you cannot edit variables, but that the UI does not change to a textbox. If you single click in the value column in a way that should bring up the textbox you can type and press Enter and the value will indeed update. You can tell when you are in edit mode because the cursor changes to I-bar when hovering over where the text editor should be. There is nothing in my log to indicate a problem.

As I can reproduce in both JDT and CDT this looks like a platform issue, so sending in that direction. @Platform folk, please let me know if you cannot reproduce this easily and I can try to provide more details. I have attached a short animated gif.

I assume by the nature of this problem that it is a Linux only issue, but I will test in Windows too and report back.
Comment 2 Jonah Graham CLA 2019-09-21 16:54:01 EDT
Created attachment 279969 [details]
animated gif of failure
Comment 3 Jonah Graham CLA 2019-09-21 16:54:19 EDT
(In reply to Jonah Graham from comment #1)
> I assume by the nature of this problem that it is a Linux only issue, but I
> will test in Windows too and report back.

Windows worked fine.
Comment 4 Jonah Graham CLA 2019-09-21 17:09:38 EDT
Some extra info, key configuration entries:
java.runtime.name=OpenJDK Runtime Environment
java.runtime.version=1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10
org.eclipse.swt.internal.deviceZoom=100
org.eclipse.swt.internal.gdk.backend=x11
org.eclipse.swt.internal.gtk.theme=Adwaita
org.eclipse.swt.internal.gtk.version=3.22.30


PS I tried a few of the SWT & JFace snippets to see if I could reproduce a test case with less dependencies, but the snippets with cell editors all seemed fine.
Comment 5 Andrey Loskutov CLA 2019-09-21 17:11:43 EDT
Looks like SWT issue.
Comment 6 Paul Pazderski CLA 2019-09-21 17:12:44 EDT
I could reproduce and found the same problem in Expression View.

The similar inline edit in launch configuration environment tab works fine.
Comment 7 Eric Williams CLA 2019-09-21 19:21:58 EDT
It's already fixed in early 4.14. I believe Wayland isn't affected, if a workaround is desperately needed.

*** This bug has been marked as a duplicate of bug 550606 ***