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

Unexpected Error message notifications for flow-c1 (Non blocking, but there have been pop-ups) #670

Closed
btspoony opened this issue Aug 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@btspoony
Copy link

Problem

  1. Cadence plugin starts slowly, which may be related to the network. My VPN is sometimes unstable.
  2. Unexpected Cadence Plugin error when editing ( Only happens when select flow-c1)

Error in the extensions log

2024-08-13 12:44:43.463 [error] [onflow.cadence] provider FAILED
2024-08-13 12:44:43.463 [error] Error: selectionRange must be contained in fullRange
    at Function.validate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:152:18749)
    at new d (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:152:18963)
    at Ii (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73163)
    at Ii (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73344)
    at s (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:47258)
    at Object.IJe (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:47344)
    at Object.Jo [as asDocumentSymbols] (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73130)
    at c (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:83:56120)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processImmediate (node:internal/timers:449:9)
    at d.provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:154:100486)
2024-08-13 12:44:43.686 [error] [onflow.cadence] provider FAILED
2024-08-13 12:44:43.686 [error] Error: selectionRange must be contained in fullRange
    at Function.validate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:152:18749)
    at new d (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:152:18963)
    at Ii (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73163)
    at Ii (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73344)
    at s (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:47258)
    at Object.IJe (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:47344)
    at Object.Jo [as asDocumentSymbols] (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73130)
    at c (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:83:56120)
    at d.provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:154:100486)

Errors in the Cadence output log:

[Error - 12:47:51] Request textDocument/documentSymbol failed.
Error: selectionRange must be contained in fullRange
    at Function.validate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:152:18749)
    at new d (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:152:18963)
    at Ii (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73163)
    at Ii (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73344)
    at s (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:47258)
    at Object.IJe (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:47344)
    at Object.Jo [as asDocumentSymbols] (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:79:73130)
    at c (/Users/bibi/.vscode/extensions/onflow.cadence-2.3.5/out/extension/src/main.js:83:56120)
    at d.provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:154:100486)

Steps to Reproduce

Switch to flow-c1 (cadence 1.0)
Any editing action on Cadence file

Acceptance Criteria

no error message notifications

Context

Cadence Plugin: v2.3.5
flow-c1: 1.21.0 preview.32

@btspoony btspoony added the bug Something isn't working label Aug 13, 2024
@jribbink
Copy link
Contributor

Outdated.

@github-project-automation github-project-automation bot moved this to ✅ Done in 🌊 Flow 4D Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants