Closed seifip closed 4 years ago
Hello Philip, thanks for the report.
I can see in the log that it's not being able to generate completions for some of the libraries you have (which I believe are the ones you want completion for).
In particular:
Generating libspec for: RPA.Browser.
Cwd:c:\Users\phili\Documents\GitHub\white-rabbit-japan\rpa-rabot\resources
Command line:
C:\Users\phili\anaconda3\python.exe -m robot.libdoc --format XML:HTML -P c:\Users\phili\Documents\GitHub\white-rabbit-japan\rpa-rabot\resources RPA.Browser C:\Users\phili\.robotframework-ls\specs\5ccafb0d_3.2.1\user\RPA.Browser.libspec
Generating libspec for: RabotUtils.
Cwd:c:\Users\phili\Documents\GitHub\white-rabbit-japan\rpa-rabot\resources
Command line:
C:\Users\phili\anaconda3\python.exe -m robot.libdoc --format XML:HTML -P c:\Users\phili\Documents\GitHub\white-rabbit-japan\rpa-rabot\resources RabotUtils C:\Users\phili\.robotframework-ls\specs\5ccafb0d_3.2.1\user\RabotUtils.libspec
Generating libspec for: RobotNotifications.
Cwd:c:\Users\phili\Documents\GitHub\white-rabbit-japan\rpa-rabot\resources
Command line:
C:\Users\phili\anaconda3\python.exe -m robot.libdoc --format XML:HTML -P c:\Users\phili\Documents\GitHub\white-rabbit-japan\rpa-rabot\resources RobotNotifications C:\Users\phili\.robotframework-ls\specs\5ccafb0d_3.2.1\user\RobotNotifications.libspec
So, you need to have those libraries installed in the same python executable you're using for the language server to be able to provide completions for them.
I finally got it working, thank you!
That said, the autocomplete is extremely slow. It takes 5-10s for the suggestions to load on Ctrl+Space, much, much longer than autocomplete for other languages, or within Robocode Lab.
Is this normal?
That said, the autocomplete is extremely slow. It takes 5-10s for the suggestions to load on Ctrl+Space, much, much longer than autocomplete for other languages, or within Robocode Lab.
Is this normal?
No, that's not normal... have you disabled the logging afterwards?
-- i.e.: The logging may make things slow.
If it's still slow, even without the logging, please create an issue to investigate that.
Describe the bug Installed Robot Framework LS extensions in VSCde. Autocomplete doens't work. Tried disabling all other extensions, didn't help.
To Reproduce Install Robot Framework LS in VSCode, Open a .robot file, try typing Click, or Whait until, and press Ctrl+Space.
Expected behavior Autocomplete (Click button, Click link... Wait until element visible, Wait until element exists etc.)
Versions:
Logs logs.zip
settings.zip