reproto icon indicating copy to clipboard operation
reproto copied to clipboard

Getting started line `reproto --debug build --lang java --module jackson --module lombok` does not work

Open rokath opened this issue 3 years ago • 2 comments

th@DESKTOP-7POEGPB:~/example$ reproto -V
reproto 0.4.0
th@DESKTOP-7POEGPB:~/example$ reproto --debug build --lang java --module jackson --module lombok
error: Found argument '--debug' which wasn't expected, or isn't valid in this context

        Did you mean to put '--debug' after the subcommand 'build'?

        If you tried to supply `--debug` as a value rather than a flag, use `-- --debug`

USAGE:
    reproto [OPTIONS] [SUBCOMMAND]

For more information try --help
th@DESKTOP-7POEGPB:~/example$ reproto build --debug --lang java --module jackson --module lombok
DEBUG - reading manifest: reproto.toml
loading index from URL: git+https://github.com/reproto/reproto-index
  caused by: cannot set scheme for url: git+https://github.com/reproto/reproto-index
cannot set scheme for url: git+https://github.com/reproto/reproto-index
th@DESKTOP-7POEGPB:~/example$ reproto build --lang java --module jackson --module lombok
loading index from URL: git+https://github.com/reproto/reproto-index
  caused by: cannot set scheme for url: git+https://github.com/reproto/reproto-index
cannot set scheme for url: git+https://github.com/reproto/reproto-index
th@DESKTOP-7POEGPB:~/example$

rokath avatar Jun 29 '22 09:06 rokath

Hey!

Thanks for the report. I'm currently working on a reproto update which uses 2021 edition safe syntax for genco. I'll make sure to take a look at this issue as well. It looks like the supported syntax for the url crate might've changed in an update or something like that.

udoprog avatar Jun 29 '22 19:06 udoprog

So the relevant issue is servo/rust-url#577

Which is... you can no longer use set_scheme to change the scheme. I.e. what this library is trying to do is construct a clone of the URL with a different scheme.

udoprog avatar Jun 30 '22 03:06 udoprog