Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is not working correctly on Eclipse Theia #947

Open
chbo123456 opened this issue Oct 22, 2024 · 3 comments
Open

Plugin is not working correctly on Eclipse Theia #947

chbo123456 opened this issue Oct 22, 2024 · 3 comments
Labels
kind/bug Something isn't working

Comments

@chbo123456
Copy link

Environment:
Ecplise Theia v 1.54.0

Version information

Cloud Code Extension version: 2.19.0

VSCode Eclipse Theia version: 1.54.0

OS:

Cloud SDK:

Skaffold:

Kubectl:

Description:
I tested your cool plugin on eclipse theia (https://github.com/eclipse-theia/theia, a open clone of vscode).
Connection/authentication to gcloud and chat is working, but "explain this" throws "there was a problem getting a response":
image
Are you planning to extend the support there? Would be awesome!

Repro step:

  1. Install the plugin on eclipse theia (https://theia-ide.org/#theiaide)
  2. install the plugin from "extensions menu"
  3. create connection to gcloud
  4. open a file -> select content -> right click -> "explain this"
@maxrandolph maxrandolph added the kind/bug Something isn't working label Oct 30, 2024
@maxrandolph
Copy link

Hi @chbo123456, could you file feedback with logs attached through the extension? It would also be helpful to include some log data here if available.

Thanks.

@chbo123456
Copy link
Author

chbo123456 commented Nov 5, 2024

Hi @maxrandolph , thanks for the reply, sure I can, there are two main error messages from the logs that I could identify:

2024-11-05T07:26:45.729Z root ERROR [hosted-plugin: 78869] Promise rejection not handled in one second: NotAllowedError: Failed to execute 'readText' on 'Clipboard': Document is not focused. , reason: NotAllowedError: Failed to execute 'readText' on 'Clipboard': Document is not focused. 2024-11-05T07:26:45.729Z root ERROR [hosted-plugin: 78869] With stack trace: Error: Document is not focused. at c.readText (xxx/bundle.js:2:1772669) at async t.ClipboardMainImpl.$readText (xxx/bundle.js:2:7696497) at async l.handleRequest (xxx/bundle.js:2:2447494)

2024-11-05T07:26:26.861Z root ERROR [hosted-plugin: 78183] There was a problem getting chat suggestions: i [Error]: json: cannot unmarshal array into Go struct field ChatSuggestionsParams.selectedRange of type protocol.Range at xxx/googlecloudtools.cloudcode-2.20.0/extension/dist/extension.js:14:11423146 at oe (xxx/.theia/deployedPlugins/googlecloudtools.cloudcode-2.20.0/extension/dist/extension.js:14:11423440) at xxx/.theia/deployedPlugins/googlecloudtools.cloudcode-2.20.0/extension/dist/extension.js:14:11418224 at Immediate.<anonymous> (xxx/.theia/deployedPlugins/googlecloudtools.cloudcode-2.20.0/extension/dist/extension.js:14:11418244) at processImmediate (node:internal/timers:466:21) { code: -32700, data: null }

Hope this helps.

@maxrandolph
Copy link

Thanks for sharing @chbo123456, we will take a look and provide an update to this when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants