dmy / elm-doc-preview

Elm offline documentation previewer
https://www.npmjs.com/package/elm-doc-preview
Other
126 stars 15 forks source link

cannot upload another .json after closing #5

Closed CSchank closed 5 years ago

CSchank commented 5 years ago

If I make changes to my documentation and then "Close Preview", "Open Files" doesn't work again until the page is refreshed.

rlefevre commented 5 years ago

What do you mean by "it doesn't work", the file browsing window does not open? If so, dragging and dropping the modified documentation also does not work?

At last, do you have a more concrete example and some info about your browser, it could help.

Thanks

CSchank commented 5 years ago

You're right, apologies for that woefully inadequate bug report. Here are details: 1) I logged on to the previewer. 2) I selected my docs.json file. 3) I could view the preview perfectly fine. 4) I recompiled my docs.json with changes and clicked "Close Preview" on the app. 5) I then try to "Open Files" again to view the updated documentation. I select the file on the dialog but nothing changes in the app. It's as if no file was selected. 6) I refreshed the page and it seems to work again, but only once as before.

I have not tried dragging, I will when I get the chance. This was on Chrome 70 on a 2015 MacBook Pro running macOS High Sierra. Hopefully this is more helpful. Please let me know if you need more details from me.

rlefevre commented 5 years ago

Files handling has been rewritten (in Elm using elm/file). I think this should solve this issue so I will close it. If you can still reproduce it, feel free to reopen.