robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
200 stars 88 forks source link

Plugin - unable to build libspec #1071

Open srivastavbudugutta opened 3 days ago

srivastavbudugutta commented 3 days ago

Describe the bug It is unable to build the libspec.

To Reproduce Steps to reproduce the behavior:

  1. Clone the following repository https://github.com/openbmc/openbmc-test-automation
  2. install the robot frameowk language server plugin in pycharm/visual studio.
  3. navigate to ipmi_client.robot file
  4. In the setting section you will see the following: Settings Documentation This module is for IPMI client for copying ipmitool to ... openbmc box and execute ipmitool IPMI standard ... command. IPMI raw command will use dbus-send command Resource ../lib/resource.robot Resource ../lib/connection_client.robot Resource ../lib/utils.robot Resource ../lib/state_manager.robot

Library String Library var_funcs.py Library ipmi_client.py Library ../lib/bmc_ssh_utils.py

If you move your mouse cursor over ipmi_client.py line you will see the following error: Unresolved library: ipmi_client.py. Error generating libspec: Importing library 'ipmi_client' failed: ModuleNotFoundError: No module named 'data' Consider adding the needed paths to the "robot.pythonpath" setting and calling the "Robot Framework: Clear caches and restart" action.

Even if you modifiy the path to ../lib/ipmi_client.py you will experience the same error but it does not happen to ../lib/bmc_ssh_utils.py line.

If I install the plugin Hyper Robot framework language server I am not seeing this error, but only happens with your plugin

Expected behavior I should not see any error like mentioned above.

Screenshots If applicable, add screenshots to help explain your problem.

image

Versions:

Logs None

ChrisSchneebauer commented 2 days ago

Having the same problem!