Skip to content

Debugging ROS1 Node (RosPy) - Exception has occurred: KeyError #12264

@ptrdtznr

Description

@ptrdtznr

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.86398 (8 June 2020)
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.17 64bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): -
  • Relevant/affected Python packages and their versions: Rospy
  • Relevant/affected Python-related VS Code extensions and their versions: XXX

Expected behaviour

Using the debugger as well-known for years ;-)

Actual behaviour

I am having a small issue with the latest version (2020.5.86398 (8 June 2020)) of the Python extension debbugging ROS node. I have deinstalled ROS, VSCode and Python2.7 in generall. After few moments I have figurered out, once I downgrade to the Python extension (2020.5.1 (19 May 2020)) it works fine.
Screenshot from 2020-06-10 11-50-32.

Every time I start the debugger running my code it crashes resp. it stops as shown in the figure. A workaround for me is, to install the previous version and disable auotmatic updates...

Steps to reproduce:

  • Install ROS Meldodic Desktop Full
  • Run roscore
  • Run a simple ROS Node ROS Node with the debugger

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Logs

Attached the logs from the developer console. [errorVSCode.txt](https://github.com/microsoft/vscode-python/files/4757768/errorVSCode.txt)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions