Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No native build was found for runtime=electron abi=115 platform=linuxglibc arch=x64 #71

Open
mjames-c opened this issue Mar 25, 2025 · 1 comment

Comments

@mjames-c
Copy link

mjames-c commented Mar 25, 2025

I'm attempting to use pprof-it to profile the TypeScript language server (TS v5). I get the error below which I believe means it needs to be built for the Electron runtime env:

Error: No native build was found for runtime=electron abi=115 platform=linuxglibc arch=x64
    at load.path (/home/coder/.local/lib/node_modules/pprof-it/node_modules/node-gyp-build/index.js:59:9)
    at load (/home/coder/.local/lib/node_modules/pprof-it/node_modules/node-gyp-build/index.js:19:30)
    at Object.<anonymous> (/home/coder/.local/lib/node_modules/pprof-it/node_modules/@datadog/pprof/out/src/heap-profiler-bindings.js:44:18)
    at Module._compile (node:internal/modules/cjs/loader:1529:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
    at Module.load (node:internal/modules/cjs/loader:1275:32)
    at Module._load (node:internal/modules/cjs/loader:1096:12)
    at Module.require (node:internal/modules/cjs/loader:1298:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/home/coder/.local/lib/node_modules/pprof-it/node_modules/@datadog/pprof/out/src/heap-profiler.js:19:34)

How hard would it be to add this? any suggested workarounds?

@jakebailey
Copy link
Owner

I can't really do anything about it since it's Datadog's package I depend on (Google's is basically unmaintained), however you can technically patch the package to just swap out "electron" for "node" and it should "just work", at least it has worked for me in the past when I was attempting to profile Electron-based code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants