gnunicorn / clippy-service

Linting your rust project with clippy as a service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failing with `extra arguments to rustc`

BookOwl opened this issue · comments

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

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.

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 ;) .