v-analyzer icon indicating copy to clipboard operation
v-analyzer copied to clipboard

errors in script mode `bad top level statement […]`

Open ttytm opened this issue 1 year ago • 0 comments

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 Screenshot_20240415_123458
  • wrapped in a fn Screenshot_20240415_123515

Environment details (v doctor output)

Editor name

any

v-analyzer Version

up to v0.0.4.nightly

VS Code Extension Version

No response

ttytm avatar Apr 15 '24 10:04 ttytm