Comments (8)
TextMateSharp
should support WASM but it's possible that the AvaloniaEdit TextMate integration may not be fully prepared to work with WASM yet.
from textmatesharp.
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.
from textmatesharp.
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)
from textmatesharp.
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
from textmatesharp.
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.
from textmatesharp.
It worked some time ago but I didn't try it recently. Any clue of what the issue is?
from textmatesharp.
Hmm, I should give it a try.
from textmatesharp.
Seems like my case still doesn't work properly with nightly avalonia. @Numpsy, can you, please, share your project?
from textmatesharp.
Related Issues (18)
- Unicode text is not correctly parsed HOT 2
- Operations that change non-concurrent collections must have exclusive access
- Support for XML Plist grammars? HOT 1
- Custom Grammars - Where to Start HOT 1
- Textmate thread safe HOT 3
- Cannot use Ini grammar with turkish culture
- How to correctly parse the text in the specified range? HOT 8
- RegistryOptions.GetScopeByExtension causes NullReferenceException HOT 4
- Switch to System.Text.Json? HOT 18
- How to parse embedded languages? HOT 1
- Support for arm32 and arm64 HOT 9
- Feature request - add rule name to ParsedThemeRule and language-configuration classes HOT 9
- Include packages for x86/x64 onigwrap.dll, and dynamic binding between them HOT 20
- Release a nuget package with the latest code changes? HOT 2
- Use [Flags] enum for FontStyle HOT 3
- Yaml highlighting issue with nested multi line strings HOT 4
- System.Threading.Thread.Start not supported on webassembly HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textmatesharp.