Skip to content
This repository was 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

@ajamestech

Description

@ajamestech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions