Deprecatable Functions

Aperta
#8,919 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Brunda-tech ci sta già lavorando.

Dal 26/10/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by reading how Skript currently marks syntax as deprecated and emits parse-time warnings. Then trace how default functions and their parameters are registered and parsed; the issue names no files or tests, so locate the relevant entry points first. Done means there is a way to deprecate a function and warn during parsing, with parameter deprecation considered if the design supports it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue priority: low suggestion
Suggestion

Add some way for a default function in skript or addons to be marked deprecated similarly to how we can already with syntax

Why?

While preparing some updates to SkBee's code around components, I've realized I don't love one of the functions and want to replace it with something easier to understand.

However since the function has been around for years removing it outright isn't ideal, so having some method to mark a function itself as deprecated and throw a warning during parse time would be ideal.

Other

Something like this for a parameter modifier could also work incase an addon ever decides/is forced to remove a parameter and make a separate function

Agreement
  • I have read the guidelines above and affirm I am following them with this suggestion.
Lingua principale
Java
Stelle
1.3k
Fork
456
Merge medio
4g 14h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SkriptLang/Skript

Tutte le issue di SkriptLang/Skript

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.