Skip to content

[Bug]: Error messages inside CATCH handling not [always] displayed #94

@steinhh

Description

@steinhh

Current Behavior

Inconsistently, errors happening inside CATCH error handling will not be displayed (even though CATCH,/cancel has been issued)

Expected Behavior

Errors should be reported correctly even after a CATCH has triggered

GitHub Repo

No response

Steps to Reproduce

  1. Compile and run the following program with the debugger:
PRO test_crash
  catch, err
  IF err NE 0 THEN BEGIN
    catch, /cancel
    print, "Error in test_crash: " + err.tostring()
    help, /not_a_keyword
  END
  a = b
END
  1. The output is (inconsistently):
.compile -v '/mn/sertan/u1/steinhh/sf/idl/test_spice_fits.pro'
% Compiled module: TEST_CRASH.

> test_crash
Error in test_crash: -181

> test_crash
Error in test_crash: -181

> test_crash
Error in test_crash: -181
% Keyword NOT_A_KEYWORD not allowed in call to: HELP
% Execution halted at: TEST_CRASH          6
   /mn/sertan/u1/steinhh/sf/idl/test_spice_fits.pro
%                      TEST_CRASH          6
   /mn/sertan/u1/steinhh/sf/idl/test_spice_fits.pro
%                      TEST_CRASH          6
   /mn/sertan/u1/steinhh/sf/idl/test_spice_fits.pro
%                      $MAIN$          

> test_crash
Error in test_crash: -181

... etc

Failure Logs

?from where?

Operating System

  • macOS (Intel x86_64)
  • macOS (ARM64)
  • Linux
  • Windows

IDL Version

9.2.0

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions