question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Description editor is broken on Linux

See original GitHub issue

Since a while we noticed that description editor on Linux is broken. Our current solution to that is downgrading some system libs (listed below). That temporary fix however will stop working soon as the downgraded packages may become incompatible with the rest of the OS.

This is how a broken description editor looks like on Ubuntu 20.04: image

This is the list of packages and versions where the editor is still working:

  • libjavascriptcoregtk-4.0-18=2.28.1-1
  • libwebkit2gtk-4.0-37=2.28.1-1

And here is the stack trace:

org.eclipse.swt.SWTException: file:///home/.../apps/capella-5.2.0%20.202111301257/capella/plugins/org.eclipse.nebula.widgets.richtext_1.2.0.201711021145/org/eclipse/nebula/widgets/richtext/resources/template.html:213:50: ReferenceError: Can't find variable: getAllOptions
Script that was evaluated:
function SWTWebkit2TempFunc26(){initEditor();}; SWTWebkit2TempFunc26()
	at org.eclipse.swt.browser.WebKit$Webkit2AsyncToSync.runjavascript(WebKit.java:1184)
	at org.eclipse.swt.browser.WebKit$Webkit2AsyncToSync.evaluate(WebKit.java:1127)
	at org.eclipse.swt.browser.WebKit.evaluate(WebKit.java:1445)
	at org.eclipse.swt.browser.WebBrowser.evaluate(WebBrowser.java:406)
	at org.eclipse.swt.browser.Browser.evaluate(Browser.java:670)
	at org.eclipse.swt.browser.Browser.evaluate(Browser.java:619)
	at org.eclipse.nebula.widgets.richtext.RichTextEditor$3.completed(RichTextEditor.java:297)
	at org.eclipse.swt.browser.WebKit.lambda$7(WebKit.java:1911)

Session data:

eclipse.buildId=unknown
java.version=14.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ioolkoscommented, Aug 6, 2022

Just downloaded the latest release for 6.0 and for my environment (Ubuntu 20.04) the description editor doesn’t seem fixed.

Description editor

1reaction
ioolkoscommented, Jul 23, 2022

@vik378 I did the downgrade and it worked great in Capella. However, after the following suspend of the computer, I was locked out of the graphical interface. This is most likely a total coincidence (have troubles with NVIDIA drivers from time to time), but still… 🤔 To resolve this I had to reinstall gdm3 and I’m back with the newest libraries (so no editor in Capella again).

I’ll try to use your Dockerfile, thanks for providing this & your help 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

My text editor has the display problem, How to fix it?
It can be some mess (bug) with the custom configuration of the editor. Please try to remove ./.config/gedit from your home folder: rm...
Read more >
580867 – Rich text editor is broken in Linux - Bugs - Eclipse
Created attachment 288775 [details] broken editor The rich text editor for comments does not work in Linux. You can only open the editor...
Read more >
Fixing 'Shell Script Opening in Text Editor' in Ubuntu Linux
Double clicking on shell scripts opens with text editor instead of being executed? Here's what you can do to fix the issue in...
Read more >
command line text editors in Linux (nano,vim) are not working
When I connect to a linux server with SSH and I try to edit a file with a command line editor like nano...
Read more >
Text Editor Happenings : r/linux - Reddit
The Gedit maintainer wasn't interested in having that sort of overhead so he requested Gedit to be removed from core apps. As a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found