gradusnikov / eclipse-chatgpt-plugin

An Eclipse plugin that integrates with ChatGPT
MIT License
42 stars 27 forks source link

Black ChatGPT View #21

Open Markus-Schaller opened 5 months ago

Markus-Schaller commented 5 months ago

Hi, not sure if it is a known issue, but I have a problem with ChatGPT View.

API-key is set (works with other implementations) Model name: gpt-4 Eclipse Version: 2023-12 (4.30.0) Build id: 20231201-2043

The ChatGPT View is black, nothing to see on it. I have tried all features of the plugin (discuss, refactor, ....) but nothing happens (at least I cannot see anything).

BR Markus

jukofyork commented 5 months ago

Hi, not sure if it is a known issue, but I have a problem with ChatGPT View.

API-key is set (works with other implementations) Model name: gpt-4 Eclipse Version: 2023-12 (4.30.0) Build id: 20231201-2043

The ChatGPT View is black, nothing to see on it. I have tried all features of the plugin (discuss, refactor, ....) but nothing happens (at least I cannot see anything).

BR Markus

Are you using Linux, and if so are all the other browser widgets also broken in your eclipse? Try opening up the welcome page and see if it's also just black/grey? If so then it's a known problem and you have to set an environment variable to turn off the Linux compositor.

Markus-Schaller commented 5 months ago

Hi,

no I am using Win 10. I found out that i can use the prompt in the window, but it is not possible to send selected data to the prompt. I am using ABAP ADT Extensions, which connects to a SAP Backend System. The sources are not stored in a local repository. Maybe it has to do with that? But why is passing code from clipboard also not working?

pinakipatrapro commented 4 months ago

Hi,

no I am using Win 10. I found out that i can use the prompt in the window, but it is not possible to send selected data to the prompt. I am using ABAP ADT Extensions, which connects to a SAP Backend System. The sources are not stored in a local repository. Maybe it has to do with that? But why is passing code from clipboard also not working?

Facing the same issue here. If i try with an html file it works but not with ABAP

jukofyork commented 4 months ago

Have you looked in the main eclipse log? Is it throwing an exception that has something like eclipse.e4.di in the name? If so then I think it's the same dependantcy injection problem as I had.

Markus-Schaller commented 4 months ago

Actually it seems that literally nothing is happening. I looked the error log in the IDE and also the logfile in the eclipse-workspace, but there are no errors thrown when I mark a snippet and choose "Discuss" or "Refactr" from the context menu.

pbtsrc commented 2 months ago

For anyone who faced a similar issue in Linux. Environment variable WEBKIT_DISABLE_DMABUF_RENDERER=1 solves the problem.

https://github.com/eclipse-platform/eclipse.platform.swt/issues/843#issuecomment-1802088166

jukofyork commented 2 months ago

For anyone who faced a similar issue in Linux. Environment variable WEBKIT_DISABLE_DMABUF_RENDERER=1 solves the problem.

eclipse-platform/eclipse.platform.swt#843 (comment)

Yeah, either:

export WEBKIT_DISABLE_COMPOSITING_MODE=1

or:

export WEBKIT_DISABLE_DMABUF_RENDERER=1

Works to stop this.

You can tell if you are effected by this Eclipse bug as the main 'Welcome Screen' will also be blank/grey/black too.

Interestingly I've just moved to using the latest Eclipse version on XFCE in Debian 12 and this bug seems to have resolved itself for me (previously on XFCE in Debian 10 I got this for all version of Eclipse I tried).