HaddingtonDynamics / Dexter

GNU General Public License v3.0
363 stars 84 forks source link

Job engine unable to read and write local files. #76

Closed JamesNewton closed 4 years ago

JamesNewton commented 4 years ago

To work around this, modify line 97 of /root/Documents/dde/core/index.js from: var {load_files, persistent_initialize, dde_init_dot_js_initialize} = require('./storage.js') to var {file_content, write_file, load_files, persistent_initialize, dde_init_dot_js_initialize} = require('./storage.js') and add lines after 125:

global.write_file = write_file
global.load_files = load_files
global.file_content = file_content

Note: The "job engine" (which is just DDE running on the robot under node.js instead of electron) is currently based on DDE 3.0.7. It will be updated at some point, after testing of all required scripts on the robot. When that happens, this issue should be amended to point to the update and closed. For now, issues can be patched on the existing code.

JamesNewton commented 4 years ago

This should be fixed already on the image used for HDI and later robots.