flycheck / flycheck-rust

Better Rust/Cargo support for Flycheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error from syntax checker rust-cargo: JSON readtable error

opened this issue · comments

Syntax checkers for buffer main.rs in rust-mode:

  rust-cargo
    - may enable:  yes
    - predicate:   t
    - executable:  Found at /Users/zwb/.cargo/bin/cargo
    - Cargo.toml:  Found
    - Crate type:  bin
    - Binary name: iron-gcd

  rust
    - may enable: yes
    - predicate:  t
    - executable: Found at /Users/zwb/.cargo/bin/rustc

  rust-clippy (disabled)
    - may enable: Automatically disabled!
    - predicate:  t
    - executable: Found at /Users/zwb/.cargo/bin/cargo
    - Clippy:     Cannot find the `cargo clippy' command
    - Cargo.toml: Found

Flycheck Mode is enabled. Use SPC u C-c ! x to enable disabled checkers.

--------------------

Flycheck version: 32snapshot
Emacs version:    25.3.1
System:           x86_64-apple-darwin17.3.0
Window system:    mac

Thanks, but we are going to need a bit more information in order to pinpoint the problem.

Can you run M-x flycheck-compile rust-cargo RET with the buffer where you have this error and report its output?

Also, please report your cargo and rustc version.

@fmdkdd Thank you, below is the info:

cargo 0.25.0-nightly (a88fbace4 2017-12-29)
rustc 1.25.0-nightly (73ac5d6a8 2018-01-11)

I run M-x flycheck-compile rust-cargo RET get

-*- mode: compilation; default-directory: "~/Documents/rust/rust-recipes/pr/ch01/mandelbrot/" -*-
Compilation started at Thu Apr 12 18:13:42

cargo test --no-run --bin mandelbrot --message-format\=json
warning: custom registry support via the `registry.index` configuration is being removed, this functionality will not work in the future
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libeither-b46691bb41085e17.rlib"],"fresh":true,"package_id":"either 1.5.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"either","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/either-1.5.0/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcfg_if-3bc472212ea14683.rlib"],"fresh":true,"package_id":"cfg-if 0.1.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"cfg-if","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/cfg-if-0.1.2/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam-948f61e4f43cd987.rlib"],"fresh":true,"package_id":"crossbeam 0.2.12 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"crossbeam","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-0.2.12/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/liblazy_static-e0d101ddc4a549b1.rlib"],"fresh":true,"package_id":"lazy_static 1.0.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"lazy_static","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.0.0/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnodrop-2541b19235983f05.rlib"],"fresh":true,"package_id":"nodrop 0.1.12 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"nodrop","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/nodrop-0.1.12/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libscopeguard-62ff9b3ada74ec7a.rlib"],"fresh":true,"package_id":"scopeguard 0.3.3 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"scopeguard","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/scopeguard-0.3.3/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/build/rayon-core-1aed84e0ba13802b/build-script-build"],"fresh":true,"package_id":"rayon-core 1.4.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"kind":["custom-build"],"name":"build-script-build","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rayon-core-1.4.0/build.rs"}}
{"features":["default","use_std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/liblibc-a21516de1d8883a1.rlib"],"fresh":true,"package_id":"libc 0.2.40 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"libc","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/libc-0.2.40/src/lib.rs"}}
{"features":["default","std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_traits-d0bd3b765ca99c46.rlib"],"fresh":true,"package_id":"num-traits 0.2.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num-traits","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-traits-0.2.2/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librustc_serialize-85b0bfed2726935e.rlib"],"fresh":true,"package_id":"rustc-serialize 0.3.24 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"rustc-serialize","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rustc-serialize-0.3.24/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libadler32-a632edcd261c3f33.rlib"],"fresh":true,"package_id":"adler32 1.0.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"adler32","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/adler32-1.0.2/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcolor_quant-337369412c55d7c2.rlib"],"fresh":true,"package_id":"color_quant 1.0.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"color_quant","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/color_quant-1.0.0/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libmemoffset-836c68aa8b2c8b88.rlib"],"fresh":true,"package_id":"memoffset 0.2.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"memoffset","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/memoffset-0.2.1/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libbitflags-c37c653bbb22d009.rlib"],"fresh":true,"package_id":"bitflags 0.7.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"bitflags","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/bitflags-0.7.0/src/lib.rs"}}
{"features":["default","std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libbyteorder-b8f540634e332b25.rlib"],"fresh":true,"package_id":"byteorder 1.2.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"byteorder","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/byteorder-1.2.2/src/lib.rs"}}
{"features":["default","raii_no_panic"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/liblzw-f713ea16afe307e9.rlib"],"fresh":true,"package_id":"lzw 0.10.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"lzw","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lzw-0.10.0/src/lib.rs"}}
{"features":["default"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libinflate-3f54e3ddb7e34f14.rlib"],"fresh":true,"package_id":"inflate 0.2.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"inflate","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/inflate-0.2.0/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libscoped_threadpool-e0c3066e9e8f4112.rlib"],"fresh":true,"package_id":"scoped_threadpool 0.1.9 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"scoped_threadpool","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/scoped_threadpool-0.1.9/src/lib.rs"}}
{"features":["default","use_std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam_utils-b631e6741df6e105.rlib"],"fresh":true,"package_id":"crossbeam-utils 0.2.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"crossbeam-utils","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-utils-0.2.2/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libarrayvec-d23566e4a2b51245.rlib"],"fresh":true,"package_id":"arrayvec 0.4.7 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"arrayvec","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/arrayvec-0.4.7/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_cpus-0e6c8a6c59e4df67.rlib"],"fresh":true,"package_id":"num_cpus 1.8.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num_cpus","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num_cpus-1.8.0/src/lib.rs"}}
{"features":["default","libc","std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librand-c0e5aac14b0d5767.rlib"],"fresh":true,"package_id":"rand 0.4.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"rand","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rand-0.4.2/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_traits-4d34d69f2b0ee152.rlib"],"fresh":true,"package_id":"num-traits 0.1.43 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num-traits","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-traits-0.1.43/src/lib.rs"}}
{"features":["default","std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_integer-83fc80aa117d9298.rlib"],"fresh":true,"package_id":"num-integer 0.1.36 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num-integer","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-integer-0.1.36/src/lib.rs"}}
{"features":["default","rustc-serialize"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_complex-096fbcfcfbf67b13.rlib"],"fresh":true,"package_id":"num-complex 0.1.43 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num-complex","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-complex-0.1.43/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libdeflate-06162e34756ff429.rlib"],"fresh":true,"package_id":"deflate 0.7.18 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"deflate","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/deflate-0.7.18/src/lib.rs"}}
{"features":["default","raii_no_panic"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libgif-f646ef41fd067324.rlib"],"fresh":true,"package_id":"gif 0.9.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"gif","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/gif-0.9.2/src/lib.rs"}}
{"features":["crossbeam-utils","default","lazy_static","use_std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam_epoch-1dc01eabd64891e7.rlib"],"fresh":true,"package_id":"crossbeam-epoch 0.3.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"crossbeam-epoch","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-epoch-0.3.1/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libenum_primitive-c6d03eea5f7db40e.rlib"],"fresh":true,"package_id":"enum_primitive 0.1.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"enum_primitive","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/enum_primitive-0.1.1/src/lib.rs"}}
{"features":["default","std"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_iter-dc51c34f9c398515.rlib"],"fresh":true,"package_id":"num-iter 0.1.35 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num-iter","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-iter-0.1.35/src/lib.rs"}}
{"features":["default","rand","rustc-serialize"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_bigint-b7302afe1761e9b3.rlib"],"fresh":true,"package_id":"num-bigint 0.1.43 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num-bigint","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-bigint-0.1.43/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam_deque-d94c469c5d0d8dd2.rlib"],"fresh":true,"package_id":"crossbeam-deque 0.2.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"crossbeam-deque","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-deque-0.2.0/src/lib.rs"}}
{"features":["default","deflate","png-encoding"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libpng-8cf314c300c19673.rlib"],"fresh":true,"package_id":"png 0.7.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"png","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/png-0.7.0/src/lib.rs"}}
{"features":["bigint","default","num-bigint","rustc-serialize"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_rational-48f2ba8871ce93b9.rlib"],"fresh":true,"package_id":"num-rational 0.1.42 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num-rational","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-rational-0.1.42/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librayon_core-fe2da3df067f962b.rlib"],"fresh":true,"package_id":"rayon-core 1.4.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"rayon-core","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rayon-core-1.4.0/src/lib.rs"}}
{"features":["bigint","complex","default","num-bigint","num-complex","num-rational","rational","rustc-serialize"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum-bd5ce95298661060.rlib"],"fresh":true,"package_id":"num 0.1.42 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"num","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-0.1.42/src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librayon-4e0c83462e6d7b50.rlib"],"fresh":true,"package_id":"rayon 1.0.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"rayon","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rayon-1.0.1/src/lib.rs"}}
{"features":["default","rayon"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libjpeg_decoder-b64e2736709b375f.rlib"],"fresh":true,"package_id":"jpeg-decoder 0.1.14 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"jpeg-decoder","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/jpeg-decoder-0.1.14/src/lib.rs"}}
{"features":["bmp","default","gif","gif_codec","hdr","ico","jpeg","jpeg-decoder","png","png_codec","ppm","scoped_threadpool","tga","tiff","webp"],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libimage-73e0dea44e37f0fc.rlib"],"fresh":true,"package_id":"image 0.13.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"image","src_path":"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/image-0.13.0/./src/lib.rs"}}
{"features":[],"filenames":["/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/mandelbrot-032ae2df923af5e1","/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/mandelbrot-032ae2df923af5e1.dSYM"],"fresh":true,"package_id":"mandelbrot 0.1.0 (path+file:///Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":true},"reason":"compiler-artifact","target":{"crate_types":["bin"],"kind":["bin"],"name":"mandelbrot","src_path":"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/src/main.rs"}}
    Finished dev [unoptimized + debuginfo] target(s) in 0.59 secs

Compilation finished at Thu Apr 12 18:13:43

I can't reproduce the JSON readtable error. If I call (flycheck-parse-json) on the output returned by cargo test you give, it parses fine.

I tried to clone your rust-recipes directory, and syntax checking is working fine when opening mandelbrot/src/main.rs or iron-gcd/src/main.rs.

Can you give me exact steps that trigger the error on your side?

@fmdkdd I use https://github.com/hlissner/doom-emacs/tree/develop . After I open mandelbrot/src/main.rs and move cursor, minibuffer will give this error info.

@fmdkdd Open main.rs,enter Ctrl-g will reproduce this.

Below is the config (def-packages encapsulate use-package):

(def-package! rust-mode
  :mode "\\.rs$"
  :config
  (set! :env "RUST_SRC_PATH")
  (set! :docset 'rust-mode "Rust")
  (setq rust-indent-method-chain t)

  (map! :map rust-mode-map
        :localleader
        :n "b" #'+rust/build-menu)
  (def-menu! +rust/build-menu
    "TODO"
    '(("cargo run"   :exec "cargo run --color always")
      ("cargo build" :exec "cargo build --color always")
      ("cargo test"  :exec "cargo test --color always"))
    :prompt "Cargo: "))


(def-package! racer
  :after rust-mode
  :config
  (add-hook! 'rust-mode-hook #'(eldoc-mode racer-mode))
  (set! :lookup 'rust-mode
    :definition #'racer-find-definition
    :documentation #'racer-describe))


(def-package! company-racer
  :when (featurep! :completion company)
  :after racer
  :config (set! :company-backend 'rust-mode '(company-racer)))


(def-package! flycheck-rust
  :when (featurep! :feature syntax-checker)
  :after rust-mode
  :hook (flycheck-mode . flycheck-rust-setup)
  :init (add-hook 'rust-mode-hook #'flycheck-mode))

@hlissner Would you please to see this issue?

@ethercflow I cannot reproduce this on Doom either. Can you invoke a backtrace? e.g. M-x toggle-debug-on-error and trigger the error, then copy the backtrace here.

@hlissner Thank you for your help. Below is the backtrace.

Debugger entered--Lisp error: (json-readtable-error)
  signal(json-readtable-error nil)
  json-read()
  flycheck-rust-cargo-metadata()
  flycheck-rust-cargo-workspace-root()
  #[257 "\300 \301\302\303\304\305\306��!\307\"\310\311%\312�!\"\207" [flycheck-rust-cargo-workspace-root seq-do make-byte-code 257 "\211\302H	>\204��\303\304\305�D\"\210\211\211\306\307�\302H	>\204#�\303\304\305��D\"\210�\306H\300\"I\207" vconcat vector [cl-struct-flycheck-error-tags 0 signal wrong-type-argument flycheck-error 3 expand-file-name] 9 "\n\n(fn ERR)" flycheck-rust-error-filter] 9 "\n\n(fn ERRORS)"](nil)
  flycheck-filter-errors(nil rust-cargo)
  flycheck-finish-current-syntax-check(nil "~/Documents/rust/rust-recipes/pr/ch01/mandelbrot/")
  flycheck-report-buffer-checker-status([cl-struct-flycheck-syntax-check #<buffer main.rs> rust-cargo #<process flycheck-rust-cargo> "~/Documents/rust/rust-recipes/pr/ch01/mandelbrot/"] finished nil)
  apply(flycheck-report-buffer-checker-status [cl-struct-flycheck-syntax-check #<buffer main.rs> rust-cargo #<process flycheck-rust-cargo> "~/Documents/rust/rust-recipes/pr/ch01/mandelbrot/"] (finished nil))
  #[128 "\301\302\300�#\207" [[cl-struct-flycheck-syntax-check #<buffer main.rs> rust-cargo #<process flycheck-rust-cargo> "~/Documents/rust/rust-recipes/pr/ch01/mandelbrot/"] apply flycheck-report-buffer-checker-status] 5 "\n\n(fn &rest ARGS)"](finished nil)
  flycheck-finish-checker-process(rust-cargo 0 nil "warning: custom registry support via the `registry.index` configuration is being removed, this functionality will not work in the future\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libadler32-a632edcd261c3f33.rlib\"],\"fresh\":true,\"package_id\":\"adler32 1.0.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"adler32\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/adler32-1.0.2/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/build/rayon-core-1aed84e0ba13802b/build-script-build\"],\"fresh\":true,\"package_id\":\"rayon-core 1.4.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"bin\"],\"kind\":[\"custom-build\"],\"name\":\"build-script-build\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rayon-core-1.4.0/build.rs\"}}\n{\"features\":[\"default\",\"std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libbyteorder-b8f540634e332b25.rlib\"],\"fresh\":true,\"package_id\":\"byteorder 1.2.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"byteorder\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/byteorder-1.2.2/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcfg_if-3bc472212ea14683.rlib\"],\"fresh\":true,\"package_id\":\"cfg-if 0.1.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"cfg-if\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/cfg-if-0.1.2/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnodrop-2541b19235983f05.rlib\"],\"fresh\":true,\"package_id\":\"nodrop 0.1.12 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"nodrop\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/nodrop-0.1.12/src/lib.rs\"}}\n{\"features\":[\"default\",\"std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_traits-d0bd3b765ca99c46.rlib\"],\"fresh\":true,\"package_id\":\"num-traits 0.2.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num-traits\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-traits-0.2.2/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librustc_serialize-85b0bfed2726935e.rlib\"],\"fresh\":true,\"package_id\":\"rustc-serialize 0.3.24 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"rustc-serialize\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rustc-serialize-0.3.24/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libeither-b46691bb41085e17.rlib\"],\"fresh\":true,\"package_id\":\"either 1.5.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"either\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/either-1.5.0/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libmemoffset-836c68aa8b2c8b88.rlib\"],\"fresh\":true,\"package_id\":\"memoffset 0.2.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"memoffset\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/memoffset-0.2.1/src/lib.rs\"}}\n{\"features\":[\"default\",\"use_std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/liblibc-a21516de1d8883a1.rlib\"],\"fresh\":true,\"package_id\":\"libc 0.2.40 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"libc\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/libc-0.2.40/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcolor_quant-337369412c55d7c2.rlib\"],\"fresh\":true,\"package_id\":\"color_quant 1.0.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"color_quant\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/color_quant-1.0.0/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/liblazy_static-e0d101ddc4a549b1.rlib\"],\"fresh\":true,\"package_id\":\"lazy_static 1.0.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"lazy_static\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lazy_static-1.0.0/src/lib.rs\"}}\n{\"features\":[\"default\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libinflate-3f54e3ddb7e34f14.rlib\"],\"fresh\":true,\"package_id\":\"inflate 0.2.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"inflate\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/inflate-0.2.0/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libscoped_threadpool-e0c3066e9e8f4112.rlib\"],\"fresh\":true,\"package_id\":\"scoped_threadpool 0.1.9 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"scoped_threadpool\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/scoped_threadpool-0.1.9/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam-948f61e4f43cd987.rlib\"],\"fresh\":true,\"package_id\":\"crossbeam 0.2.12 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"crossbeam\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-0.2.12/src/lib.rs\"}}\n{\"features\":[\"default\",\"raii_no_panic\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/liblzw-f713ea16afe307e9.rlib\"],\"fresh\":true,\"package_id\":\"lzw 0.10.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"lzw\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/lzw-0.10.0/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libbitflags-c37c653bbb22d009.rlib\"],\"fresh\":true,\"package_id\":\"bitflags 0.7.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"bitflags\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/bitflags-0.7.0/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libscopeguard-62ff9b3ada74ec7a.rlib\"],\"fresh\":true,\"package_id\":\"scopeguard 0.3.3 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"scopeguard\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/scopeguard-0.3.3/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libdeflate-06162e34756ff429.rlib\"],\"fresh\":true,\"package_id\":\"deflate 0.7.18 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"deflate\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/deflate-0.7.18/src/lib.rs\"}}\n{\"features\":[\"default\",\"use_std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam_utils-b631e6741df6e105.rlib\"],\"fresh\":true,\"package_id\":\"crossbeam-utils 0.2.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"crossbeam-utils\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-utils-0.2.2/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libarrayvec-d23566e4a2b51245.rlib\"],\"fresh\":true,\"package_id\":\"arrayvec 0.4.7 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"arrayvec\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/arrayvec-0.4.7/src/lib.rs\"}}\n{\"features\":[\"default\",\"std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_integer-83fc80aa117d9298.rlib\"],\"fresh\":true,\"package_id\":\"num-integer 0.1.36 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num-integer\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-integer-0.1.36/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_traits-4d34d69f2b0ee152.rlib\"],\"fresh\":true,\"package_id\":\"num-traits 0.1.43 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num-traits\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-traits-0.1.43/src/lib.rs\"}}\n{\"features\":[\"default\",\"rustc-serialize\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_complex-096fbcfcfbf67b13.rlib\"],\"fresh\":true,\"package_id\":\"num-complex 0.1.43 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num-complex\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-complex-0.1.43/src/lib.rs\"}}\n{\"features\":[\"default\",\"libc\",\"std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librand-c0e5aac14b0d5767.rlib\"],\"fresh\":true,\"package_id\":\"rand 0.4.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"rand\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rand-0.4.2/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_cpus-0e6c8a6c59e4df67.rlib\"],\"fresh\":true,\"package_id\":\"num_cpus 1.8.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num_cpus\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num_cpus-1.8.0/src/lib.rs\"}}\n{\"features\":[\"default\",\"raii_no_panic\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libgif-f646ef41fd067324.rlib\"],\"fresh\":true,\"package_id\":\"gif 0.9.2 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"gif\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/gif-0.9.2/src/lib.rs\"}}\n{\"features\":[\"crossbeam-utils\",\"default\",\"lazy_static\",\"use_std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam_epoch-1dc01eabd64891e7.rlib\"],\"fresh\":true,\"package_id\":\"crossbeam-epoch 0.3.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"crossbeam-epoch\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-epoch-0.3.1/src/lib.rs\"}}\n{\"features\":[\"default\",\"std\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_iter-dc51c34f9c398515.rlib\"],\"fresh\":true,\"package_id\":\"num-iter 0.1.35 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num-iter\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-iter-0.1.35/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libenum_primitive-c6d03eea5f7db40e.rlib\"],\"fresh\":true,\"package_id\":\"enum_primitive 0.1.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"enum_primitive\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/enum_primitive-0.1.1/src/lib.rs\"}}\n{\"features\":[\"default\",\"rand\",\"rustc-serialize\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_bigint-b7302afe1761e9b3.rlib\"],\"fresh\":true,\"package_id\":\"num-bigint 0.1.43 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num-bigint\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-bigint-0.1.43/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libcrossbeam_deque-d94c469c5d0d8dd2.rlib\"],\"fresh\":true,\"package_id\":\"crossbeam-deque 0.2.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"crossbeam-deque\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/crossbeam-deque-0.2.0/src/lib.rs\"}}\n{\"features\":[\"default\",\"deflate\",\"png-encoding\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libpng-8cf314c300c19673.rlib\"],\"fresh\":true,\"package_id\":\"png 0.7.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"png\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/png-0.7.0/src/lib.rs\"}}\n{\"features\":[\"bigint\",\"default\",\"num-bigint\",\"rustc-serialize\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum_rational-48f2ba8871ce93b9.rlib\"],\"fresh\":true,\"package_id\":\"num-rational 0.1.42 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num-rational\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-rational-0.1.42/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librayon_core-fe2da3df067f962b.rlib\"],\"fresh\":true,\"package_id\":\"rayon-core 1.4.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"rayon-core\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rayon-core-1.4.0/src/lib.rs\"}}\n{\"features\":[\"bigint\",\"complex\",\"default\",\"num-bigint\",\"num-complex\",\"num-rational\",\"rational\",\"rustc-serialize\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libnum-bd5ce95298661060.rlib\"],\"fresh\":true,\"package_id\":\"num 0.1.42 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"num\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/num-0.1.42/src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/librayon-4e0c83462e6d7b50.rlib\"],\"fresh\":true,\"package_id\":\"rayon 1.0.1 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"rayon\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/rayon-1.0.1/src/lib.rs\"}}\n{\"features\":[\"default\",\"rayon\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libjpeg_decoder-b64e2736709b375f.rlib\"],\"fresh\":true,\"package_id\":\"jpeg-decoder 0.1.14 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"jpeg-decoder\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/jpeg-decoder-0.1.14/src/lib.rs\"}}\n{\"features\":[\"bmp\",\"default\",\"gif\",\"gif_codec\",\"hdr\",\"ico\",\"jpeg\",\"jpeg-decoder\",\"png\",\"png_codec\",\"ppm\",\"scoped_threadpool\",\"tga\",\"tiff\",\"webp\"],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/deps/libimage-73e0dea44e37f0fc.rlib\"],\"fresh\":true,\"package_id\":\"image 0.13.0 (registry+https://mirrors.ustc.edu.cn/crates.io-index/)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":false},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"lib\"],\"kind\":[\"lib\"],\"name\":\"image\",\"src_path\":\"/Users/zwb/.cargo/registry/src/mirrors.ustc.edu.cn-b63e9dae659fc205/image-0.13.0/./src/lib.rs\"}}\n{\"features\":[],\"filenames\":[\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/mandelbrot-032ae2df923af5e1\",\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target/debug/mandelbrot-032ae2df923af5e1.dSYM\"],\"fresh\":true,\"package_id\":\"mandelbrot 0.1.0 (path+file:///Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot)\",\"profile\":{\"debug_assertions\":true,\"debuginfo\":2,\"opt_level\":\"0\",\"overflow_checks\":true,\"test\":true},\"reason\":\"compiler-artifact\",\"target\":{\"crate_types\":[\"bin\"],\"kind\":[\"bin\"],\"name\":\"mandelbrot\",\"src_path\":\"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/src/main.rs\"}}\n    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs\n" #[128 "\301\302\300�#\207" [[cl-struct-flycheck-syntax-check #<buffer main.rs> rust-cargo #<process flycheck-rust-cargo> "~/Documents/rust/rust-recipes/pr/ch01/mandelbrot/"] apply flycheck-report-buffer-checker-status] 5 "\n\n(fn &rest ARGS)"] "~/Documents/rust/rust-recipes/pr/ch01/mandelbrot/")
  flycheck-handle-signal(#<process flycheck-rust-cargo> "finished\n")

Ah, I think I know what's going on. @ethercflow can you run cargo metadata --no-deps --format-version 1 in your mandelbrot project?

@fmdkdd Cool

image

warning: custom registry support via the `registry.index` configuration is being removed, this functionality will not work in the future
{"packages":[{"name":"mandelbrot","version":"0.1.0","id":"mandelbrot 0.1.0 (path+file:///Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot)","license":null,"license_file":null,"description":null,"source":null,"dependencies":[{"name":"crossbeam","source":"registry+https://mirrors.ustc.edu.cn/crates.io-index/","req":"^0.2.8","kind":null,"optional":false,"uses_default_features":true,"features":[],"target":null},{"name":"image","source":"registry+https://mirrors.ustc.edu.cn/crates.io-index/","req":"^0.13.0","kind":null,"optional":false,"uses_default_features":true,"features":[],"target":null},{"name":"num","source":"registry+https://mirrors.ustc.edu.cn/crates.io-index/","req":"^0.1.27","kind":null,"optional":false,"uses_default_features":true,"features":[],"target":null}],"targets":[{"kind":["bin"],"crate_types":["bin"],"name":"mandelbrot","src_path":"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/src/main.rs"}],"features":{},"manifest_path":"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/Cargo.toml"}],"workspace_members":["mandelbrot 0.1.0 (path+file:///Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot)"],"resolve":null,"target_directory":"/Users/zwb/Documents/rust/rust-recipes/pr/ch01/mandelbrot/target","version":1

Yes, so that first line warning: custom registry ... is not JSON, and we should ignore it when parsing. That's a bug on our side, that we didn't catch until now because that warning comes from your Cargo configuration.

I've sent a patch. Thanks for the report!

@fmdkdd Perfect! I update my local flycheck.el, and it works very well!