Closed Lythenas closed 1 year ago
@Lythenas Can you test whether this affects the latest version of Theia (preferably using the current master
branch)? The version you're using is fairly old.
I just tried it on gitpod (first time using that). And I see the same error:
2023-10-22T12:43:23.887Z root ERROR Failed to fetch children for 'SonarLint.IssueLocations' TypeError: Cannot read properties of null (reading 'label')
at TreeViewExtImpl.getTreeItemLabel (/workspace/theia/examples/browser/lib/backend/plugin-host.js:19131:40)
at TreeViewExtImpl.getItemLabel (/workspace/theia/examples/browser/lib/backend/plugin-host.js:19139:28)
at /workspace/theia/examples/browser/lib/backend/plugin-host.js:19198:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
I see. Seems like vscode is a bit lax in what it accepts as return values from data tree providers. Extensions aren't actually allowed to return null or undefined, but seems like the SonarLint extension does anyway, see here. I've submitted a fix for this in https://github.com/eclipse-theia/theia/pull/13018.
Thanks for the quick response, that fixes the issue.
I think the sonarlint plugin might have more issues. On gitpod the webviews were not working, but they worked before on my local setup. But I will open new issues if I run into anything.
On gitpod the webviews were not working
That's because webviews are served on subdomains which aren't routed correctly to Gitpod - that behavior is expected. Theia webviews need special reverse proxying.
Bug Description:
The "SonarLint Issues Location" view thing (not sure what to call it, it is in the file explorer at the bottom, expandable) is not working. When trying to expand it, it throws the following error:
Steps to Reproduce:
Additional Information