Open mickdekkers opened 7 years ago
Thanks for reporting!
I'll try to fix in the next days.
(Connected issue: #24)
Great, thanks! 😄
Hopefully fixed with https://github.com/kaitai-io/kaitai_struct_webide/commit/2b47c9aa52d26e5e2a472f354f93c1fa344624cd. (only on stable, I did not port the patch to /devel yet).
@koczkatamas thanks for picking this up! Relative imports in the same directory work now, but it throws an error in the browser console if you try to use subdirectories:
It looks like subdirectories don't work fully in the first place.
If you create a file in the root with some name, e.g. vsval
, and then create a file with the same name in a subdirectory, the new file overwrites the old one even though they're in different directories.
See screen recording: https://puu.sh/wxdLl/70735a4110.mp4
Yeah sorry for that, it's actually a different issue. The whole file handling is a big hack in the current WebIDE, the files actually are stored by their name only (vsval.ksy
in both cases) and there is no warning or what so ever if you overwrite files this way. Renaming also causes this kind of inconsistency.
These hopefully will be fixed in V2, but there is no ETA when it will be released.
Till then please only use flat file structure. Sorry again for that :S
No worries, but it may be a good compromise to disable the create folder button on production in the meantime.
Edit: Or perhaps add a simple window.confirm
call to warn the user about this limitation when it's about to overwrite a file.
Hi!
I'm loving the web IDE so far, but it seems imports aren't working.
If I copy the imports example from http://doc.kaitai.io/user_guide.html#_importing_types_from_other_files and open the
filelist.ksy
file in the IDE, the object tree is not updated (it stays blank or open on the previous ksy file) but there are no errors visible in the IDE.If I open the browser console, I can see these errors:
As text:
It looks like it's trying to retrieve the
date.ksy
file fromhttps://ide.kaitai.io/formats/date.ksy
, but that's returning a 404 which is not caught.