-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Update to Electron 22 #166265
Comments
eletron22 released yesterday |
@deepak1556 Have you attempted building |
Which OS are you seeing the issue on ? Did all native modules compile successfully during |
Linux. Yes, everything was compiled successfully but there was an error in Devtools console: something about posix spawn. I have rolled back to electron-21, but can re-test again at a later time. |
Terminal works fine in my linux machine with Electron 22 branch. Can you share the errors from console ? |
Tried building vscode again, but it failed this time with [18:46:44] Starting 'vscode-linux-x64-min'...
[18:46:44] Starting clean-out-build ...
[18:46:44] Finished clean-out-build after 2 ms
[18:46:44] Starting build-web-node-paths ...
[18:46:45] Finished build-web-node-paths after 3 ms
[18:46:45] Starting compile-api-proposal-names ...
[18:46:45] Starting compilation api-proposal-names...
Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined
Unhandled Rejection at: Promise Promise {
<rejected> RuntimeError: abort(Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined). Build with -s ASSERTIONS=1 for more info.
at se (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:6761)
at k (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:4462)
at Pe (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:12582)
at c (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:10613)
at /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:10879
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:254:10
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:243:22
} reason: RuntimeError: abort(Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined). Build with -s ASSERTIONS=1 for more info.
at se (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:6761)
at k (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:4462)
at Pe (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:12582)
at c (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:10613)
at /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:10879
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:254:10
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:243:22
[18:46:45] The following tasks did not complete: vscode-linux-x64-min
[18:46:45] Did you forget to signal async completion? The issue with tree-sitter is as follows: warning Error running install script for optional dependency: /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.10.9 found at \"/usr/bin/python3.10\"
gyp WARN read config.gypi ENOENT: no such file or directory, open '/usr/include/electron-22/node/include/node/config.gypi'
gyp info spawn /usr/bin/python3.10
gyp info spawn args [
gyp info spawn args '/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/include/electron-22/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/usr/include/electron-22/node',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/usr/include/electron-22/node/$(Configuration)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter/build'
CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
AR(target) Release/obj.target/tree_sitter.a
COPY Release/tree_sitter.a
CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/binding.o
In file included from /usr/include/electron-22/node/v8-object.h:10,
from /usr/include/electron-22/node/v8-array-buffer.h:13,
from /usr/include/electron-22/node/v8.h:24,
from /usr/include/electron-22/node/node.h:79,
from ../src/binding.cc:1:
/usr/include/electron-22/node/v8-persistent-handle.h:256:44: warning: ‘template<class T> struct v8::CopyablePersistentTraits’ is deprecated: Use v8::Global instead [-Wdeprecated-declarations]
256 | using CopyablePersistent = Persistent<T, CopyablePersistentTraits<T>>;
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/electron-22/node/v8-persistent-handle.h:255:48: note: declared here
255 | struct V8_DEPRECATED(\"Use v8::Global instead\") CopyablePersistentTraits {
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:178,
from ../src/./language.h:4,
from ../src/binding.cc:3:
../../nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
55 | typedef v8::Local<v8::AccessorSignature> Sig;
| ^~~~~~~~~~~~~~~~~
../../nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
55 | typedef v8::Local<v8::AccessorSignature> Sig;
| ^
In file included from ../src/./language.h:4,
from ../src/binding.cc:3:
../../nan/nan.h:204:16: warning: ‘template<class T> struct v8::CopyablePersistentTraits’ is deprecated: Use v8::Global instead [-Wdeprecated-declarations]
204 | public v8::CopyablePersistentTraits<T> {};
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/electron-22/node/v8-object.h:10,
from /usr/include/electron-22/node/v8-array-buffer.h:13,
from /usr/include/electron-22/node/v8.h:24,
from /usr/include/electron-22/node/node.h:79,
from ../src/binding.cc:1:
/usr/include/electron-22/node/v8-persistent-handle.h:255:48: note: declared here
255 | struct V8_DEPRECATED(\"Use v8::Global instead\") CopyablePersistentTraits {
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/./language.h:4,
from ../src/binding.cc:3:
../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
../../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&)’
2544 | tpl->SetAccessor(
| ~~~~~~~~~~~~~~~~^
2545 | name
| ~~~~
2546 | , getter_
| ~~~~~~~~~
2547 | , setter_
| ~~~~~~~~~
2548 | , obj
| ~~~~~
2549 | , settings
| ~~~~~~~~~~
2550 | , attribute
| ~~~~~~~~~~~
2551 | , signature);
| ~~~~~~~~~~~~
In file included from /usr/include/electron-22/node/v8-function.h:15,
from /usr/include/electron-22/node/v8.h:33,
from /usr/include/electron-22/node/node.h:79,
from ../src/binding.cc:1:
/usr/include/electron-22/node/v8-template.h:807: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)’
807 | void SetAccessor(
| ^~~~~~~~~~~
/usr/include/electron-22/node/v8-template.h:812:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
812 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/electron-22/node/v8-template.h:814: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)’
814 | void SetAccessor(
| ^~~~~~~~~~~
/usr/include/electron-22/node/v8-template.h:819:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
819 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/binding.cc:1:
../src/binding.cc: At global scope:
/usr/include/electron-22/node/node.h:874:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
874 | (node::addon_register_func) (regfunc), \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/electron-22/node/node.h:908:3: note: in expansion of macro ‘NODE_MODULE_X’
908 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/binding.cc:25:1: note: in expansion of macro ‘NODE_MODULE’
25 | NODE_MODULE(tree_sitter_runtime_binding, InitAll)
| ^~~~~~~~~~~
make: *** [tree_sitter_runtime_binding.target.mk:139: Release/obj.target/tree_sitter_runtime_binding/src/binding.o] Error 1
make: Leaving directory '/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.15.80-gentoo
gyp ERR! command \"/usr/lib64/electron-22/electron\" \"/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter
gyp ERR! node -v v16.17.1
warning Error running install script for optional dependency: /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter-typescript: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter-typescript
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.10.9 found at \"/usr/bin/python3.10\"
gyp WARN read config.gypi ENOENT: no such file or directory, open '/usr/include/electron-22/node/include/node/config.gypi'
gyp info spawn /usr/bin/python3.10
gyp info spawn args [
gyp info spawn args '/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter-typescript/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/include/electron-22/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/usr/include/electron-22/node',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/usr/include/electron-22/node/$(Configuration)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter-typescript',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter-typescript/build'
CC(target) Release/obj.target/tree_sitter_typescript_binding/typescript/src/parser.o
In file included from ../typescript/src/parser.c:1:
../typescript/src/parser.c: In function ‘ts_lex_keywords’:
../typescript/src/tree_sitter/parser.h:135:8: warning: variable ‘eof’ set but not used [-Wunused-but-set-variable]
135 | bool eof = false; \\\n | ^~~
../typescript/src/parser.c:5342:3: note: in expansion of macro ‘START_LEXER’
5342 | START_LEXER();
| ^~~~~~~~~~~
CC(target) Release/obj.target/tree_sitter_typescript_binding/typescript/src/scanner.o
CC(target) Release/obj.target/tree_sitter_typescript_binding/tsx/src/parser.o
In file included from ../tsx/src/parser.c:1:
../tsx/src/parser.c: In function ‘ts_lex_keywords’:
../typescript/src/tree_sitter/parser.h:135:8: warning: variable ‘eof’ set but not used [-Wunused-but-set-variable]
135 | bool eof = false; \\\n | ^~~
../tsx/src/parser.c:5600:3: note: in expansion of macro ‘START_LEXER’
5600 | START_LEXER();
| ^~~~~~~~~~~
CC(target) Release/obj.target/tree_sitter_typescript_binding/tsx/src/scanner.o
CXX(target) Release/obj.target/tree_sitter_typescript_binding/bindings/node/binding.o
In file included from /usr/include/electron-22/node/v8-object.h:10,
from /usr/include/electron-22/node/v8-array-buffer.h:13,
from /usr/include/electron-22/node/v8.h:24,
from /usr/include/electron-22/node/node.h:79,
from ../bindings/node/binding.cc:2:
/usr/include/electron-22/node/v8-persistent-handle.h:256:44: warning: ‘template<class T> struct v8::CopyablePersistentTraits’ is deprecated: Use v8::Global instead [-Wdeprecated-declarations]
256 | using CopyablePersistent = Persistent<T, CopyablePersistentTraits<T>>;
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/electron-22/node/v8-persistent-handle.h:255:48: note: declared here
255 | struct V8_DEPRECATED(\"Use v8::Global instead\") CopyablePersistentTraits {
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:178,
from ../bindings/node/binding.cc:3:
../../nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
55 | typedef v8::Local<v8::AccessorSignature> Sig;
| ^~~~~~~~~~~~~~~~~
../../nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
55 | typedef v8::Local<v8::AccessorSignature> Sig;
| ^
In file included from ../bindings/node/binding.cc:3:
../../nan/nan.h:204:16: warning: ‘template<class T> struct v8::CopyablePersistentTraits’ is deprecated: Use v8::Global instead [-Wdeprecated-declarations]
204 | public v8::CopyablePersistentTraits<T> {};
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/electron-22/node/v8-object.h:10,
from /usr/include/electron-22/node/v8-array-buffer.h:13,
from /usr/include/electron-22/node/v8.h:24,
from /usr/include/electron-22/node/node.h:79,
from ../bindings/node/binding.cc:2:
/usr/include/electron-22/node/v8-persistent-handle.h:255:48: note: declared here
255 | struct V8_DEPRECATED(\"Use v8::Global instead\") CopyablePersistentTraits {
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../bindings/node/binding.cc:3:
../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
../../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&)’
2544 | tpl->SetAccessor(
| ~~~~~~~~~~~~~~~~^
2545 | name
| ~~~~
2546 | , getter_
| ~~~~~~~~~
2547 | , setter_
| ~~~~~~~~~
2548 | , obj
| ~~~~~
2549 | , settings
| ~~~~~~~~~~
2550 | , attribute
| ~~~~~~~~~~~
2551 | , signature);
| ~~~~~~~~~~~~
In file included from /usr/include/electron-22/node/v8-function.h:15,
from /usr/include/electron-22/node/v8.h:33,
from /usr/include/electron-22/node/node.h:79,
from ../bindings/node/binding.cc:2:
/usr/include/electron-22/node/v8-template.h:807: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)’
807 | void SetAccessor(
| ^~~~~~~~~~~
/usr/include/electron-22/node/v8-template.h:812:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
812 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/electron-22/node/v8-template.h:814: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)’
814 | void SetAccessor(
| ^~~~~~~~~~~
/usr/include/electron-22/node/v8-template.h:819:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’
819 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../bindings/node/binding.cc:2:
../bindings/node/binding.cc: At global scope:
/usr/include/electron-22/node/node.h:874: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]
874 | (node::addon_register_func) (regfunc), \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/electron-22/node/node.h:908:3: note: in expansion of macro ‘NODE_MODULE_X’
908 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../bindings/node/binding.cc:35:1: note: in expansion of macro ‘NODE_MODULE’
35 | NODE_MODULE(tree_sitter_typescript_binding, Init)
| ^~~~~~~~~~~
make: *** [tree_sitter_typescript_binding.target.mk:129: Release/obj.target/tree_sitter_typescript_binding/bindings/node/binding.o] Error 1
make: Leaving directory '/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter-typescript/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.15.80-gentoo
gyp ERR! command \"/usr/lib64/electron-22/electron\" \"/usr/lib64/electron-22/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/build/node_modules/tree-sitter-typescript
gyp ERR! node -v v16.17.1
Done in 16.50s. Looks like it also needs to bump nan to avoid AccessorSignatures |
Ah okay I didn't realize you are doing a full build rather than running out of sources, yeah the |
@deepak1556 Plan to support node18? |
It will happen when we update to Electron 23, not before that :) |
Adding [16:14:25] Using gulpfile /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/gulpfile.js
[16:14:25] Starting 'vscode-linux-x64-min'...
[16:14:25] Starting clean-out-build ...
[16:14:25] Finished clean-out-build after 6 ms
[16:14:25] Starting build-web-node-paths ...
[16:14:25] Finished build-web-node-paths after 5 ms
[16:14:25] Starting compile-api-proposal-names ...
[16:14:25] Starting compilation api-proposal-names...
Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined
Unhandled Rejection at: Promise Promise {
<rejected> RuntimeError: abort(Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined). Build with -s ASSERTIONS=1 for more info. |
Everything works fine for me on arch 6.1.5. Electron 22 fixes the blurriness I experience on Wayland. It'd be amazing if this get's released this month! :) |
Electron 22 will not be integrated in the January release, the upgrade is only being investigated - at least that's the plan at the moment, see Electron heading in #170413 |
@ReazerDev the plan is to provide nightly exploration builds in January milestone which will then be tested during our iteration endgame. We will push the update to Insiders in February milestone depending on the results from testing. Currently the exploration builds were blocked on #166430 (comment) which was recently addressed in |
I would speculate it all started with 0510da8 and indeed 88c8146 is the last functioning commit for me. |
@deepak1556 I see you had to revert to Electron 19 3a11b47 Are there some kind of issues with Electron 22? |
At least one is just above your message ;) |
Is one of the issues with this: #171508? |
Sorry for the silence on the update, we have been investigating the impact of V8 sandbox for our extensions over the last two weeks, you can find info on that at #177338. We have plan to move the update forward, but we will not merge the update for March 2023 milestone. |
In case anyone is interested, the error static #tsGrammar: Promise<Parser.Language> = (async () => {
await initParser;
return await Parser.Language.load(
path.resolve(__dirname, 'tree-sitter-typescript.wasm')
);
})();
static #tsxGrammar: Promise<Parser.Language> = (async () => {
await initParser;
return await Parser.Language.load(
path.resolve(__dirname, 'tree-sitter-tsx.wasm')
);
})(); Both wasm files come pre-built from @vscode/l10n-dev. Unhandled Rejection at: Promise Promise {
<rejected> Error: bad export type for `tree_sitter_typescript_external_scanner_create`: undefined
at reportUndefinedSymbols (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:19748)
at postInstantiation (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:17027)
at /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:17752
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:270:10
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:259:22
} reason: Error: bad export type for `tree_sitter_typescript_external_scanner_create`: undefined
at reportUndefinedSymbols (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:19748)
at postInstantiation (/var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:17027)
at /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/web-tree-sitter/tree-sitter.js:1:17752
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:270:10
at async /var/tmp/portage/app-editors/vscode-9999/work/vscode-9999/node_modules/@vscode/l10n-dev/dist/main.js:259:22 Lines 259 and 270 from the error look as follows: __privateAdd(ScriptAnalyzer, _tsxParser, (async () => {
await initParser;
const parser = new import_web_tree_sitter.default();
parser.setLanguage(await __privateGet(_ScriptAnalyzer, _tsxGrammar));
return parser;
})());
__privateAdd(ScriptAnalyzer, _tsxGrammar, (async () => {
await initParser;
return await import_web_tree_sitter.default.Language.load(
path.resolve(__dirname, "tree-sitter-tsx.wasm")
);
})()); In this case I have no idea, why is it trying to load a function that is absent from wasm file. Broken wasm files in @vscode/l10n-dev? PS: I've filed this issue in vscode-l10n repo |
Closing as we will be shipping E22 update with |
@deepak1556 VSCode 1.78 is out, and this bug is biting people (including me). I am getting 'bad export type for If the fix has already been shipped, can you reply to cucumber/vscode#155 and tell people what they must do to get the fix? For me, VSCode says that there are no updates available, and I am already running Electron 22. Version: 1.78.2 |
@The-BDD-Coach it needs to be addressed in tree-sitter/tree-sitter-typescript#244, you can add |
@deepak1556 I have personally wasted a week of development time trying to repair a broken installation and build VSCode 1.78+ against Electron 22, 23, and 24 only to find that you ignored several warnings from @PF4Public and merged before tree-sitter/tree-sitter-typescript#244 was resolved or even acknowledged where reported. They commented several times and you didn't pay them any attention whatsoever. You have my thanks as I task my build system with reverting to VSCode 1.77.3 and Electron 19 and I wait. |
@nethershaw our own build systems did not encounter the issue and hence action was not taken in this issue, if you are building VSCode in a custom way that is not referred in the docs then there is not much we can do to help. Please also check microsoft/vscode-l10n#104 where the issue was actually followed up on by @TylerLeonhardt . |
This is also most likely related: #182743
If I had read this out of context I would have said it smells like a big tech company who doesn't know anything about open source and completely ignores the community, distribution maintainers, etc. While it definitely doesn't apply to vscode it's still sad seeing such bug reports being so easily dismissed. |
Don't @ me. You respond to the person you ignored. |
The text was updated successfully, but these errors were encountered: