cadence-tools icon indicating copy to clipboard operation
cadence-tools copied to clipboard

[LS] Windows issue on resolving string imports

Open devbugging opened this issue 1 year ago • 1 comments

There's a windows specific issue when resolving string imports. The Sentry report:

Sentry Issue: LANGUAGE-SERVER-6V

runtime.errorString: runtime error: invalid memory address or nil pointer dereference
  File "/go/pkg/mod/github.com/onflow/cadence-tools/[email protected]/integration/resolvers.go", line 41, in (*resolvers).stringImport
  File "/go/pkg/mod/github.com/onflow/cadence-tools/[email protected]/server/server.go", line 2019, in (*Server).resolveImport
  File "/go/pkg/mod/github.com/onflow/cadence-tools/[email protected]/server/server.go", line 2870, in (*Server).handleImport
  File "/go/pkg/mod/github.com/onflow/[email protected]/runtime/sema/check_import_declaration.go", line 102, in (*Checker).importResolvedLocation
  File "/go/pkg/mod/github.com/onflow/[email protected]/runtime/sema/check_import_declaration.go", line 65, in (*Checker).declareImportDeclaration
...
(9 additional frame(s) were not displayed)

https://dapperlabs.sentry.io/issues/3901167811/events/latest/?project=6330569&query=is%3Aunresolved+level%3Afatal&referrer=latest-event&stream_index=0

devbugging avatar Apr 11 '23 11:04 devbugging