Skip to content

vue-language-server: init at 2.0.21#319134

Merged
Lassulus merged 2 commits intoNixOS:masterfrom
friedow:pkgs/@vue/language-server
Jun 25, 2024
Merged

vue-language-server: init at 2.0.21#319134
Lassulus merged 2 commits intoNixOS:masterfrom
friedow:pkgs/@vue/language-server

Conversation

@friedow
Copy link
Member

@friedow friedow commented Jun 11, 2024

Description of changes

This adds the official vue-language-server (called @vue/language-server in npm) package. This is needed for example for the neovim lsp integration (https://github.com/vuejs/language-tools?tab=readme-ov-file#community-integration).

Furethermore this PR removes the deprecated nodePackages.@volar/vue-language-server.

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.11 Release Notes (or backporting 23.11 and 24.05 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.

@friedow friedow requested a review from a-kenji June 11, 2024 20:57
@friedow friedow self-assigned this Jun 11, 2024
@ofborg ofborg bot requested a review from Luflosi June 11, 2024 21:21
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Jun 11, 2024
@github-actions github-actions bot added the 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment label Jun 11, 2024
@a-kenji
Copy link
Member

a-kenji commented Jun 11, 2024

Result of nixpkgs-review pr 319134 run on x86_64-linux 1

5 packages failed to build:
  • lv_img_conv
  • modrinth-app
  • modrinth-app-unwrapped
  • postcss-cli
  • wrangler
42 packages built:
  • akkoma-frontends.akkoma-fe
  • balena-cli
  • bat-extras.prettybat
  • code-server
  • commitlint
  • concurrently
  • create-cycle-app
  • discourse
  • discourseAllPlugins
  • documenso
  • emanote
  • emanote.data
  • emanote.doc
  • emojione
  • fast-cli
  • image_optim
  • joplin
  • lemmy-ui
  • lessc
  • lighthouse
  • nodehun
  • openvscode-server
  • pscid
  • styx
  • styx.lib
  • styx.themes
  • theLoungePlugins.plugins.closepms
  • theLoungePlugins.themes.flat-blue
  • theLoungePlugins.themes.flat-dark
  • uppy-companion
  • vimPlugins.coc-docker
  • vimPlugins.coc-explorer
  • vimPlugins.coc-go
  • vimPlugins.coc-metals
  • vimPlugins.coc-pyright
  • vimPlugins.coc-sh
  • vimPlugins.coc-stylelint
  • vimPlugins.coc-sumneko-lua
  • vimPlugins.coc-tslint
  • vimPlugins.coc-vetur
  • vscode-extensions.rust-lang.rust-analyzer
  • wasm-text-gen

@lelgenio
Copy link
Contributor

Could this be done using buildNpmPackage?

@a-kenji
Copy link
Member

a-kenji commented Jun 12, 2024

Result of nixpkgs-review pr 319134 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • zerobin
  • zerobin.dist
5 packages failed to build:
  • lv_img_conv
  • modrinth-app
  • modrinth-app-unwrapped
  • postcss-cli
  • wrangler
44 packages built:
  • akkoma-frontends.akkoma-fe
  • balena-cli
  • bat-extras.prettybat
  • code-server
  • commitlint
  • concurrently
  • create-cycle-app
  • discourse
  • discourseAllPlugins
  • documenso
  • emanote (haskellPackages.emanote)
  • emanote.data (haskellPackages.emanote.data)
  • emanote.doc (haskellPackages.emanote.doc)
  • emojione
  • fast-cli
  • haskellPackages.tailwind
  • haskellPackages.tailwind.doc
  • image_optim
  • joplin
  • lemmy-ui
  • lessc
  • lighthouse
  • nodehun
  • openvscode-server
  • pscid
  • styx
  • styx.lib
  • styx.themes
  • theLoungePlugins.plugins.closepms
  • theLoungePlugins.themes.flat-blue
  • theLoungePlugins.themes.flat-dark
  • uppy-companion
  • vimPlugins.coc-docker
  • vimPlugins.coc-explorer
  • vimPlugins.coc-go
  • vimPlugins.coc-metals
  • vimPlugins.coc-pyright
  • vimPlugins.coc-sh
  • vimPlugins.coc-stylelint
  • vimPlugins.coc-sumneko-lua
  • vimPlugins.coc-tslint
  • vimPlugins.coc-vetur
  • vscode-extensions.rust-lang.rust-analyzer
  • wasm-text-gen

Copy link
Member

@a-kenji a-kenji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested basic ipc of the lsp.

@a-kenji
Copy link
Member

a-kenji commented Jun 12, 2024

That could be a good way do build it @lelgenio.
It seems it is in the npm registry: https://www.npmjs.com/package/@vue/language-server

@a-kenji
Copy link
Member

a-kenji commented Jun 12, 2024

@friedow
Please change the commit message and title of the pr to:

nodePackages.@vue/language-server: init at [VERSION]

@friedow
Copy link
Member Author

friedow commented Jun 12, 2024

  1. Should I move this into a 'standalone package' build with buildNpmPackage or not? This would differ from the other nodePackages, is that fine?
  2. I think the packages that are failing to build fail because the generate.sh script for nodePackages updates the package.lock file. This effectively updates all nodePackages, resulting in broken packages that depend on those. How do we deal with something like that in nixpkgs?
  3. The question from my note above is still open: This package should replace @volar/vue-language-server. How do we deal with deprecations in nixpkgs? Should I remove @volar/vue-language-server in another PR?

@friedow friedow changed the title pkgs: add nodePackages.@vue/language-server nodePackages.@vue/language-server: init at 2.0.21 Jun 12, 2024
@SuperSandro2000
Copy link
Member

This would differ from the other nodePackages, is that fine?

We don't want any new nodePackages as they are a pain to update and maintain.

This effectively updates all nodePackages, resulting in broken packages that depend on those. How do we deal with something like that in nixpkgs?

We don't, nodePackages is broken by design and if you care enough about a package in it, that it being broken is a problem, it should be packaged separately.

This package should replace @volar/vue-language-server. How do we deal with deprecations in nixpkgs? Should I remove @volar/vue-language-server in another PR?

Yes, same PR. See the readme in nodePackages and aliases file for node.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above comment

@friedow
Copy link
Member Author

friedow commented Jun 12, 2024

@SuperSandro2000 thanks for clarifying :), I'll package this as a separate package using buildNpmPackage then. Furthermore, in the same PR I'll remove @volar/vue-language-server. Will do that later today ;).

@friedow friedow force-pushed the pkgs/@vue/language-server branch from e9fe2ac to f08fe7b Compare June 14, 2024 21:29
@friedow friedow changed the title nodePackages.@vue/language-server: init at 2.0.21 vue-language-server: init at 2.0.21 Jun 14, 2024
@friedow
Copy link
Member Author

friedow commented Jun 14, 2024

@SuperSandro2000, @a-kenji , @lelgenio I've updated this PR according to your suggestions. This PR now includes vue-language-server (based on @vue/language-server in npm) as a standalone package build with buildNpmPackage. Furthermore, it removes the deprecated nodepackages.@volar/vue-language-server.
Would you take another look?

@lelgenio
Copy link
Contributor

You could add an alias in pkgs/development/node-packages/aliases.nix, so it still works for people using nodePackages."@volar/vue-language-server".

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Jun 14, 2024
@lelgenio
Copy link
Contributor

Result of nixpkgs-review pr 319134 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • zerobin
  • zerobin.dist
6 packages failed to build:
  • lv_img_conv
  • modrinth-app
  • modrinth-app-unwrapped
  • postcss-cli
  • vscode-js-debug
  • wrangler
48 packages built:
  • akkoma-frontends.akkoma-fe
  • balena-cli
  • bat-extras.prettybat
  • code-server
  • commitlint
  • concurrently
  • create-cycle-app
  • discourse
  • discourseAllPlugins
  • documenso
  • emanote (haskellPackages.emanote)
  • emanote.data (haskellPackages.emanote.data)
  • emanote.doc (haskellPackages.emanote.doc)
  • emojione
  • fast-cli
  • haskellPackages.tailwind
  • haskellPackages.tailwind.doc
  • image_optim
  • imapnotify
  • joplin
  • lemmy-ui
  • lessc
  • lighthouse
  • nodehun
  • openvscode-server
  • pscid
  • styx
  • styx.lib
  • styx.themes
  • theLoungePlugins.plugins.closepms
  • theLoungePlugins.plugins.giphy
  • theLoungePlugins.themes.flat-blue
  • theLoungePlugins.themes.flat-dark
  • uppy-companion
  • vimPlugins.coc-clangd
  • vimPlugins.coc-docker
  • vimPlugins.coc-explorer
  • vimPlugins.coc-go
  • vimPlugins.coc-metals
  • vimPlugins.coc-pyright
  • vimPlugins.coc-sh
  • vimPlugins.coc-stylelint
  • vimPlugins.coc-sumneko-lua
  • vimPlugins.coc-tslint
  • vimPlugins.coc-vetur
  • vscode-extensions.rust-lang.rust-analyzer
  • vue-language-server
  • wasm-text-gen

@friedow friedow force-pushed the pkgs/@vue/language-server branch from f08fe7b to e804162 Compare June 15, 2024 10:39
@friedow
Copy link
Member Author

friedow commented Jun 15, 2024

@lelgenio both done: aliases are added, nixfmt-rfc-style was executed

@friedow friedow requested a review from lelgenio June 15, 2024 10:45
@wegank wegank added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Jun 15, 2024
Copy link
Contributor

@lelgenio lelgenio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkgs/development/node-packages/overrides.nix still has a reference to the old volar package

@friedow friedow force-pushed the pkgs/@vue/language-server branch from e804162 to 6443d95 Compare June 16, 2024 06:39
@friedow friedow requested a review from lelgenio June 16, 2024 06:39
@wegank wegank removed the 12.approvals: 2 This PR was reviewed and approved by two persons. label Jun 16, 2024
@friedow friedow added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Jun 16, 2024
@friedow
Copy link
Member Author

friedow commented Jun 17, 2024

@SuperSandro2000 could you review again?

@friedow
Copy link
Member Author

friedow commented Jun 21, 2024

@SuperSandro2000, I dont wanna annoy you but could you review again please?

let
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ];
in
stdenv.mkDerivation (finalAttrs: {
Copy link
Member

@Artturin Artturin Oct 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Scrumplex this reverted your 4549773
Node2nix generates this file

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

Labels

6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants