Open b0wter opened 1 year ago
Can you please try with the latest version?
I've cloned the latest version ( 67481b87017ee6b7b125f93f0a499c0b8d72937a
). Running the app makes it briefly visible and results in a crash:
.../RoslynPad.Avalonia on main
❯ dotnet run 21:57:18
Unhandled exception. System.InvalidOperationException: Operation is not valid due to the current state of the object.
at RoslynPad.UI.OpenDocumentViewModel.set_Platform(ExecutionPlatform value) in /home/b0wter/work/roslynpad2/src/RoslynPad.Common.UI/ViewModels/OpenDocumentViewModel.cs:line 451
at RoslynPad.UI.OpenDocumentViewModel.Initialize(DocumentId documentId, Action`1 onError, Func`1 getSelection, IDisposable viewDisposable) in /home/b0wter/work/roslynpad2/src/RoslynPad.Common.UI/ViewModels/OpenDocumentViewModel.cs:line 613
at RoslynPad.DocumentView.OnDataContextChanged(Object sender, EventArgs args) in /home/b0wter/work/roslynpad2/src/RoslynPad.Avalonia/DocumentView.axaml.cs:line 59
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Avalonia.Threading.SendOrPostCallbackDispatcherOperation.InvokeCore()
at Avalonia.Threading.DispatcherOperation.Execute()
at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation job)
at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean fromExplicitBackgroundProcessingCallback)
at Avalonia.Threading.Dispatcher.Signaled()
at Avalonia.X11.X11PlatformThreading.CheckSignaled()
at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken)
at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode)
at RoslynPad.Program.Main(String[] args) in /home/b0wter/work/roslynpad2/src/RoslynPad.Avalonia/Program.cs:line 13
I've opened the Avalonia-Solution in Rider and tried running Roslynpad.Avalonia
to get more details and got this:
I am running Fedora and installed dotnet core using the official repository. I downloaded the source code of roslynpad since dotnet core is installed in a location currently unknown to the app. I can compile the app successfully and it starts but after entering the first character in the main text box the app crashes with the following stack trace:
Other app features (like adding nugets) work fine.
Version