face-hh / griddycode

A code editor made with Godot. Code has never been more lit!
Apache License 2.0
1.82k stars 115 forks source link

Ngl no idea what this is #115

Closed Omena0 closed 7 months ago

Omena0 commented 7 months ago

Describe the bug File picker bugged

To Reproduce Steps to reproduce the behavior:

  1. Open GriddyCode
  2. Open file picker

Expected behavior File picker opens.

Screenshots image image

Desktop (please complete the following information):

face-hh commented 7 months ago

DirAccess.open(path) has failed, the path is probably invalid. I believe the only way to debug it is to install Godot, navigate to https://github.com/face-hh/griddycode/blob/e064631577ac4226f9567c4610bf50c89b80f3c6/Scripts/file_dialog.gd#L36 and add a line above:

print(editor.current_dir)
Omena0 commented 7 months ago

Ok Ill try that, i recently updated my graphics drivers (restart didint fix) so it might somehow relate to that because before it worked perfectly fine.

Omena0 commented 7 months ago

Ok, well after running godot, it randomly started working again... No idea how that would change anything but it works now LMAO

face-hh commented 7 months ago

I might have an idea - when you run the project through Godot, due to it running in debug it gets the debug file path as the first CLI argument - path that is most certainly valid, unlike the one it initially assumed when being ran from the command line.

I'll still leave the issue closed as I haven't received any reports of this happening to others. Thanks for reporting it! :slightly_smiling_face: