Comments (6)
Sometimes cargo's index can get corrupted, leading to these kinds of issues (e.g. this stackoverflow post). If you delete the ~/.cargo/registry/index
directory, does the installation still fail?
from tree-sitter.
Yeah I just built it fine locally on macos and on linux, using stable and nightly, it's not an issue here I'd think
I would try @WillLillis's suggestion first and see if that works
from tree-sitter.
I still get the error even after deleting the registry.
rm -fr ~/.cargo/registry
cargo --version
cargo 1.76.0 (c84b36747 2024-01-18)
error[E0463]: can't find crate for `thiserror_impl`
--> /home/larkins/.cargo/registry/src/index.crates.io-6f17d22bba15001f/thiserror-1.0.59/src/lib.rs:248:9
|
248 | pub use thiserror_impl::*;
| ^^^^^^^^^^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `thiserror` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tree-sitter-cli v0.22.6`, intermediate artifacts can be found at `/tmp/cargo-installfiA527`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
from tree-sitter.
Tried a new version of cargo
error[E0463]: can't find crate for `thiserror_impl`
--> /home/larkins/.cargo/registry/src/index.crates.io-6f17d22bba15001f/thiserror-1.0.59/src/lib.rs:248:9
|
248 | pub use thiserror_impl::*;
| ^^^^^^^^^^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `thiserror` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tree-sitter-cli v0.22.6`, intermediate artifacts can be found at `/tmp/cargo-installPOUNjD`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
cargo --version
cargo 1.78.0 (54d8815d0 2024-03-26)
from tree-sitter.
rm -fr ~/.cargo/registry
rustup run nightly-x86_64-unknown-linux-gnu cargo install tree-sitter-cli
error[E0463]: can't find crate for `thiserror_impl`
--> /home/larkins/.cargo/registry/src/index.crates.io-6f17d22bba15001f/thiserror-1.0.59/src/lib.rs:248:9
|
248 | pub use thiserror_impl::*;
| ^^^^^^^^^^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `thiserror` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tree-sitter-cli v0.22.6`, intermediate artifacts can be found at `/tmp/cargo-installlVsZn4`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
from tree-sitter.
I updated to cargo 1.78.0
and wasn't able to replicate the issue:
I found a similar looking issue in cargo's repo, but with llvm_sys
instead of thiserror_impl
. A comment on the issue indicates that reinstalling Ubuntu
and rust
(and rebuilding llvm
) somehow fixed the problem, although that seems fairly extreme. The maintainers may have a better idea of what could be causing this, but I don't see how this could be on tree-sitter's end. Maybe it's worth filing an issue upstream?
from tree-sitter.
Related Issues (20)
- Relations dir:phenon photon photos:phones:, phonotactic: phonotactics:key world words* .
- Allow `tree-sitter-highlight` crate to work on source code as iterator of slices (such as ropes)
- 0.22.6 release broke semantic versioning HOT 9
- Problems with big endian / s390x HOT 1
- Char class with exception in token regexp causes WASM compilation to explode HOT 8
- AttributeError: type object 'tree_sitter.Language' has no attribute 'build_library' HOT 1
- collecting match results into a Vec in Rust returns incorrect nodes HOT 1
- language attribute lost after update test. HOT 1
- Support PEG syntax as an alternative input format? HOT 1
- Rethink the purpose of injection.combined HOT 1
- tree-sitter-cli package on npm is missing the executable HOT 4
- Lots of errors when trying to build a C++ parser HOT 4
- > **See** [section-6-contributing.md](./docs/section-6-contributing.md
- AST difference between parsing and testing HOT 4
- `generate --no-bindings` still generates `package.json` HOT 2
- [feature request][question] Is there a wrapper library for multiple grammars(eg. `tree-sitter-typescript`, `tree-sitter-go` and so on.) that can be used to implement operations for these programming languages? HOT 4
- link unavailable on introduction page HOT 1
- Parse Error: Possibly incorrectly selected parse lang HOT 3
- [rust binding] broken immutable invariant on `QueryMatch.captures` HOT 2
- Error recovery causing stack overflow HOT 1
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 tree-sitter.