Add Kotlin capability#1074
Merged
bnmnetp merged 3 commits intoNov 21, 2025
Merged
Conversation
The package dash-bootstrap-components was causing issues with pretext-cli.
Member
|
Thanks Dave! I just pushed 7.10.0 to the CDN |
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.
Here are updates needed to get Kotlin working, following on the updates that were done to the Runestone Jobe repo and to PreTeXt. Some particular notes:
While CodeMirror does have a mode for Kotlin, it does not appear support a MIME type for Kotlin. So in
activecode.jsI used the Java MIME type for Kotlin code. Should be close enough.To install Kotlin into the container that runs Jobe, I didn't do the easy/obvious approach of installing from Ubuntu's apt repos because the version there was very out-of-date. Instead, I added code to the Dockerfile to download and install directly from JetBrains.
There was a major conflict between
pretextand the packagedash-bootstrap-components, which was listed in the developer set of packages. So I removeddash-bootstrap-components, and committed both the newpyproject.tomlas well as an updatedpoetry.lockfile.I'm happy to answer questions or make changes, so let me know how I can help. Thanks!