Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zap unable to safe new configuration into a .zap file #155

Closed
ghost opened this issue May 20, 2021 · 2 comments
Closed

zap unable to safe new configuration into a .zap file #155

ghost opened this issue May 20, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented May 20, 2021

After editing a .zap file through the ui I get the following error message:

{"level":40,"time":1621490551426,"pid":55329,"hostname":"meows-iMac.local","name":"zap","msg":"HTTP server exception.","err":{"type":"TypeError","message":"browserApi.executeSave is not a function","stack":"TypeError: browserApi.executeSave is not a function\n    at fileSave (/Users/meow/Prog/chip/eve-ncs-chip/external/zap/src-electron/ui/menu.js:313:14)\n    at doSave (/Users/meow/Prog/chip/eve-ncs-chip/external/zap/src-electron/ui/menu.js:252:5)\n    at click (/Users/meow/Prog/chip/eve-ncs-chip/external/zap/src-electron/ui/menu.js:52:11)\n    at MenuItem.click (electron/js2c/browser_init.js:73:1742)\n    at Object.a._executeCommand (electron/js2c/browser_init.js:81:2492)","alert":"⛔"}}
{"level":50,"time":1621490551426,"pid":55329,"hostname":"meows-iMac.local","name":"zap","msg":{"alert":"⛔"}}

And the file is not updated.

@tecimovic
Copy link
Collaborator

This is all fixed on a master branch by now.

@ghost
Copy link
Author

ghost commented May 26, 2021

I still see the following error:

{"level":50,"time":1622040654554,"pid":85940,"hostname":"meow","name":"zap","msg":"Unable to save project with sessionId(1)"}
{"level":50,"time":1622040654554,"pid":85940,"hostname":"meow","name":"zap","msg":{"errno":-2,"code":"ENOENT","syscall":"open","path":""}}

I try to edit a zap file in the following manner:

node ./src-script/zap-start.js --logToStdout -z $ZCL_JSON -g $APP_TEMPLATES_JSON -i "$OPT_IN_FILE"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant