Open HendrikMennen opened 8 months ago
TextMateSharp
should support WASM but it's possible that the AvaloniaEdit TextMate integration may not be fully prepared to work with WASM yet.
Hello, @danipen
Is there any progress on this problem? Seems like TextMate.Wasm package exists, but installing it doesn't change anything - app still hangs while applying coloring to AvaloniaEdit.
It worked some time ago but I didn't try it recently. Any clue of what the issue is?
Actually I think this is something related to TextMate library calls or coloring the AvaloniaEdit (perhaps a multithreading or something like that). I've actually use your library for ShowMeTheXaml editor: https://github.com/AvaloniaUtils/ShowMeTheXaml.Avalonia/blob/master/ShowMeTheXaml.Avalonia.AvaloniaEdit/XamlDisplayAvaloniaEditThemeBehavior.cs
And seems like initialization was completed successfully:
But after that apps hangs out.
Actual issue is reproduceable in Material.Avalonia demo app for browser. Here is the link: https://avaloniacommunity.github.io/Material.Avalonia/ (aim on code icons on the bottom right side of controls on any page).
Also, this issue only reproduceable in browser WASM, since NAOT app on desktop works fine.
I'd be grateful for any help to diagnose this issue.
It worked some time ago but I didn't try it recently. Any clue of what the issue is?
I was never able to get WasmEnableTheads to work properly in Avalonia 11.0 (various problems occuring before it even got to the TextMateSharp bit), but I just had another try with the Avalonia 11.1 nightly and it seems to have worked:
(that's both highlighting Json and doing folding at the same time)
Hmm, I should give it a try.
Seems like my case still doesn't work properly with nightly avalonia. @Numpsy, can you, please, share your project?
The screen shot I posted is from a project at work that I can't post all the code for, but I'll try to extract a sample out of it
I saw the package TextmateSharp.Wasm. Is it possible to run with AvaloniaEdit? For me AvaloniaEdit alone works in Wasm. As soon as I add some highlighting it breaks, with or without the TextMateSharp.Wasm package. Maybe I am not doing it right, since I didn't see any demo project for this