Skip to content

DFDL-1555: insteading of erroring yet, change to warning#1738

Open
naga-panchumarty wants to merge 1 commit into
apache:mainfrom
naga-panchumarty:DFDL-1555
Open

DFDL-1555: insteading of erroring yet, change to warning#1738
naga-panchumarty wants to merge 1 commit into
apache:mainfrom
naga-panchumarty:DFDL-1555

Conversation

@naga-panchumarty

Copy link
Copy Markdown
Collaborator

Closes #1555

Description

when a variable defined in launch.json does not exist in the DFDL schema, the debugger previously threw an unhandled ExternalVariableException and aborted the session entirely. This change catches that exception and changes it to a warning, allowing the debugger to start normally with the unrecognized variable simply skipped.

Wiki

  • I have determined that no documentation updates are needed for these changes
  • I have added the following documentation for these changes

Confirmation Testing

Manually tested by adding "variables": { "foo": "bar" } to a launch.json where foo does not exist in the target schema. Confirmed the debugger launches successfully and the warning message appears. Confirmed that valid variables (ones that do exist in the schema) are still applied correctly.

@scholarsmate scholarsmate left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

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

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Variable not found error (in launch.json) should not be catastrophic

2 participants