v-analyzer
v-analyzer copied to clipboard
errors in script mode `bad top level statement […]`
Describe the bug
~~Until now v-analyzer doesn't support script mode properly (when statements are not wrapped in a function).~~ The inital report was not fully true. I'm encountering cases where analyzer does work with top level statements in script mode. Idk yet if it's related to running multiple v-analyzer instances or in certain directory structures. Gonna update to a proper reproduction if I get the chance to isolate the problem.
Expected Behavior
Should work in script mode.
Current Behavior
bad top level statement […] errors
Reproduction Steps
my_stmt := ''
Possible Solution
No response
Additional Information/Context
- valid top level declaration in script mode
- wrapped in a fn
Environment details (v doctor output)
Editor name
any
v-analyzer Version
up to v0.0.4.nightly
VS Code Extension Version
No response