SkEditorTeam / SkEditor

SkEditor is an app for editing Skript files.
MIT License
60 stars 9 forks source link

Opening any folder in the Projects experiment crashes the editor on Fedora Linux #53

Closed 1223nij closed 2 months ago

1223nij commented 4 months ago

It'll automatically crashes and restarts Log file:

2024-05-13 23:05:06.238 +07:00 [FTL] Application crashed!
System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/1223nij/Downloads/frthistime/publish/\home\1223nij\Documents\serarr\home\rkeycap\WOBP\plugins\Skript\scripts'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String directory, String expression, EnumerationOptions options)
   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.Directory.GetDirectories(String path, String searchPattern, EnumerationOptions enumerationOptions)
   at SkEditor.Utilities.Projects.Elements.Folder.LoadChildren()
   at SkEditor.Utilities.Projects.Elements.Folder..ctor(String folder, Folder parent)
   at SkEditor.Utilities.Projects.ProjectOpener.OpenProject(String path)
   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 SkEditor.Desktop.Program.Main(String[] args)
1223nij commented 4 months ago

also the discord invite expired

NotroDev commented 4 months ago

also the discord invite expired

Oh? That's weird. It should be infinite. Thanks

NotroDev commented 4 months ago

It seems that Fedora (or Linux in general?) has some issues with directories. I'll see what can I do.

MCdragonmasters commented 3 months ago

i have a similar problem but on windows with external folders log-202406141118.txt

its checking C: when it should be checking 192.168.1.46

swiftpearl commented 2 months ago

Ive been getting the same but its checking chicken nuggets

NotroDev commented 2 months ago

Please try again on v2.7.0-prerelease, I tried to fix it (but maybe it wasn't fixed in all situations)

Ive been getting the same but its checking chicken nuggets

What

MCdragonmasters commented 2 months ago

i still have my similar issue on 2.7.0-prerelease but its windows trying to access network folders

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\event\plugins\Skript\scripts\Skripts'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String directory, String expression, EnumerationOptions options)
   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.Directory.GetDirectories(String path, String searchPattern, EnumerationOptions enumerationOptions)
   at SkEditor.Utilities.Projects.Elements.Folder.<LoadChildren>b__5_1()
   at Avalonia.Threading.DispatcherOperation.InvokeCore()
--- End of stack trace from previous location ---
   at Avalonia.Threading.DispatcherOperation.Wait(TimeSpan timeout)
   at Avalonia.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
   at Avalonia.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
   at Avalonia.Threading.Dispatcher.Invoke(Action callback)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at SkEditor.Utilities.Projects.Elements.Folder.LoadChildren()
   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.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32DispatcherImpl.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 SkEditor.Desktop.Program.Main(String[] args)

its trying to access it on C:\ when it should be looking for it at \\192.168.1.46\

NotroDev commented 2 months ago

Remote folders aren't supported at the moment. I'll see what I can do