-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for webassembly #201
Comments
I haven't tried to get syntax highlighting going in web assembly with the latest Avalonia 11 previews, but fwiw I've tried the build from #318 with 11p6 and both folding and searching are working fine. One small comment about the searching though - the search panel opens up immediately when pressing ctrl+f, but there is a noticable lag between starting to type into the search box and anything happening with the search as compared to desktop app usage. (I haven't made an attempt at working out what's taking the time) |
Keep in mind wasm does not support threading at the moment so you will not get any background processing |
I at one point had a go a building eveything with |
Does .net7 support threads by default in wasm? or not yet? |
If you enable that msbuild setting then it sets up some machinery to use web workers for running additional 'threads'. The first problem with this with Avalonia is that you need WASM builds of SkiaSharp and HarfBuzz that have been built with some extra threading options, and it looks like that's still only available in the preview builds. (mono/SkiaSharp#2285) I just gave it a go with a build that I changed to use the preview Skia build, and it build and ran (my top level UI displays in the browser, and the browser dev tools show the workers being present), but then it hit other problems before getting to the AvaloniaEdit parts... I'll try to test it with a more minimal test later |
When trying to run on webassembly I get the following exception:
The text was updated successfully, but these errors were encountered: