This repository was archived by the owner on Dec 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
VSCode highlights error but binary don't #442
Copy link
Copy link
Open
Description
I'm having a version conflict between VScode extension and npm package. An error is highlighted in the editor:

but it's not picked up by the binary:
yarn flow spec/javascripts/Stats/applications_table.spec.js
yarn run v1.22.19
$ /Users/user/projects/3scale/porta/node_modules/.bin/flow spec/javascripts/Stats/applications_table.spec.js
No errors!
Here's the logs from the Output console:
[Info - 12:01:07 PM - porta/.flowconfig] Found flow using option `pathToFlow`
[Info - 12:01:10 PM - porta/.flowconfig] Using flow '/Users/user/projects/3scale/porta/node_modules/.bin/flow' (v0.152.0)
And here's my folder's config:
{
"flow.useBundledFlow": false,
"flow.useNPMPackagedFlow": false,
"flow.pathToFlow": "${workspaceFolder}/node_modules/.bin/flow",
}I can't reproduce it anymore, but at some point I managed to get this error in the Output console:
[Info - 11:51:24 AM - porta/.flowconfig] restarting client
[Info - 11:51:24 AM - porta/.flowconfig] Unable to verify SHASUM256.txt.sign:
ENOENT: no such file or directory, open '/Users/user/projects/3scale/porta/node_modules/flow-bin/SHASUM256.txt.sign'
[Info - 11:51:24 AM - porta/.flowconfig] Found flow using option `useNPMPackagedFlow`
[Info - 11:51:24 AM - porta/.flowconfig] Using flow '/Users/user/projects/3scale/porta/node_modules/flow-bin/flow-osx-v0.152.0/flow' (v0.152.0)
Flow: the running server is a newer version of Flow (0.183.0) than the LSP (0.152.0)LSP is exiting. Hopefully the IDE will start an LSP with the same binary as the server[Error - 11:51:33 AM] Connection to server got closed. Server will not be restarted.
My guess is that VScode is using Flow (0.183.0) somehow, picking up the error, whereas running flow doesn't. Any ideas how to further debug this?
Metadata
Metadata
Assignees
Labels
No labels