vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

Can not build this project since dependency error (weaklink) #1042

Closed werifu closed 6 months ago

werifu commented 6 months ago

OS: macOS 13.6.2 (22G320) (M1 Pro chip) VSCode version: Version: 1.84.2 CodeLLDB version: source code up to 05502bf

Compiler: lldb version 17.0.6; cargo 1.70.0 (ec8a8a0ca 2023-04-25); rustc 1.70.0 (90c541806 2023-05-31) Debuggee: This project

Verbose log
  

I want to contribute to this project, so I cloned this repo and wanted to run it. But when I run build in build directory following the Build section of https://github.com/vadimcn/codelldb/blob/master/BUILDING.md , an error appeared. Since the CI triggered by latest commit for weaklink 0b2873f failed, I don't know whether they are associated.

✗ make adapter
[  5%] Copying /Users/chen/Programming/rust/codelldb/formatters/__init__.py to /Users/chen/Programming/rust/codelldb/build/formatters/__init__.py
[ 11%] Copying /Users/chen/Programming/rust/codelldb/formatters/rust.py to /Users/chen/Programming/rust/codelldb/build/formatters/rust.py
[ 11%] Built target formatters
Archive:  /Users/chen/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/lldb.zip
[ 11%] Built target lldb
[ 16%] Performing build step for 'cargo_build'
    Updating crates.io index
    Updating git repository `https://github.com/vadimcn/weaklink.git`
error: failed to get `weaklink` as a dependency of package `lldb-stub v0.1.0 (/Users/chen/Programming/rust/codelldb/adapter/lldb-stub)`

Caused by:
  failed to load source for dependency `weaklink`

Caused by:
  Unable to update https://github.com/vadimcn/weaklink.git#0a21d413

Caused by:
  object not found - no match for id (0a21d4138e2b51c280ad93812316d7427504ed4e); class=Odb (9); code=NotFound (-3)
make[3]: *** [adapter/cargo_build-prefix/src/cargo_build-stamp/cargo_build-build] Error 101
make[2]: *** [adapter/CMakeFiles/cargo_build.dir/all] Error 2
make[1]: *** [adapter/CMakeFiles/adapter.dir/rule] Error 2
make: *** [adapter] Error 2
werifu commented 6 months ago

I deleted the Cargo.lock and it worked (which will create a new Cargo.lock) Then I followed https://github.com/vadimcn/codelldb/discussions/1034 and successfully ran this project