question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code intellisense broken in few libraries

See original GitHub issue

Libraries that are based on robotlibcore.DynamicCore do not provide class methods when accessed in the Python mode, in VSCode for example.

Verified with rpaframework==16.1.0

affected libraries (at least):

  • RPA.Desktop
  • RPA.PDF
  • RPA.Windows

Original report by Andres Douglass in the Dev Slack - link

Information in the Robot Framework user guide

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
douglassjohnandrewcommented, Nov 5, 2022

@cmin764 I know it’s been a while since this issue was closed but I wanted to apologize and thank you for the time you spent looking into this. I’m fairly new at Python development and for some reason I thought that if Intellisense didn’t work, that meant the code had syntax errors and wouldn’t work. If I had known that the code would work even without Intellisense highlighting it, I wouldn’t have submitted this as an issue at all. Thank you again for explaining what’s going on behind the scenes, it’s much appreciated

1reaction
aaltatcommented, Sep 24, 2022

I do not use VSCOde, so I am not able to answer your question. Generally speaking capabilities depends on the plugin used by in the VSCode. When looking matter from the PLC and dynamic library API point of view, there is not limitations when or how often keywords and other data from library is discovered. Plugin can do discovery every second, if that is the implementation of the plugin. But discovery should be done in the VSCode plugin side, library/PLC/dynamic library API can not push changes to VSCode direction.

The best solution from user point of view, would be automatic refresh for changes. Example plugin could discover files used by the library and detect changes on them. Example, I think, it is possible to use libdoc --specdocformatoption and that format should contain the file paths, where the keyword is implemented. Then plugin could use that information and discover the files it need to monitor. Or if not feasible to implement automatic discovery, then plugin could offer users a command to force refresh of the keywords.

In short, all depends on the VSCode plugin implementation, PLC and dynamic library API support your needs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliSense in Visual Studio Code
Troubleshooting. If you find IntelliSense has stopped working, the language service may not be running. Try restarting VS Code and this should solve...
Read more >
Visual Studio Code: Intellisense not working - Stack Overflow
This is a major bug of VS code that happens with installing some of the npm packages. VS code IntelliSense crashes and stops...
Read more >
IntelliSense doesn't show library errors Or Use VS Code's task ...
I'm working on a sketch which uses some of my own libraries. In one of the libraries there was an error inside a...
Read more >
Fix: VS Code Intellisense Not Working - YouTube
Read Our Article: https://www.brainytechz.com/2021/12/vs- code - intellisense - not-working.html Visit Our Website: https://www.brainytechz.
Read more >
Configure C++ IntelliSense in Visual Studio Code - YouTube
This video walks you through the steps to configure IntelliSense smart code completion for C++ in VS Code. To get started with C/C++...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found