Looping Single Variable Causes Infinite Loop with Queues Experiment

Open
#8,954 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
backend

Research direction

Start by tracing how the experimental using queues syntax handles loop {_x} when {_x} is a single number; the issue does not name source files or tests. Reproduce the infinite loop with the Skript and Paper versions in the report, then find the relevant loop parsing or execution tests. Done when this case terminates and behaves as expected, or is rejected as invalid without the experiment.

Written by the indexing model from the issue text.

Description

bug priority: lowest
Skript/Server Version
[Skript] Server Version: Paper 26.2 #134 (3e24be0)
 [Skript] Skript Version: 2.17.1 (selfbuilt-unknown)
 [Skript] Installed Skript Addons:
  - skript-reflect v2.6.3 (https://github.com/SkriptLang/skript-reflect)
 [Skript] Installed dependencies:
  - Vault v1.7.3-b131
Bug Description
using queues

on load:
  set {_x} to 1
  loop {_x}:   # infinite loop
    send 1 
Expected Behavior

It should loop just "1", or not loop at all because this is illegal without the experiment.

Steps to Reproduce
Errors or Screenshots

No response

Other

No response

Agreement
  • I have read the guidelines above and affirm I am following them with this report.
Dominant language
Java
Stars
1.3k
Forks
456
Avg merge
4d 10h
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SkriptLang/Skript

All issues in SkriptLang/Skript

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.