Skip to content

Async thread script loading lines of errors are out of order #8289

@TheLimeGlass

Description

@TheLimeGlass

Skript/Server Version

2.13.1

Bug Description

When reloading a script with multiple lines. If a line takes longer to parse, the lines of the errors are out of order.

This is because it depends on when the thread finishes processing to return the result.

Expected Behavior

To be printed in the correct order

Steps to Reproduce

Create a script with lines that are invalid, longer lines and thrown in expressions probably to cause it.
Enable the async thread loader at level 1 or greater

Errors or Screenshots

No response

Other

Solution is to print them in sync order, not parsing in sync, but printing based on the lines.

This issue is pretty minor, but an issue.

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.waiting for replyThe report needs a response from the reporter to determine course of action.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions