Skip to content

Double Line Comment in Run Directive leads to InvalidPython #196

@gordonkoehn

Description

@gordonkoehn

It appears two single-line comments at the start of the run directive lead to a parsing error Invalid Python in the line following after.

The rule runs fine. The error message disappears when any of the two comment lines are deleted.

The error message is very odd as it doesn't even show a line number and file. Yet, I am sure the error originates here.

My Rule

My Rule

The error message

The Error

Metadata

Metadata

Assignees

No one assigned

    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