vscode-ros icon indicating copy to clipboard operation
vscode-ros copied to clipboard

Unable to import Custom Python service module

Open kdhansen opened this issue 6 years ago • 1 comments

Sorry, if this is obvious to seasoned users. I am just trying out VSCode with my ROS development.

I have defined a .msg and .srv in my package. I have built the workspace, which works fine in the created terminal. But running a python debugging session stops at the import of the custom service module. I have tried the "ROS: Update Python Path" command, but that does not seem to include the built module. If I create a terminal with "ROS: Create Terminal" and "> source devel/setup.bash" in that terminal, the node runs fine.

kdhansen avatar Mar 20 '18 20:03 kdhansen

Yes, the plugin lacks to set the PYTHONPATH variable .. it only sets "python.autoComplete.extraPaths" in the settings.json.

beetleskin avatar May 05 '19 14:05 beetleskin