vitiral / artifact

The open source design documentation tool for everybody
http://vitiral.github.io/artifact/docs/index.html
Other
559 stars 38 forks source link

Executing `art` panics #212

Closed matthiasbeyer closed 5 years ago

matthiasbeyer commented 6 years ago

When executing art (without commands or flags) I get:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(CmdError("\u{1b}[32martifact\u{1b}[0m 1.1.0-beta001\nhttps://github.com/vitiral/artifact\nThe requirements tracking tool made for developers. Call `art tutorial` for a tutorial\n\u{1b}[33m\nUSAGE:\u{1b}[0m\n    art [FLAGS] [OPTIONS] <SUBCOMMAND>\n\n\u{1b}[33mFLAGS:\n\u{1b}[0m    \u{1b}[32m-v\u{1b}[0m               Verbose, pass up to 3 times to increase the level\n    \u{1b}[32m-q\u{1b}[0m, \u{1b}[32m--quiet\u{1b}[0m      If set no output will be printed\n    \u{1b}[32m-h\u{1b}[0m, \u{1b}[32m--help\u{1b}[0m       Prints help information\n    \u{1b}[32m-V\u{1b}[0m, \u{1b}[32m--version\u{1b}[0m    Prints version information\n\n\u{1b}[33mOPTIONS:\n\u{1b}[0m        \u{1b}[32m--work-tree\u{1b}[0m \u{1b}[32m<PATH>\u{1b}[0m    Use a different working tree instead of cwd\n\n\u{1b}[33mSUBCOMMANDS:\n\u{1b}[0m    \u{1b}[32mtutorial\u{1b}[0m    Start the interactive tutorial\n    \u{1b}[32minit\u{1b}[0m        Initialize an artifact repository in the current directory\n    \u{1b}[32mls\u{1b}[0m          List artifacts according to various parameters\n    \u{1b}[32mcheck\u{1b}[0m       Check for any errors in the project\n    \u{1b}[32mfmt\u{1b}[0m         Format your design documents\n    \u{1b}[32mexport\u{1b}[0m      Export artifacts as static files\n    \u{1b}[32mupdate\u{1b}[0m      Update to a different version (default newest)\n    \u{1b}[32mserve\u{1b}[0m       Serve the web-ui and json-rpc backend\n                \n                               The server is hosted at ADDRESS, which can also be a port number for\n                               localhost.\n                \n                               If address is a non-port, the server is readonly by default.\n                \n                               if address is a port number (localost) then the server is editable by default.\n                \n                               Either can be overridden explicitly through the --readonly or --editable flags\n    \u{1b}[32mhelp\u{1b}[0m        Prints this message or the help of the given subcommand(s)\n"), State { next_error: None, backtrace: None })', /checkout/src/libcore/result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Expected behaviour

Printing either an error or the help text or executing a default command.

vitiral commented 6 years ago

Bizare -- it is atempting to write the help message but it is instead panicing.

Is this happening on stable or beta (or both)?

matthiasbeyer commented 6 years ago

This happens on the installation from crates.io, so beta I suppose.

vitiral commented 5 years ago

this still exists in 2.0.1

dt665m commented 5 years ago

I'm still seeing this on 2.1.4 Darwin downloaded from Github Rleases. Different error though.

thread 'main' panicked at 'not yet implemented: sub: ', artifact-app/src/lib.rs:82:21
note: Run with `RUST_BACKTRACE=1` for a backtrace.