Package Details: codelldb 1.12.2-4

Git Clone URL: https://aur.archlinux.org/codelldb.git (read-only, click to copy)
Package Base: codelldb
Description: A native debugger extension for VSCode based on LLDB. Also known as vscode-lldb (NOT lldb-vscode)
Upstream URL: https://github.com/vadimcn/codelldb
Licenses: MIT
Provides: codelldb, vscode-lldb
Submitter: bageljr
Maintainer: dmitmel
Last Packager: dmitmel
Votes: 4
Popularity: 0.94
First Submitted: 2022-04-11 20:24 (UTC)
Last Updated: 2026-07-13 02:43 (UTC)

Latest Comments

1 2 Next › Last »

dmitmel commented on 2026-07-13 02:51 (UTC)

rdnvndr: done, thanks for the suggestion

rdnvndr commented on 2026-07-12 13:19 (UTC)

Please add codelldb-launch

diff --git a/PKGBUILD b/PKGBUILD
index a49ee0a5..cefaa0dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -89,7 +89,7 @@ package() {

     install -Dm644 -t "$libdir" platform.ok

-    local file; for file in adapter/codelldb adapter/*.so; do
+    local file; for file in adapter/codelldb adapter/*.so bin/codelldb-launch; do
       install -Dm755 "$file" "$libdir/$file"
     done

dmitmel commented on 2024-12-19 00:19 (UTC)

sigurd4: What rust version are you building this package with?

sigurd4 commented on 2024-12-18 01:35 (UTC)

Cannot build:

error: cannot find macro `__cpp_closure_impl` in this scope
  --> adapter/lldb/src/sb/sbaddress.rs:9:9
   |
9  | /         cpp!(unsafe [addr as "addr_t", target as "SBTarget*"] -> SBAddress as "SBAddress" {
10 | |             return SBAddress(addr, *target);
11 | |         })
   | |__________^
   |
   = note: this error originates in the macro `cpp` (in Nightly builds, run with -Z macro-backtrace for more info)

mahor1221 commented on 2024-10-12 15:56 (UTC) (edited on 2024-10-12 16:00 (UTC) by mahor1221)

Thank you @dmitmel! I should automate testing my AUR packages so this doesn't happen again.

I've applied the patch, but I'm getting build errors when compiling the lldb crate. The problem is probably from my system, I'll investigate later. If it's working for you then all is good.

I've also made you a maintainer. Feel free to commit any change.

dmitmel commented on 2024-10-12 11:28 (UTC)

The package fails to build due to a glob not matching any files. Also the Python scripts were installed with an incorrect directory structure. Here's a patch that solves these problems:

diff --git a/PKGBUILD b/PKGBUILD
index f101a29..3a7b8bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgname=codelldb
 _pkgname="$pkgname"
 pkgver=1.11.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A native debugger extension for VSCode based on LLDB. Also known as vscode-lldb (NOT lldb-vscode)"
 arch=(x86_64 arm7h aarch64)
 url="https://github.com/vadimcn/codelldb"
@@ -27,17 +27,26 @@ build() {
 }

 package() {
-  local reset_shopt="$(shopt -p globstar)"
-  shopt -s globstar
-
   cd "$_pkgname-$pkgver"
   local libdir="$pkgdir/usr/lib/$_pkgname"

-  #https://github.com/vadimcn/codelldb/blob/v1.9.0/CMakeLists.txt#L187-L200
-  install -Dm644 -t "$libdir"             build/platform.ok
-  install -Dm755 -t "$libdir"/adapter     build/adapter/{codelldb,*.so}
-  install -Dm644 -t "$libdir"/adapter     build/adapter/scripts/**/*.py
-  install -Dm644 -t "$libdir"/formatters  build/formatters/**/*.py
+  (
+    cd build
+    shopt -s globstar nullglob
+
+    # Files that need to be installed:
+    # https://github.com/vadimcn/codelldb/blob/v1.11.0/CMakeLists.txt#L200-L213
+
+    install -Dm644 -t "$libdir" platform.ok
+
+    local file; for file in adapter/codelldb adapter/*.so; do
+      install -Dm755 "$file" "$libdir/$file"
+    done
+
+    local file; for file in adapter/scripts/**/*.py formatters/**/*.py; do
+      install -Dm644 "$file" "$libdir/$file"
+    done
+  )

   install -d "$libdir"/lldb
   ln -s -t "$libdir"/lldb /usr/{bin,lib}
@@ -46,5 +55,4 @@ package() {
   ln -s -t "$pkgdir"/usr/bin /usr/lib/"$_pkgname"/adapter/codelldb

   install -Dm644 -t "$pkgdir"/usr/share/licenses/"$_pkgname" LICENSE
-  eval "$reset_shopt"
 }

mahor1221 commented on 2022-10-05 15:51 (UTC) (edited on 2022-10-15 11:51 (UTC) by mahor1221)

After hours of searching I couldn't build the custom LLDB this package depends on (only needed when debugging Rust binaries). It's a rabbit hole which I don't want to step into it.

I suggest installing codelldb-bin to debug Rust programs

baodrate commented on 2022-07-19 21:06 (UTC)

sha256 of the current (v.1.7.2) source tarball on github is actually d818c0ffab6c52d3804fda40f2c5cd80a36567a5f1094490b3b768b34a6a1a99