onflow/vscode-cadence

Error shows when viewing cadence with imports ("textDocument/documentSymbol failed")

jribbink opened this issue · 2 comments

Problem

An error shows in contracts/transactions which have imports in them. On the bottom right, an alert pops up saying "textDocument/documentSymbol failed" and there is more information in the console.

Steps to Reproduce

A good example is to open kitty-items & try to view the FlowToken.cdc contract. This error will then appear, whereas other contracts like FungibleToken.cdc are fine (no imports).

Screen Shot 2023-05-05 at 12 55 15 PM

Screen Shot 2023-05-05 at 12 55 37 PM

Flow CLI Version: v1.0.2

Acceptance Criteria

Doesn't show this error + fixes whatever side effects this error has.

Some testing has revealed that this broke at vscode-languageclient@8.1.0-next.3. Will try to see if this issue is on our end or VSCode's end.

Currently blocked until Flow CLI release. This will be fixed when the changes to the LS are pushed to the next Flow CLI version. At that time we will update vscode-languageclient & set the minimum supported version of vscode-cadence to whatever that version is.