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
Problems when compiling a project using Avalonia UI. Help is needed #1118
Comments
The compiler sees several The fix would be to improve the compiler so it resolves the |
As I understand it, this problem can be solved only at the compiler level? |
For a reference: this is how XAML compiler task tries to match It currently recognizes the normal
pattern and the monstrosity generated by F# compiler. The peachpie pattern won't be easily recognizable since it would require us to analyze the CallSite static variable initialization that happens elsewhere and looks like an internal implementation detail. So the preferable solution would be for peachpie to just emit the simple ldarg.0+call sequence. |
@kekekeks the compiler mainly emits simple |
Hello, jakubmisek.
I can't solve the problem for a very long time. There is a library .Net, which builds the project and replaces the AvaloniaXaml.Load(this) call with !XamlIlPopulateTrampoline(this). (screenshots are attached). In PHP, is it compiled into
call_Load?0.Target(call_Load?0, this, , this); Because of this, it is impossible to build the project because the library cannot find AvaloniaXaml.Load(this) in the class. Link to the code section:
XamlCompilerTaskExecutor.cs
Here is what happens in c# :
Here's what's going on in php:
But if you specify in php like this:
Will compile to:
But that won't help in any way, because it's still waiting for AvaloniaXamlLoader.Load(this); when compiling.
I will be very grateful in finding a solution to this problem.
The text was updated successfully, but these errors were encountered: