Repository navigation
IDE links: libraries by URL; note for long links - #26
Merged
Merged
Conversation
«IDE-Link kopieren» and «In IDE öffnen» name the block's libraries by their URL (the IDE's link version 2) instead of carrying their code, so an Etappe 4 block with parser.py gives a link of about 1,200 characters instead of 5,000+. The IDE fetches them, read-only. A block file with a library's name replaces it. Links without libraries stay version 1. A copied link longer than 2,083 characters (OneNote cuts links there) is still copied, with a note below the buttons: «Dieser Link ist sehr lang (… Zeichen). Manche Programme, z. B. OneNote, kürzen solche Links. Für eine Abgabe «In IDE öffnen» wählen und das Projekt dort herunterladen.» Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P25 decisions 3 and 5, macro side.
Merge only after glpython-edu/glpython-edu.github.io#29 has deployed. An IDE before that PR can't read links of version 2. Until both are live, a block with a library would give a link the IDE can't open (with #28/#29 merged, it shows the «unvollständig oder beschädigt» notice; before them, the IDE shows its stored project).
Changes
{"path": "parser.py", "url": "…", "readOnly": true}(link version 2), not as code.--glp-info,--glp-info-bg, with fallback values). It's hidden again when a shorter link is copied.Wording (your version)
Tested in LiaScript
Hosted player in Chrome. This macro served locally,
parser.pyas a local library URL. The IDE link pointed at the IDE built from #29 (vite preview).python auswerter.py+parser.pyby URL):parser.pyby URL,auswerter.pywith its code. No note.auswerter.pyandparser.py(fetched); «Tests» gives 11 von 11.check-macropasses.🤖 Generated with Claude Code