Commit Graph

14 Commits

Author SHA1 Message Date
Michael Stone
d0415e5734 vscode-extensions.vadimcn.vscode-lldb: fix on Darwin
Summary:

  vscode-lldb has been broken on Darwin due to a build-time issue:

    * on Darwin, the vscode-lldb build scripts expect $HOME to exist and be
      writable, #202507

  and several runtime-issues:

    * codelldb can't find its dynamic libraries (#160874)

    * lldb-server from nixpkgs doesn't work due to missing the

        "com.apple.security.cs.debugger"

      macOS codesigning entitlement, (#38624), also with the symptom that
      tccd, the macOS "Transparency, Consent, and Control" daemon, denies
      requests it receives from vscode/codium with log messages like:

	  "AUTHREQ_CTX: msgID=..., function=<private>, service=kTCCServiceDeveloperTool, preflight=yes, query=1,"
          "Service kTCCServiceDeveloperTool does not allow prompting; returning denied."
          "AUTHREQ_RESULT: msgID=..., authValue=0, authReason=5, authVersion=1, error=(null),", etc.

    * lldb-server from nixpkgs may also provide a different CLI interface than
      codelldb expects on macOS.

    * vscode-lldb directs lldb to load rust pretty-printing scripts which need
      to be preserved through the build process in nixpkgs

Solution:

  * The build problem can be fixed by setting HOME="$(pwd)/home", as suggested
    in #202507.

  * The dynamic libraries issue can be fixed by setting LD_LIBRARY_PATH while
    wrapping codelldb

  * The permissions issue and CLI interface issue can both be fixed by using
    Xcode's debugserver,

      /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver

    on macOS, since it has the required entitlement and the expected interface.

  * Finally, the script-loading issue can be fixed by copying the required
    scripts to the location that vscode-lldb expects to find them in.

Fixes:

  * #148946: Error failed to get reply to handshake packet on x86_64-darwin
    with vscode-extensions.vadimcn.vscode-lldb

  * #160874: codelldb inside of vscode-lldb extension doesn't work

  * #202507: vscode-extensions.vadimcn.vscode-lldb fails to build on aarch64-darwin
2024-04-10 11:08:45 +02:00
V
710ddf0ba9 vscode-extensions.*: use hash attribute for SRI hashes
This is a purely syntactical change and should not result in the
recompilation of any packages.

Change-Id: I07adad25402eb0cc84307cab80b74225a11df81d
2024-04-05 23:38:06 +02:00
Marc Jakobi
35f8b6919a vscode-extensions.vadimcn.vscode-lldb: Fix python scripts for adapter 2024-02-20 22:32:22 +01:00
Weijia Wang
6afc8c2675 lldb_14: fix broken bindings again 2023-12-22 04:13:15 +01:00
Marc Jakobi
a8bb784e6d vadimcn.vscode-lldb.adapter: fix passthru adapter 2023-12-05 03:05:24 +01:00
meskill
0b3fd4b455 vscode-extensions.vadimcn.vscode-lldb: 1.9.2 -> 1.10.0 2023-12-03 07:23:12 -08:00
Theodore Ni
c15073ac0d
vscode-extensions.vadimcn.vscode-lldb: adapt update script to new nix-prefetch-github 2023-07-18 16:55:33 -07:00
Michael Pacheco
ca7381d5e2
vscode-extensions.vadimcn.vscode-lldb: Fix python script pathname error
There was a change in upstream (see vadimcn/codelldb@7a6346b5a6 ) which changes the location of the python scripts. Fixes nixos/nixpkgs#239403.

Signed-off-by: Michael Pacheco <git@michaelpacheco.org>
2023-06-29 16:09:51 -07:00
Changsheng Wu
9c16766ee0
vscode-extensions.vadimcn.vscode-lldb: 1.9.1 -> 1.9.2 (#236915)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-06-16 13:42:36 +02:00
natsukium
cf6ff11e13
vscode-extensions.vadimcn.vscode-lldb: 1.8.1 -> 1.9.1
Diff: https://github.com/vadimcn/codelldb/compare/v1.8.1...v1.9.1
2023-05-22 15:51:50 +09:00
natsukium
7f2dad03e6
vscode-extensions.vadimcn.vscode-lldb: use "buildNpmPackage" instead of "node2nix" 2023-05-20 23:32:40 +09:00
Sandro Jäckel
aad577bd30 nodejs*: normalise names to better fit other packages
Versioned package attributes are usually named like $pname_$version
eg: nodejs-14_x -> nodejs_14
2023-04-25 11:28:17 +02:00
superherointj
9ec72407a4 vscode-extensions: remove 'with' and normalize lib usage
* Remove 'with'.
  Reasoning: 451dfa6d84

* Normalize lib usage in vscode-extensions.
2023-03-18 16:40:36 -03:00
superherointj
e5005453d3
vscode-extensions: refactor of extensions (#221878)
* vscode-extensions: fix indentation for editorconfig

* vscode-extensions.chenglou92.rescript-vscode: renamed directory

* vscode-extensions.WakaTime.vscode-wakatime: rename directory

* vscode-extensions.hashicorp.terraform: rename directory

* vscode-extensions.ms-python.python: rename directory

* vscode-extensions.sumneko.lua: rename directory

* vscode-extensions.ms-vscode.cpptools: rename directory

* vscode-extensions.ms-vscode-remote.remote-ssh: rename directory

* vscode-extensions.rust-lang.rust-analyzer: rename directory

* vscode-extensions.vadimcn.vscode-lldb: rename directory

* vscode-extensions.ms-dotnettools.csharp: rename directory

* vscode-extensions.ms-vsliveshare.vsliveshare: rename directory

* vscode-extensions.ms-toolsai.jupyter: rename directory
2023-03-18 15:54:49 -03:00