Rule Description in Eclipse Not Displayed Properly

OS: Windows 10
Eclipse Version: 2023-06
SonarLint plugin version: 7.12.0.72679
PL: Java

Rule description is not displayed properly. There is no way to scroll text.

Hello @lizandrocaspe,

thank you very much for moving the issue from the Eclipse Marketplace here for further investigation.

Can you provide me with some more information on your Eclipse configuration: I see you are using the Dark theme, do you have done some other changes to the appearance or accessibility settings of Eclipse?
And for clarification, when resizing the SonarLint Rule Description view a bit, does it change and enable you to scroll properly?

I was checking again on my side (but only on Windows 11 yet) and I didn’t encounter specific parts of the rule description being not fully rendered (as you noticed) and I’d like to find the core of the issue.

Best,
Tobias

Hi Tobias,

Thanks for the reply!

Can you provide me with some more information on your Eclipse configuration: I see you are using the Dark theme, do you have done some other changes to the appearance or accessibility settings of Eclipse?

I installed a fresh installation of Eclipse 2023-06 with the default settings. (I think the black theme is automatically set to match with the system’s color config)

And for clarification, when resizing the SonarLint Rule Description view a bit, does it change and enable you to scroll properly?

I tried to change the screen size but it’s still not working. Texts are still covered by the code block with no way to scroll. Here are my screenshots:

Fullscreen

Reduced size

Regards,
Lizandro

Hi @lizandrocaspe,

thank you very much for the information, I’ll check that and try to find the root cause.
After that, I’ll get back to you, either with a solution or that we create a ticket on our side to fix that matter!

Best,
Tobias

Hi @lizandrocaspe,

I did some investigation but it seems I require some more information from you.

FYI, the texts which are not fully rendered / scrollable are actually browser instances rendered inside Eclipse. The source of the problem is this very browser instance and the underlying renderer. It can be configured from within Eclipse (see the screenshot below, which contains all the browsers of my testing machine) but with a default Eclipse installation it uses the Use external web browser setting with Default system web browser.

Therefore could you please provide me with this configuration on your side? And if so which browser is your Default system web browser?

This setting can also be (overwritten) via the eclipse.ini file in the Eclipse installation directory. Even though I think there is no such setting on a default installation, would you please check the file for the following Java property passed to the application: org.eclipse.swt.browser.DefaultType?

Also, just out of curiosity: When you change the underlying web browser via the Eclipse preferences (requires a restart of Eclipse), does anything change?
I leave you also THIS link to the Eclipse SWT FAQ (library rendering the browser) if you’d like to check the boundaries of the browser instance yourself. At some point we’d like to move on from the browser instances to more native components, but this is currently not feasable.

Thank you very much for your help in advance! Based on the information I can explicitly check for the OS-web browser combination.

Best,
Tobias

Hi Tobias,

I happen to have the same problem regarding the web browser. I tried every browser combination but the rendering is always bad padded. Is there a solution?

My specs:

Operating system: Windows 10 Pro
SonarLint plugin version: 8.0
Is connected mode used: Yes

Ps. Before connecting to my company server the situation was far worse than now.

Hi @gix85,

I’ll try to investigate it once again also in hindsight of trying to work around the limitations (or issues) coming from Eclipse using non-Eclipse software to render the browser stuff (for more information see the topic and the links provided).
It will take some time, so please be patient. If there is something possible to do about it from the user perspective or from our side, I will get back to you.

Best,
Tobias

Thanks Tobias,

Just to add some other infos, I had the problem in Eclipse 2021-03 but just today I installed 2023-09 and the problem is still there.

Hello! I’m facing the same problem with the same settings (Windows 10 Pro), the only difference is that I’m using Eclipse 2023-12 ):

My older version (2022-12) no have this problem.

Does anyone know how to solve this?