Git Product home page Git Product logo

Comments (8)

est31 avatar est31 commented on July 17, 2024 2

Cargo udeps + latest rustc nightly works with noria master. Closing. Thanks for your report.

from cargo-udeps.

jonhoo avatar jonhoo commented on July 17, 2024 1

Looks like the upstream issue has been fixed in rust-lang/rust#68744. I guess now we just have to wait and see if that makes it possible to run cargo udeps on noria itself :p

from cargo-udeps.

est31 avatar est31 commented on July 17, 2024

@jonhoo it seems like a problem with save analysis generation, which cargo-udeps uses. If that's the case it would be an upstream bug. Do you have the same issue if you use rls with the repo?

from cargo-udeps.

jonhoo avatar jonhoo commented on July 17, 2024

Seems pretty likely it is an upstream bug, but I'm not sure how to replicate it without cargo-udeps. Running rls in the root of the repository does not produce the error, if that's what you meant?

from cargo-udeps.

est31 avatar est31 commented on July 17, 2024

cargo udeps -v prints the rustc commands invoked. All we do different from a cargo check run is that we add -Z save-analysis (more or less). I'd file an upstream bug next.

from cargo-udeps.

jonhoo avatar jonhoo commented on July 17, 2024

👍 Filed rust-lang/rust#68621

from cargo-udeps.

est31 avatar est31 commented on July 17, 2024

Running rls in the root of the repository does not produce the error, if that's what you meant?

IIRC that does nothing but only starts the language service, waiting for commands to be specified in json. both cargo udeps and rls rely on save analysis info from rustc, but it is only being emitted when you actually let rls compile the project. Trying to use vscode+rls on master gives me an error that tokio-tower can't be compiled. Not sure how to debug that.

I can reproduce the issue with cargo udeps on noria's master, but not the linked commit as it gives me:

 Updating git repository `https://github.com/jonhoo/memcached-rs.git`
error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to load source for a dependency on `memcached-rs`

Caused by:
  Unable to update https://github.com/jonhoo/memcached-rs.git?branch=bump-deps#86170708

Caused by:
  revspec '86170708ab2b24c2eb5dbb16d5a3dd61337c18ea' not found; class=Reference (4); code=NotFound (-3)

from cargo-udeps.

jonhoo avatar jonhoo commented on July 17, 2024

Yeah, that commit no longer compiles (the ecosystem moved quickly 😅). master should be fine.

from cargo-udeps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.