default build fails on ubuntu 22.04/wsl-2
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, node.js, playwright
- Lĩnh vực
- build-system
Hướng nghiên cứu
Tái hiện node ./scripts/all-npm.js i trên Ubuntu 22.04 trong WSL2 và kiểm tra các lỗi của npx playwright install-deps và tree-sitter-c-sharp trong anycode-c-sharp. Sử dụng scripts/all-npm.js làm điểm vào của bản build; công việc được xem là hoàn tất khi bản build mặc định hoàn thành mà không gặp bất kỳ lỗi cài đặt hoặc biên dịch native nào đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I tried to build the repo without any modification with build command node ./scripts/all-npm.js i, but I get the following errors (notably the message: "Cannot install dependencies for this linux distribution!")
RUNNING `npm i` for /home/user/vscode-anycode/anycode
> [email protected] postinstall
> cd client && npm install && cd ../server && npm install && cd .. && node esbuild.js
up to date, audited 208 packages in 931ms
55 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
> postinstall
> npx playwright install-deps
Cannot install dependencies for this linux distribution!
up to date, audited 296 packages in 5s
55 packages are looking for funding
run `npm fund` for details
3 vulnerabilities (1 moderate, 2 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
done building
up to date, audited 376 packages in 10s
56 packages are looking for funding
run `npm fund` for details
3 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
RUNNING `npm i` for /home/user/vscode-anycode/anycode/client
up to date, audited 208 packages in 775ms
55 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
RUNNING `npm i` for /home/user/vscode-anycode/anycode/server
> postinstall
> npx playwright install-deps
Cannot install dependencies for this linux distribution!
up to date, audited 296 packages in 1s
55 packages are looking for funding
run `npm fund` for details
3 vulnerabilities (1 moderate, 2 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
RUNNING `npm i` for /home/user/vscode-anycode/anycode-c-sharp
npm ERR! code 1
npm ERR! path /home/user/vscode-anycode/anycode-c-sharp/node_modules/tree-sitter-c-sharp
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/user/vscode-anycode/anycode-c-sharp/node_modules/tree-sitter-c-sharp/build'
npm ERR! CC(target) Release/obj.target/tree_sitter_c_sharp_binding/src/parser.o
npm ERR! CC(target) Release/obj.target/tree_sitter_c_sharp_binding/src/scanner.o
npm ERR! CXX(target) Release/obj.target/tree_sitter_c_sharp_binding/bindings/node/binding.o
npm ERR! make: Leaving directory '/home/user/vscode-anycode/anycode-c-sharp/node_modules/tree-sitter-c-sharp/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.11.4 found at "/home/hanan/.pyenv/versions/3.11.4/bin/python3"
npm ERR! gyp info spawn /home/hanan/.pyenv/versions/3.11.4/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/user/vscode-anycode/anycode-c-sharp/node_modules/tree-sitter-c-sharp/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/hanan/.cache/node-gyp/20.11.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/hanan/.cache/node-gyp/20.11.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/hanan/.cache/node-gyp/20.11.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/user/vscode-anycode/anycode-c-sharp/node_modules/tree-sitter-c-sharp',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/parser.c:1:
npm ERR! ../src/parser.c: In function ‘ts_lex_keywords’:
npm ERR! ../src/tree_sitter/parser.h:135:8: warning: variable ‘eof’ set but not used [-Wunused-but-set-variable]
npm ERR! 135 | bool eof = false; \
npm ERR! | ^~~
npm ERR! ../src/parser.c:5722:3: note: in expansion of macro ‘START_LEXER’
npm ERR! 5722 | START_LEXER();
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../../nan/nan.h:178,
npm ERR! from ../bindings/node/binding.cc:3:
npm ERR! ../../nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
npm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR! | ^~~~~~~~~~~~~~~~~
npm ERR! ../../nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
npm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR! | ^
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)’:
npm ERR! ../../nan/nan.h:2544:19: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’
npm ERR! 2544 | tpl->SetAccessor(
npm ERR! | ~~~~~~~~~~~~~~~~^
npm ERR! 2545 | name
npm ERR! | ~~~~
npm ERR! 2546 | , getter_
npm ERR! | ~~~~~~~~~
npm ERR! 2547 | , setter_
npm ERR! | ~~~~~~~~~
npm ERR! 2548 | , obj
npm ERR! | ~~~~~
npm ERR! 2549 | , settings
npm ERR! | ~~~~~~~~~~
npm ERR! 2550 | , attribute
npm ERR! | ~~~~~~~~~~~
npm ERR! 2551 | , signature);
npm ERR! | ~~~~~~~~~~~~
npm ERR! In file included from /home/hanan/.cache/node-gyp/20.11.0/include/node/v8-function.h:15,
npm ERR! from /home/hanan/.cache/node-gyp/20.11.0/include/node/v8.h:33,
npm ERR! from /home/hanan/.cache/node-gyp/20.11.0/include/node/node.h:73,
npm ERR! from ../bindings/node/binding.cc:2:
npm ERR! /home/hanan/.cache/node-gyp/20.11.0/include/node/v8-template.h:809:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm ERR! 809 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! /home/hanan/.cache/node-gyp/20.11.0/include/node/v8-template.h:814:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
npm ERR! 814 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/hanan/.cache/node-gyp/20.11.0/include/node/v8-template.h:816:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm ERR! 816 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! /home/hanan/.cache/node-gyp/20.11.0/include/node/v8-template.h:821:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
npm ERR! 821 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../bindings/node/binding.cc: At global scope:
npm ERR! /home/hanan/.cache/node-gyp/20.11.0/include/node/node.h:1172:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm ERR! 1172 | (node::addon_register_func) (regfunc), \
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/hanan/.cache/node-gyp/20.11.0/include/node/node.h:1206:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR! 1206 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ../bindings/node/binding.cc:26:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR! 26 | NODE_MODULE(tree_sitter_c_sharp_binding, Init)
npm ERR! | ^~~~~~~~~~~
npm ERR! make: *** [tree_sitter_c_sharp_binding.target.mk:117: Release/obj.target/tree_sitter_c_sharp_binding/bindings/node/binding.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Linux 5.15.146.1-microsoft-standard-WSL2
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/user/vscode-anycode/anycode-c-sharp/node_modules/tree-sitter-c-sharp
npm ERR! gyp ERR! node -v v20.11.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /home/hanan/.npm/_logs/2024-01-31T00_27_07_401Z-debug-0.log
node:child_process:965
throw err;
^
Error: Command failed: npm i
at checkExecSyncError (node:child_process:890:11)
at Object.execSync (node:child_process:962:15)
at runNpm (/home/user/vscode-anycode/scripts/all-npm.js:14:5)
at Object.<anonymous> (/home/user/vscode-anycode/scripts/all-npm.js:25:3)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 23126,
stdout: null,
stderr: null
}
Node.js v20.11.0
- Ngôn ngữ chính
- JavaScript
- Star
- 387
- Fork
- 47
- Merge trung bình
- 7 giờ 18 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-anycode
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/vscode-anycode#185 ·
-
Make comment blocks foldableĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/vscode-anycode#186 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoft/vscode-anycode#149 ·
-
Usage examplesĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
microsoft/vscode-anycode#128 ·
-
Localize this extension using the Localization pipelineCó thể làm lại được @jrieken đã nhận 1031 ngày trước và không có pull request nào đang mở. Đang mởfeature-request
microsoft/vscode-anycode#77 · 2 bình luận · 1 người được giao ·
Tất cả issue của microsoft/vscode-anycode
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
zmo2s/agent-toolbox#23 ·
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inferenceCó thể đã có người làm @alok-108 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/playwright#43263 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug traffic
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 74/100