Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Some questions about #357

Unanswered
NikitaOstr asked this question in Q&A
Discussion options

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:

  1. 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?
  2. I don't see RF syntax error highlighting, mostly by using IF. Is there way to enabling it?
  3. 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!

You must be logged in to vote

Replies: 3 comments

Comment options

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?

You must be logged in to vote
0 replies
Comment options

Hi there!
I will follow with the same order of my questions:

  1. 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.
  2. 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
  3. 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!

You must be logged in to vote
0 replies
Comment options

Hi @d-biehl , will be appreciated to get your input regarding my questions)

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /