Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why does it export so mang things when I run a launch file? #874

Closed
ku-zhen opened this issue Feb 11, 2023 · 5 comments
Closed

why does it export so mang things when I run a launch file? #874

ku-zhen opened this issue Feb 11, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@ku-zhen
Copy link

ku-zhen commented Feb 11, 2023

hello, every time I run a launch file by this extension, it will export so many things. This will take two seconds, but calling in the terminal does nothing. They don't seem to be doing anything here, how do I remove it?

ubuntu: 20.04 (ros noetic)

_20230211135543

@ku-zhen ku-zhen added the bug Something isn't working label Feb 11, 2023
@ravijo
Copy link

ravijo commented Feb 11, 2023

I have never seen such a scenario so far. So I need more information. Therefore, can you please explain the steps you followed in detail?

@ku-zhen
Copy link
Author

ku-zhen commented Feb 12, 2023

STEPS:

  1. open a catkin workspace with vscode;
  2. use the shortcut key "ctrl+shift+B" to start catkin_make: build.
  3. After the build is complete, use the ROS: Run a ROS launch file(roslaunch) command.
  4. After selecting the package and launch file , the console will export some things like above before launch the node.

@ravijo
Copy link

ravijo commented Feb 13, 2023

@ku-zhen

Thanks a lot. I noticed the same behavior in my setup.

By the way, I never use the command palette (Ctrl+Shift+P) inside vscode to run a launch file. Instead, you can type the command directly in terminal inside vscode and that way we don't export those variables.

Cheers!

@polyhobbyist
Copy link

Launch from roslaunch creates a new terminal; which inherits the vscode launch environment.

@ooeygui
Copy link
Member

ooeygui commented Mar 27, 2023

Closing as this is by design due to environment inheritance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants