Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rokath opened this issue Jun 29, 2022 · 2 comments
Labels

Comments

@rokath
Copy link

rokath commented Jun 29, 2022

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$
@udoprog
Copy link
Member

udoprog commented Jun 29, 2022

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
Copy link
Member

udoprog commented Jun 30, 2022

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.

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

No branches or pull requests

2 participants