-
-
Notifications
You must be signed in to change notification settings - Fork 28
Some questions about #357
-
Hi there!
Before all, I wanna thank you for your excellent job! Currently thinking about to replace our RF LS with yours.
Will be appreciated for your input on my questions:
- We have complexed automation cycles, and we create some global variables while init by parsing json, that represents our setups. As result, those variables are marked red in code. I tried to use extension option to hard coded this staff but failed. What is the right way to solve it?
- I don't see RF syntax error highlighting, mostly by using IF. Is there way to enabling it?
- Some different files in different projects have the same resource import of robot file. It is marked blue with relevant message. Is it possible to disable it?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments
-
First of all: Thank you, I'm very pleased!!!
I'm not sure how to answer the questions yet. Can you be a bit more specific with all the questions?
To 1:
How exactly do you initialize your variables? Via variable file import, on the command line, as environment variable? Use of keywords? etc.
to 2.
Which syntax errors are you missing? Can you give an example? Actually, all errors that are detected should also be displayed.
Have you installed and activated both extensions at the same time? So RobotCode and RF LS, if so, please only activate one extension at a time. Maybe you have
To 3.
Which messages are displayed?
See also here: #355 (comment) Perhaps this already answers your question?
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi there!
I will follow with the same order of my questions:
- For example, we have global dict called ${MACHINE} that is created while running init from our json file. This variable is not declared in any file. As result it's always marked in red underline (unknown variable). So I wonder if there is an option to declare such variables somewhere in settings.
- If I use IF with closure of END (not inline IF). In case I forgot to close that IF, no syntax error is shown (for FOR loop is the same behavior)
image - Yes, I think this is the same. Will check the solution described in Configuring VS Code Robot Framework Extension to Resolve Imports from a Central Resource File #355
BTW, I have bonus question. Where can I edit builtin snippets? I want to increase space in IF and in FOR from 2 spaces to 4 spaces, like TAB action.
And probably it will be an enhancement, to add snippet for FOR IN RANGE like you already have for regular FOR
image
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @d-biehl , will be appreciated to get your input regarding my questions)
Beta Was this translation helpful? Give feedback.