Skip to content

Commit

Permalink
Fixed issue with not sourcing bashrc in tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-palmer committed Jan 11, 2024
1 parent e9e2584 commit 32e4eaa
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
"*.sdf": "xml"
},
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"icon": "terminal-bash",
"args": ["-i"]
}
},
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": true,
Expand Down
29 changes: 26 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"label": "ROS 2: Build",
"detail": "Build the workspace using colcon",
"type": "shell",
"command": "colcon build --symlink-install && source install/setup.bash",
"command": "colcon build --symlink-install",
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -22,22 +22,45 @@
"isDefault": true
}
},
{
"label": "ROS 2: Source workspace",
"detail": "Source the ROS 2 workspace",
"type": "shell",
"command": "source install/setup.bash",
"problemMatcher": []
},
{
"label": "ROS 2: Create ament_cmake package",
"detail": "Create a new ROS 2 ament_cmake package",
"type": "shell",
"command": "ros2 pkg create --destination-directory src --build-type ament_cmake ${input:packageName}",
"command": "ros2 pkg create --build-type ament_cmake --license ${input:license} ${input:packageName}",
"problemMatcher": []
},
{
"label": "ROS 2: Create ament_python package",
"detail": "Create a new ROS 2 ament_python package",
"type": "shell",
"command": "ros2 pkg create --destination-directory src --build-type ament_python ${input:packageName}",
"command": "ros2 pkg create --build-type ament_python --license ${input:license} ${input:packageName}",
"problemMatcher": []
}
],
"inputs": [
{
"id": "license",
"type": "pickString",
"description": "License",
"options": [
"Apache-2.0",
"BSL-1.0",
"BSD-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"GPL-3.0-only",
"LGPL-3.0-only",
"MIT",
"MIT-0"
]
},
{
"id": "packageName",
"type": "promptString",
Expand Down

0 comments on commit 32e4eaa

Please sign in to comment.