-
Notifications
You must be signed in to change notification settings - Fork 93
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
"Undefined variable" error while importing type annotated variables from python file #629
Comments
I have the same experience, but also with variables that are built-in... In a piece of code in one of my test cases I've constructed a List object containing files/documents. With the FOR...IN statement I iterate through the List object and upload each file to a web page... After (automatically) upgrading to Robot Framework Language Server 0.43.x I noticed that the variable ${document} in the code had a wiggly line under it, indicating that there might be a syntax error. But the code runs fine, without error. Downgrading to Robot Framework Language Server 0.42.0 solved the issue. The wiggly lines were gone and the code still runs fine without errors. OS: Win10 |
I'm facing a very similar issue. This might be related to #628. |
There really was an issue in the static analysis when dealing with annotated assigns. Thanks for the report. I've just fixed that. p.s.: for others facing issues with undefined variables, if it's not exactly the case of annotated assigns, please create different issues. |
@vtpeters as a note, if your info is correct, you're using a |
As a note, I've just published a pre-release ( |
Describe the bug
I am getting "Undefined variable" error while importing type annotated variable from python file.
I've noticed in 0.43.0 (also 0.43.2) but in 0.42.0 works fine.
Example
Screenshots
Versions:
The text was updated successfully, but these errors were encountered: