There is an issue with ergo compile running ergo compile ./model/model.cto ./logic/logic.ergo in the latest version (23) of Ergo obtained through npm install -g @accordproject/ergo-cli or npm install -g @accordproject/ergo-cli@0.23
I tested this on both my Windows and Linux development systems and experienced the same issue.
Expected Behavior
ergo compile to return Compiling Ergo './logic/logic.ergo' -- './logic/logic.js'
Current Behavior
Unknown arguments: ./model/model.cto, ./logic/logic.ergo is returned.
Possible Solution
Steps to Reproduce
npm install -g @accordproject/ergo-cli@0.23 or simply npm install -g @accordproject/ergo-cli verifying its version 23
run ergo compile against the model.cto and logic.ergo (i.e. ergo compile model.cto logic.ergo)
Context (Environment)
Desktop
OS: Windows 2012 R2 and Ubuntu 22.04
Browser: [e.g. Chrome, Safari]
Version: [e.g. 0.22.15]
Detailed Description
NOTE: After reverting to an earlier version as in npm install -g @accordproject/ergo-cli@0.22 the process worked as expected. Running ergo compile model.cto logic.ergo returned Compiling Ergo './logic/logic.ergo' -- './logic/logic.js' as expected.
Bug Report 🐛
There is an issue with ergo compile running ergo compile ./model/model.cto ./logic/logic.ergo in the latest version (23) of Ergo obtained through npm install -g @accordproject/ergo-cli or npm install -g @accordproject/ergo-cli@0.23
I tested this on both my Windows and Linux development systems and experienced the same issue.
Expected Behavior
ergo compile to return Compiling Ergo './logic/logic.ergo' -- './logic/logic.js'
Current Behavior
Unknown arguments: ./model/model.cto, ./logic/logic.ergo is returned.
Possible Solution
Steps to Reproduce
Context (Environment)
Desktop
Detailed Description
NOTE: After reverting to an earlier version as in npm install -g @accordproject/ergo-cli@0.22 the process worked as expected. Running ergo compile model.cto logic.ergo returned Compiling Ergo './logic/logic.ergo' -- './logic/logic.js' as expected.
Possible Implementation