Skip to content
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

Failing with extra arguments to rustc #44

Open
BookOwl opened this issue Nov 1, 2016 · 2 comments
Open

Failing with extra arguments to rustc #44

BookOwl opened this issue Nov 1, 2016 · 2 comments

Comments

@BookOwl
Copy link

BookOwl commented Nov 1, 2016

I'm trying to use your service to lint one of my projects, but it keeps saying that clippy failed it, even though on my machine clippy passes it. I checked the log, and it looks like clippy isn't even being run.

Here is the log:

2016-11-01T16:12:35Z Started Processing
2016-11-01T16:12:35Z Creating Temp Directory...
2016-11-01T16:12:35Z Fetching https://codeload.github.com/BookOwl/haumea/zip/c5475838202be53341efa466e5db3ad45c0c871b
2016-11-01T16:12:36Z Extracted: 
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/.gitignore
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/.travis.yml
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/Cargo.toml
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/LICENSE.txt
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/README.md
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/examples/factorial.hau
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/examples/for-each.hau
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/fix_indentation.py
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/grammar.ebnf
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/haumea.png
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/haumea.svg
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/src/codegen.rs
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/src/lib.rs
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/src/main.rs
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/src/parser.rs
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/src/scanner.rs
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/tests/test_codegen.rs
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/tests/test_parser.rs
 - /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b/tests/test_scanner.rs
2016-11-01T16:12:36Z Cargo file found in /tmp/github_BookOwl_haumea_c5475838202be53341efa466e5db3ad45c0c871b.sClRCCXY2SVz/haumea-c5475838202be53341efa466e5db3ad45c0c871b
2016-11-01T16:12:36Z Running: rustc --version
2016-11-01T16:12:36Z ----- stdout:
rustc 1.11.0-nightly (1ab87b65a 2016-07-02)
Process 4 detected

2016-11-01T16:12:36Z ----- stderr:
Reading profile /etc/firejail/cargo.profile
Reading profile /etc/firejail/disable-common.inc
Process 4 dead!

2016-11-01T16:12:36Z Running: cargo --version
2016-11-01T16:12:36Z ----- stdout:
cargo 0.12.0-nightly (5716f32 2016-06-29)
Process 4 detected

2016-11-01T16:12:36Z ----- stderr:
Reading profile /etc/firejail/cargo.profile
Reading profile /etc/firejail/disable-common.inc
Process 4 dead!

2016-11-01T16:12:36Z -------------------------------- Running Clippy
2016-11-01T16:12:36Z Running: cargo rustc -- -L /~/app/target/debug/deps -Zunstable-options -Zextra-plugins=clippy -Zno-trans -lclippy --error-format=json
2016-11-01T16:12:37Z ----- stdout:
Process 4 detected

2016-11-01T16:12:37Z ----- stderr:
Reading profile /etc/firejail/cargo.profile
Reading profile /etc/firejail/disable-common.inc
error: extra arguments to `rustc` can only be passed to one target, consider filtering
the package by passing e.g. `--lib` or `--bin NAME` to specify a single target
Process 4 dead!

2016-11-01T16:12:37Z -----
Messages identified:
 
2016-11-01T16:12:37Z Failed: Running Clippy failed.
2016-11-01T16:12:37Z ------------------------------------------
 Clippy's final verdict: failed
@durka
Copy link

durka commented Nov 28, 2016

I'm seeing the same thing, except I don't even get the "extra arguments" error. Also, that version of rustc is an outrageously old nightly.

@gnunicorn
Copy link
Owner

This is super outdated as the repo wasn't being deployed correctly because of a missing renaming after the move.

However, the extra arguments are because clippy-service right now only supports either lib or bin checking but not both... I am open to PRs about this ;) .

@gnunicorn gnunicorn changed the title Running clippy failed Failing with extra arguments to rustc Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants