Skip to content

Fix backticks in message definitions, throw better error on missing dependencies.#205

Merged
chris-smith merged 2 commits intoRethinkRobotics-opensource:develfrom
chfritz:fix_backticks
Oct 21, 2024
Merged

Fix backticks in message definitions, throw better error on missing dependencies.#205
chris-smith merged 2 commits intoRethinkRobotics-opensource:develfrom
chfritz:fix_backticks

Conversation

@chfritz
Copy link
Copy Markdown
Contributor

@chfritz chfritz commented Oct 19, 2024

Fixes #204 -- at least for this repo.

  • Message gen: escape backticks in comments
    Until now, backticks ("`") in comments in message definitions will lead to an exception when the generated message is loaded, because the generated JS code is syntactically invalid.

  • Message generation: indicate name of missing dependencies
    Previously, if a custom message definition referred to another package that was missing, the error was not giving any clues as to where the problem occurred, i.e., which packages are involved. This change fixes that, making it much easy to debug broken dependencies.

Until now, backticks ("`") in comments in message definitions will lead to an exception when the generated message is loaded, because the generated JS code is syntactically invalid.
Previously, if a custom message definition referred to another package that was missing, the error was not giving any clues as to where the problem occurred, i.e., which packages are involved. This change fixes that, making it much easy to debug broken dependencies.
@chris-smith chris-smith merged commit e9bfcdc into RethinkRobotics-opensource:devel Oct 21, 2024
@chris-smith
Copy link
Copy Markdown
Collaborator

Thanks!

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.

Backticks in msg definition comments result in invalid JS syntax

2 participants