Skip to content

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

@gmuruge2

Description

@gmuruge2

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions