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

Getting Undefined environment variable even though variable is declared and working during the run time but it shows red underline #1080

Open
gmuruge2 opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working robotframework-ls

Comments

@gmuruge2
Copy link

Describe the bug
When you use the .env file to store some variable and when using them getting a Red underline and when you tap on it, It says Undefined environment variable but I have declared and working fine when I run the script

To Reproduce
Steps to reproduce the behavior:

  1. Add a variable in the .env file
  2. Use that variable in any resource file

Expected behavior
I should not see the error message and when I tap on it. It should take me to the .env file.

Screenshots
Screenshot 2024-09-30 at 9 50 05 PM

Versions:

  • OS: Mac 14.7
  • Robot Framework Version: 7.0.1
  • Robot Framework Language Server Version: 1.11.0
  • Client Version: 2024.2.3 (Community Edition)
@gmuruge2 gmuruge2 added bug Something isn't working robotframework-ls labels Sep 30, 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 robotframework-ls
Projects
None yet
Development

No branches or pull requests

1 participant