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

errors in script mode bad top level statement […] #98

Open
ttytm opened this issue Apr 15, 2024 · 0 comments
Open

errors in script mode bad top level statement […] #98

ttytm opened this issue Apr 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ttytm
Copy link
Member

ttytm commented Apr 15, 2024

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 ttytm added the bug Something isn't working label Apr 15, 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
None yet
Development

No branches or pull requests

1 participant