Comments (16)
Yes same error with
cargo install --git https://github.com/knurling-rs/probe-run --branch main
however
cargo install --git https://github.com/knurling-rs/probe-run --branch pin-hidapi
works!
from probe-run.
Just tried cargo install probe-run
again with both 1.46 and 1.48 (i am using 1.46 because scroll
does not build on later versions) and still got the same error although simple example builds nicely.
from probe-run.
ok, we'll ship #114 in the next patch release to fix cargo install probe-run
on macOS
there seems to be some issue with hidapi 1.2.4 on macOS but we have not been able to nail down the cause. The minimal repro from #113 (comment) failed to link for @justahero in some cases but linked fine most of the time.
I'll report the issue in the hidapi repo and see if the hidapi devs have a better idea about what's going on
from probe-run.
thanks for the report. I think this may have been caused by a recent update in the hidapi
crate. Could you try to build this crate for me?
$ cargo new --bin hello
$ cd hello
// src/main.rs
use hidapi as _;
fn main() {}
# Cargo.toml
[dependencies]
hidapi = "1.2.4"
$ cargo build
If that also produces a linker error then this would be a upstream issue in the hidapi
crate
from probe-run.
with help from @justahero we have confirmed that this is an issue in hidapi 1.2.4
this fails to link
# Cargo.toml
[dependencies]
hidapi = "1.2.4"
this works:
# Cargo.toml
[dependencies]
hidapi = "=1.2.3"
we'll report the issue upstream in a bit.
I think we can work around the problem in the next patch release of probe-run.
from probe-run.
This was actually successful:
Compiling cc v1.0.65
Compiling pkg-config v0.3.19
Compiling libc v0.2.80
Compiling hidapi v1.2.4
Compiling hello v0.1.0 (/Users/andres/Downloads/hello)
Finished dev [unoptimized + debuginfo] target(s) in 2.11s
Tried with hidapi v1.2.4
and hidapi v1.2.3
from probe-run.
@andresv was that with cargo build
? and did you include use hidapi as _
in the source file? (cargo check
will not perform linking. omitting the import will not link the hidapi crate)
from probe-run.
was that with cargo build? and did you include use hidapi as _ in the source file?
if it still builds and links OK with those, what Rust version are you using? please report rustc -V
from probe-run.
rustc 1.48.0 (7eac88abb 2020-11-16)
main.rs
use hidapi as _;
fn main() {
}
cargo.rs
[package]
name = "hello"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
#hidapi = "=1.2.3"
hidapi = "=1.2.4"
Edit:
Original error was coming from rust 1.46. I tried also this example with 1.46 and it is still ok.
from probe-run.
strange! maybe cargo install probe-run
will work for you now @andresv
from probe-run.
if not it could be an interaction of different crates what causes the issue ...
from probe-run.
I am searching which commit killed it.
from probe-run.
Whaatt.
Actually if i just do:
git clone https://github.com/knurling-rs/probe-run.git
cd probe-run
# works
cargo build
# release also works
cargo build --release
from probe-run.
@andresv that's probably because the repo contains a Cargo.lock
file. when you do cargo install --git $something
the Cargo.lock
file included in the checkout is ignored.
cargo install --git $something --frozen
should also work (I think it's "frozen"; it could be "locked")
from probe-run.
@andresv could you try (see #114)
$ cargo install --git https://github.com/knurling-rs/probe-run --branch pin-hidapi
I'm assuming that cargo install --git https://github.com/knurling-rs/probe-run --branch main
errors like in the issue description
from probe-run.
Should be fixed in hidapi 1.2.5
: ruabmbua/hidapi-rs@76e0f90
from probe-run.
Related Issues (20)
- `probe-run` fails to build due to yanked dependency HOT 8
- Probe run error points to old trouble shooting section
- CMSIS_DAP is not recognised (fix available link to PR)
- probe-run fails with `thread 'main' panicked at 'no entry found for key'` on heavy traffic and (maybe) buggy global logger. HOT 2
- The erase-all flag erases entire chip unnecessarily on nrf5340 which affects performance HOT 7
- Allow single line log output HOT 6
- Feature request: Timestamps on RTT messages HOT 1
- probe-run cannot detect pico HOT 4
- println! unexpectedly prints the statement's location before the formatted string
- probe-run assumes stack fits within a memory region
- Add an optional flag to halt once Ctrl+C is pressed
- Cannot install probe-run on Mac M1 HOT 5
- Running app on STM32F4 crashes core with unrecoverable exception HOT 8
- --log-format is inconvenient when only timestamp must be added HOT 1
- Cannot execute binary file HOT 2
- Issues using `probe-run` with an fe310g002 microcontroller HOT 5
- RP 2040: "ARM specific error" HOT 2
- Wrong SRAM regions for STM32L4 HOT 3
- Using app-template - Timeout occurred during operation HOT 2
- release final version with deprecation notice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probe-run.