Hi Ian (and everyone else)
Apologies for my silence of late. I’ve been swamped with work after being asked to help out with another (commercial) project which has in crunch mode right now, and am likely to be busy with that for some time yet. Hopefully in a while I’ll have time to spend time on Corinthia again.
Now on to your recent commits:
I managed to get npm install to work in experiments/corinthiaNode by modifying the version of “moment” listed in package.json, and marking the www script as executable (both of these changes are now pushed). Then I ran ‘gulp build’ and then bin/www from the experiments/corinthiaNode directory, and got a 404 when trying to access
http://localhost:3000. The server output was as follows:
Express server listening on port 3000
GET / 404 362ms - 1.55kb
GET /app/bower_components/bootstrap/dist/css/bootstrap.css 304 4ms
GET /stylesheets/style.css 404 38ms - 1.55kb
After looking at server.js I realised I had to go to /app. That successfully loaded the page.
I was able to upload a .odt document (just a simple one with a heading, paragraph, and unordered list). From the server output I saw it was going through the document structure:
Filename webtest.odt field file1
Field [submit]: value: 'Submit'
File steamed to public/input/webtest.odt
process /Users/peter/corinthia/corinthia-docformats/experiments/corinthiaNode odfFile public/input/webtest.odt
public/app/output/webtest.odt.html exists so deleting
Do the Corinthia public/input/webtest.odt to public/app/output/webtest.odt.html
stdout: ODF element: document-content
ODF element: scripts
ODF element: font-face-decls
ODF element: font-face
… (about a hundred more elements)
at the end of that I got the following:
child process exited with code 0
redirect too public/app/output/webtest.odt.html
fs.js:636
return binding.rename(pathModule._makeLong(oldPath),
^
Error: ENOENT, no such file or directory 'abstract.json'
at Error (native)
at Object.fs.renameSync (fs.js:636:18)
at ChildProcess.<anonymous> (/Users/peter/corinthia/corinthia-docformats/experiments/corinthiaNode/server.js:251:20)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
If I look in public/app/output (where it’s expecting to find abstract.json), the only two files I see are dummy.txt and webtest.odt.html, the latter of which contains:
<!DOCTYPE html><html><head><meta content="8FAF16BB" name="corinthia-document-hash"/></head><body></body></html>
I couldn’t find anywhere in the code where it is writing to abstract.json or concrete.json; only a couple of places in core-mode.html which linked to these.
Any ideas on what’s happening?
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)