[feature request] More direct source line mapping
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Das Issue nennt keine Quelldatei, keinen Test und keinen Einstiegspunkt. Beginne damit, die bestehenden Lua-Kommentare pro Zeile und das Verhalten zur Zeilenerhaltung des Compilers nachzuverfolgen; abgeschlossen ist die Aufgabe, wenn eine Option Lua-Zeilenzuordnungen erzeugt, die direkt den Yuescript-Zeilen entsprechen, einschließlich leerer Zeilen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Since the compiler can already append a comment to each Lua line saying what Yuescript line it came from, it would be nice if there were an option to instead just put all Lua code on the same line as the Yuescript code that produced it, as well as preserving empty lines.
For example, the code:
1| x = if this
2| foo()
3|
4| else
5| bar()
would be compiled like this:
1| local x
2| if this then
3| x = foo()
4| else
5| x = bar()
6| end
My suggestion would be to allow for it to be compiled to something more like this:
1| local x; if this then
2| x = foo()
3|
4| else
5| x = bar(); end
The goal is to make line numbers in tracebacks and debugging info map directly to their according Yuescript line, meaning that it would no longer be necessary to first look which Lua line the error occurred on and then go to the Yuescript line that produced it. Instead, we could simply go to the error line directly in the Yuescript file.
- Vorherrschende Sprache
- Lua
- Sterne
- 620
- Forks
- 45
- Ø Merge
- 9 Std. 5 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus IppClub/YueScript
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 64/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
Alle Issues in IppClub/YueScript
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 2 Tagen
-
follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ksysoev/duet.nvim#265 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug: accuracy
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
PathOfBuildingCommunity/PathOfBuilding#10649 ·
Maintainer antworten meist innerhalb von 1 Tag
-
reMarkable
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
koreader/koreader#16485 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
nvim-orgmode/orgmode#1213 ·