Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

ergo compile issue - Unknown arguments: ./model/model.cto, ./logic/logic.ergo #877

Open
ajamestech opened this issue Aug 28, 2022 · 0 comments

Comments

@ajamestech
Copy link

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

  1. npm install -g @accordproject/ergo-cli@0.23 or simply npm install -g @accordproject/ergo-cli verifying its version 23
  2. 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.

Possible Implementation

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

No branches or pull requests

1 participant