catkin / catkin_tools

Command line tools for working with catkin
Apache License 2.0
163 stars 146 forks source link

No longer able to extend workspace: KeyError: '_Context__extend_path' #754

Closed Levi-Armstrong closed 1 year ago

Levi-Armstrong commented 1 year ago

Just started running into an issue trying to extend a workspace.

Traceback (most recent call last):
  File "/usr/local/bin/catkin", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/commands/catkin.py", line 265, in main
    catkin_main(sysargs)
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/commands/catkin.py", line 260, in catkin_main
    sys.exit(args.main(args) or 0)
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/verbs/catkin_config/cli.py", line 177, in main
    context = Context.load(
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/context.py", line 256, in load
    ctx.load_env()
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/context.py", line 493, in load_env
    self.warnings += [clr(
KeyError: '_Context__extend_path'
Levi-Armstrong commented 1 year ago

Had the actual error messaged printed it would have identified the issue which I found after navigating context.py line 493 where I just had to clean the workspace then extend and everything worked.

fwanderlingh commented 10 months ago

Your self reply was super useful. Had the same issue while preparing the workspace for cross-compilation. Thanks for sharing your experience!