VitalElement / AvalonStudio

Cross platform IDE and Shell
GNU Lesser General Public License v3.0
1.61k stars 237 forks source link

Crash on "Open Solution" #758

Open Jedi-Mind-Tricks opened 3 years ago

Jedi-Mind-Tricks commented 3 years ago

Environment:

To reproduce:

  1. Start Avalon Studio
  2. File -> Open Solution

Result:

FlaviusHouk commented 3 years ago

I assume that this('\04064') is not a folder, but a part of a name of your HDD. Could you please do ls -l /run/media/george to verify that there is something with naming and better identify problem?

Jedi-Mind-Tricks commented 3 years ago

Oh, you're right!

The name is HDD 64 with a space.

FlaviusHouk commented 3 years ago

And does cd '/run/media/george/HDD 64' works as well?

Jedi-Mind-Tricks commented 3 years ago

And does cd '/run/media/george/HDD 64' works as well?

Yep, no problems with that.

Jedi-Mind-Tricks commented 3 years ago

More info: if I unmount this HDD, open dialog works.

FlaviusHouk commented 3 years ago

As for some path with the space (tried both in $HOME and on external partition) everything works fine. So I think there is something with special characters in paths I suppose.

Jedi-Mind-Tricks commented 3 years ago

Okay, I reproduced the bug with another device:

Stack trace: Could not find a part of the path '/run/media/george/UBUNTU\04018'. ...

Yeah, path with a space works, but not a Disk Label with a space.

Jedi-Mind-Tricks commented 3 years ago

My guess: it crashes while creating the list of disk drives (on the left side of the Open Dialog).

FlaviusHouk commented 3 years ago

I looked through the code for openingn and it looks like that is the bug in Avalonia's managed open file dialog Avalon Studio uses.

Jedi-Mind-Tricks commented 3 years ago

Should I open the issue there (AvaloniaUI repo) and close this one then?

FlaviusHouk commented 3 years ago

You can open an issue there and paste a link for this issue (to preserve all information). And this issue, as for me, should be closed when Avalon Studio will receive update (new version of Avalonia with fixed issue), but not now when functionality is not working well.

jcbritobr commented 3 years ago

It happens on windows 10 also.