Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Jul 10, 2025

This PR adds an informational message to guide users on generating ROS2 JavaScript messages from .idl files. The change introduces a command-line flag detection mechanism and displays a helpful message with documentation link when the --idl flag is not used.

  • Adds detection for the --idl command-line argument
  • Displays informational message with documentation link when IDL generation is not being used

Fix: #1185

@minggangw minggangw requested a review from Copilot July 10, 2025 08:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an informational message to guide users on generating ROS2 JavaScript messages from .idl files. The change introduces a command-line flag detection mechanism and displays a helpful message with documentation link when the --idl flag is not used.

  • Adds detection for the --idl command-line argument
  • Displays informational message with documentation link when IDL generation is not being used
Comments suppressed due to low confidence (1)

scripts/generate_messages.js:22

  • [nitpick] The variable name 'useIDL' uses inconsistent casing. Consider renaming to 'useIdl' to follow camelCase naming convention, as 'IDL' is an acronym.
const useIDL = !!process.argv.find((arg) => arg === '--idl');

@coveralls
Copy link

Coverage Status

coverage: 84.526%. remained the same
when pulling 64d5cd7 on minggangw:fix-1184
into 017ed63 on RobotWebTools:develop.

@minggangw minggangw merged commit 1f2fad7 into RobotWebTools:develop Jul 10, 2025
19 checks passed
minggangw added a commit that referenced this pull request Jul 15, 2025
This PR adds an informational message to guide users on generating ROS2 JavaScript messages from .idl files. The change introduces a command-line flag detection mechanism and displays a helpful message with documentation link when the `--idl` flag is not used.

- Adds detection for the `--idl` command-line argument
- Displays informational message with documentation link when IDL generation is not being used

Fix: #1185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants