Skip to content

Parse error: code mismatch with RND Parser output #115

Closed

Description

@oscardelama

Hi. I got the following error:

Parse error in line 90: code mismatch with RND Parser output

1 entry was added to the error log 'C:\Users\me\AppData\Roaming\SAP\ABAP
cleaner\user\error.log': the cleanup of a code file was cancelled

The log just says the same as the first line above.

The line 90 contains this:

call_subrc = me->fake_debug_error->get_fake_subrc_exception(
  EXPORTING context = asynch_dispatch_subrc_context
            probability = '0.05'
            id = !task_to_execute-task_id
  IMPORTING sys_msg = sys_msg ).

I use the "!" character in !task_to_execute to denote a method parameter.

Where the called method has the following signature:

METHODS get_fake_subrc_exception
  IMPORTING !subrc              TYPE sy-subrc DEFAULT 0
            !context            TYPE context
            !probability        TYPE f
            !id                 TYPE csequence
  EXPORTING !sys_msg            TYPE symsg
  RETURNING VALUE(result_subrc) TYPE sy-subrc.

Even when I hilight a snippet or a method, different to the one containing the issue above, I get the same error.

Activity

  1. self-assigned this
    on Sep 30, 2023
  2. jmgrassau commented on Sep 30, 2023

    @jmgrassau
    Member

    Hi Oscar,

    ah, great, thanks for the hint! This was about the !task_to_execute-task_id, where the RND Parser simply omits the !, while ABAP cleaner keeps it (and then complained about the mismatch). ABAP cleaner already handled this correctly for simple identifiers such as !probability, but not yet for composed ones like !task_to_execute-task_id. It will be fixed in the next release!

    Kind regards,
    Jörg-Michael

  3. jmgrassau commented on Oct 2, 2023

    @jmgrassau
    Member

    Hi Oscar,

    thanks again for reporting this bug! This should now be fixed with version 1.6.0, which was just released.

    Kind regards,
    Jörg-Michael

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions