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

openvscode-server: 1.85.1 -> 1.87.1 #298305

Merged
merged 1 commit into from
Mar 23, 2024
Merged

Conversation

ck3d
Copy link
Contributor

@ck3d ck3d commented Mar 23, 2024

Description of changes

update to latest version

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot requested review from ghuntley, dguenther and emilytrau March 23, 2024 08:36
@drupol drupol merged commit 4f08de1 into NixOS:master Mar 23, 2024
26 of 27 checks passed
@Rucadi
Copy link
Contributor

Rucadi commented Mar 28, 2024

This is not compiling, @ck3d a:

nix run nixpkgs#openvscode-server

returns the error:

rucadi@Rucadi:~$ nix run nixpkgs#openvscode-server
warning: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
warning: Ignoring setting 'impure-env' because experimental feature 'configurable-impure-env' is not enabled
error: builder for '/nix/store/sza40yyfjsvr0gnjdp92alrm11sqwmxx-openvscode-server-1.87.1.drv' failed with exit code 1;
       last 25 log lines:
       > npm ERR! ../node_modules/node-addon-api/napi-inl.h:3805:41:   required from 'static void Napi::InstanceWrap<T>::AttachPropData(napi_env, napi_value, const napi_property_descriptor*) [with T = node_kerberos::KerberosServer; napi_env = napi_env__*; napi_value = napi_value__*]'
       > npm ERR! ../node_modules/node-addon-api/napi-inl.h:4211:24:   required from 'static Napi::Function Napi::ObjectWrap<T>::DefineClass(Napi::Env, const char*, size_t, const napi_property_descriptor*, void*) [with T = node_kerberos::KerberosServer; size_t = long unsigned int]'
       > npm ERR! ../node_modules/node-addon-api/napi-inl.h:4224:21:   required from 'static Napi::Function Napi::ObjectWrap<T>::DefineClass(Napi::Env, const char*, const std::initializer_list<Napi::ClassPropertyDescriptor<T> >&, void*) [with T = node_kerberos::KerberosServer]'
       > npm ERR! ../src/kerberos.cc:95:20:   required from here
       > npm ERR! ../node_modules/node-addon-api/napi-inl.h:64:47: error: invalid conversion from 'napi_finalize' {aka 'void (*)(napi_env__*, void*, void*)'} to 'node_api_nogc_finalize' {aka 'void (*)(const napi_env__*, void*, void*)'} [-fpermissive]
       > npm ERR!    64 |   status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr);
       > npm ERR!       |                                               ^~~~~~~~~
       > npm ERR!       |                                               |
       > npm ERR!       |                                               napi_finalize {aka void (*)(napi_env__*, void*, void*)}
       > npm ERR! /nix/store/z5kba7kzgam364xkaxqzdhxjadh2mbqp-nodejs-18.20.0/include/node/js_native_api.h:516:43: note:   initializing argument 4 of 'napi_status napi_add_finalizer(napi_env, napi_value, void*, node_api_nogc_finalize, void*, napi_ref__**)'
       > npm ERR!   516 |                    node_api_nogc_finalize finalize_cb,
       > npm ERR!       |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
       > npm ERR! make: *** [kerberos.target.mk:110: Release/obj.target/kerberos/src/kerberos.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> (/nix/store/z5kba7kzgam364xkaxqzdhxjadh2mbqp-nodejs-18.20.0/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 "/nix/store/z5kba7kzgam364xkaxqzdhxjadh2mbqp-nodejs-18.20.0/bin/node" "/nix/store/z5kba7kzgam364xkaxqzdhxjadh2mbqp-nodejs-18.20.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
       > npm ERR! gyp ERR! cwd /build/source/remote/node_modules/kerberos
       > npm ERR! gyp ERR! node -v v18.20.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: /build/source/.npm/_logs/2024-03-28T17_06_36_821Z-debug-0.log
       >
       For full logs, run 'nix-store -l /nix/store/sza40yyfjsvr0gnjdp92alrm11sqwmxx-openvscode-server-1.87.1.drv'.

@drupol
Copy link
Contributor

drupol commented Mar 28, 2024

The build was passing, which architecture are you using?

@Rucadi
Copy link
Contributor

Rucadi commented Mar 28, 2024

I'm using x86-64, could replicate in two different machines, both running ubuntu.

May be related: node-ffi-napi/node-ffi-napi#267

@drupol
Copy link
Contributor

drupol commented Mar 28, 2024

Got the same issue too (x86_64-linux) :(

@Rucadi
Copy link
Contributor

Rucadi commented Mar 28, 2024

Commit b5e930a seems to be the issue. #299328

@drupol
Copy link
Contributor

drupol commented Mar 28, 2024

Maybe it's a bug in openvscode ?

@Rucadi
Copy link
Contributor

Rucadi commented Mar 28, 2024

Maybe it's a bug in openvscode ?

It seems like it's a bug with ffi-napi, which seems to be already being tracked here: nodejs/node#52240 (I'm not a javascript guy, so I'm only guessing)

Probably could make sense to revert the PR #299328 ?

This may not be the only package affected.

@drupol
Copy link
Contributor

drupol commented Mar 28, 2024

@marsam Are you OK reverting it ?

@drupol
Copy link
Contributor

drupol commented Mar 28, 2024

I guess we can proceed @Rucadi , do you want to provide the revert PR ?

@marsam
Copy link
Contributor

marsam commented Mar 28, 2024

Are you OK reverting it ?

Yes, it's fine to revert it. Sorry about that!

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

Successfully merging this pull request may close these issues.

4 participants