stencila / desktop

💻 Stencila on your desktop
Apache License 2.0
138 stars 8 forks source link

Linux build fails opening existing DAR #54

Closed apawlik closed 4 years ago

apawlik commented 6 years ago

Brand new build on Ubuntu 16.04 of Desktop 0.28

1) Trying to open https://github.com/stencila/stencila/tree/develop/examples/kitchen-sink or https://github.com/stencila/stencila/tree/develop/examples/mini gives ERROR:Could not find <dar> element.

2) Trying to open a dar created from a simple Markdown (eg. https://github.com/stencila/examples/tree/master/mtcars/mtcars.dar) using stencila convert gives: ERROR:Cannot read property 'hasPendingChanges' of undefined

3) Trying to open https://github.com/stencila/examples/tree/master/intermine/tutorials.dar gives ERROR:Cannot read property 'rest' of undefined

nokome commented 6 years ago

WRT to 2. The mtcars.dar is corrupt: in the manifest.xml file the line

<document id="README.md" name="README.md" type="article" path="mtcars.jats.xml" />

should be

<document id="README.md" name="README.md" type="article" path="mtcars.jats.xml" />

That's related to you manually renaming the JATS file after conversion (which you did because of the bug in the converter! an issue should get filed over there :)

apawlik commented 6 years ago

I had a gut feeling that renaming these files is a big mistake ;-)

nokome commented 6 years ago

I had a gut feeling that renaming these files is a big mistake ;-)

Not your fault! It's the fault of the damn cowboy developer who wrote that crap converter package. :roll_eyes:

WRT to 3 I get the same error (below, note also has the hasPendingChanges error) but if I do a Ctrl+R to reload it works. I have noticed these errors several times before, they seem to be related to the wrong order of sync events at startup (???)

image

nokome commented 6 years ago

WRT to 1: I don't get any errors on either of those files and the error ERROR:Could not find <dar> element. is surprising since the manifest.xml in both of those folders has a <dar> element e.g. https://github.com/stencila/stencila/blob/develop/examples/kitchen-sink/manifest.xml Can you check the manifest file locally?

obuchtala commented 6 years ago

Short status update: