robotframework-lsp icon indicating copy to clipboard operation
robotframework-lsp copied to clipboard

Automatic refresh referenced python library

Open lucieb31 opened this issue 2 years ago • 4 comments

Hi, I recently moved from Eclipse/RED to Robot Framework on VSCode with robot framework langage server extension. I loaded all my lib and robot test and it's worked fine, but since this time all keywork added in python lib are not linked on the robot files : image image image I don't have any problems to run the test, only the link doesn't work. It's like the cache lib are not reload. How can I fix that ? I tried with Clear caches and restart Robot Framework Langage Server but it's doesn't change anything.

lucieb31 avatar Jun 22 '23 14:06 lucieb31

See: https://github.com/robocorp/robotframework-lsp/issues/582#issuecomment-1047276553

fabioz avatar Jun 22 '23 16:06 fabioz

The EXECDIR is set, I don’t have error on the import line but this is the libspec who is not refresh when the python library is updated.

lucieb31 avatar Jun 22 '23 17:06 lucieb31

Can you provide a sample project where I can reproduce this?

fabioz avatar Jun 22 '23 17:06 fabioz

This join a sample project. sample.zip I created an empty projet on vscode and I noticed that the bug was not present, the new function was reconized on my Test. So I checked the difference between my project, and I saw the libspecs folder (previously generated on Eclipse/RED). So I created a libspecs folder and I generated the libspec of my lib with the robot.libdoc file I've found on web, and I added a new function on the lib and this one was not reconized on my Test like on my project: image

So I removed the libspecs folder on my project and it's work fine !

May be this folder should not be taken into account or py_cache folder should be priority

lucieb31 avatar Jun 23 '23 14:06 lucieb31