-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Crashing with null language providers #18
Comments
You should use |
I'm getting the same thing when I use HTML:
|
Could you please try using the Enum instead of extension, I'm pretty sure it contains defined here compose-code-editor/codeeditor/src/commonMain/kotlin/com/wakaztahir/codeeditor/model/CodeLang.kt Line 8 in 5b3cb2c
This will probably succeed. XML extension should succeed as well. Could you try using the enum if that doesn't work, please let me know. compose-code-editor/codeeditor/src/commonMain/kotlin/com/wakaztahir/codeeditor/model/CodeLang.kt Line 25 in 5b3cb2c
|
That is what I'm doing. val parsedCode = remember(svgText, language) {
parseCodeAsAnnotatedString(
parser = parser,
theme = theme,
lang = CodeLang.XML,
code = svgText
)
} And it still crashes. Even when using HTML. |
I'm trying to show XML but I keep running into:
The text was updated successfully, but these errors were encountered: