Skip to content

Recursive Parse Errors from Functions #4771

Closed
@NotSoDelayed

Description

@NotSoDelayed

Skript/Server Version

[07:01:53] [Server thread/INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[07:01:53] [Server thread/INFO]: [Skript] Skript's documentation can be found here: https://skriptlang.github.io/Skript
[07:01:53] [Server thread/INFO]: [Skript] Server Version: git-Paper-794 (MC: 1.16.5)
[07:01:53] [Server thread/INFO]: [Skript] Skript Version: 2.6.2
[07:01:53] [Server thread/INFO]: [Skript] Installed Skript Addons: 
[07:01:53] [Server thread/INFO]: [Skript]  - skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect)
[07:01:53] [Server thread/INFO]: [Skript] Installed dependencies: None

Bug Description

Parse errors were thrown twice for invalid function definition from the same line. Image below:
Screenshot_20220525-123756_Edge

Expected Behavior

Not throwing another parse error from the same line.

Steps to Reproduce

Make a typo in the return type function definition:

function a() :; string:
    return "a"

Errors or Screenshots

Screenshot_20220525-123756_Edge

Other

None.

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions