@xiota: I've fixed this by applying a patch. Now this package can be built via the latest version of nodejs.
Search Criteria
Package Details: neovim-coc 0.0.82-7
Package Actions
| Git Clone URL: | https://aur.archlinux.org/neovim-coc.git (read-only, click to copy) |
|---|---|
| Package Base: | neovim-coc |
| Description: | Intellisense engine for Vim8 & Neovim, full language server protocol support as VSCode |
| Upstream URL: | https://github.com/neoclide/coc.nvim |
| Keywords: | coc.nvim |
| Licenses: | MIT |
| Conflicts: | neovim-coc |
| Provides: | neovim-coc |
| Submitter: | sainnhe |
| Maintainer: | sainnhe (xiota) |
| Last Packager: | sainnhe |
| Votes: | 8 |
| Popularity: | 0.000000 |
| First Submitted: | 2020-07-26 04:23 (UTC) |
| Last Updated: | 2025-03-15 04:21 (UTC) |
Dependencies (6)
- neovim (nvim-with-restricted-modeAUR, neovim-nightlyAUR, neovim-gitAUR, neovim-nightly-binAUR)
- nodejs (nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogenAUR, nodejs-lts-iron, nodejs-lts-jod, nodejs-lts-krypton)
- yarn (yarn-berryAUR, yarn-pnpm-corepackAUR, corepackerAUR) (make)
- npm (python-nodejs-wheelAUR, corepackerAUR) (optional) – for installing coc extensions
- watchmanAUR (watchman-gitAUR, watchman-binAUR) (optional) – for workspace_didChangeWatchedFiles feature
- yarn (yarn-berryAUR, yarn-pnpm-corepackAUR, corepackerAUR) (optional) – for installing coc extensions
Required by (37)
- neovim-coc-clangd-git
- neovim-coc-cmake-git
- neovim-coc-css-git
- neovim-coc-deno-git
- neovim-coc-diagnostic-git
- neovim-coc-dictionary-git
- neovim-coc-emoji-git
- neovim-coc-eslint-git
- neovim-coc-explorer-git
- neovim-coc-flutter-git
- neovim-coc-git-git
- neovim-coc-go-git
- neovim-coc-highlight-git
- neovim-coc-html-git
- neovim-coc-htmlhint-git
- neovim-coc-java-git
- neovim-coc-json-git
- neovim-coc-lists-git
- neovim-coc-marketplace-git
- neovim-coc-pairs-git
- Show 17 more...
Sources (2)
sainnhe commented on 2025-03-15 04:22 (UTC)
xiota commented on 2025-03-09 18:25 (UTC) (edited on 2025-03-09 18:27 (UTC) by xiota)
@sainnhe Basic way to deal with old versions of Node is to use aur/nvm (as makedep). Requires setting up some environment variables before use. Look at another package that uses it for details.
sainnhe commented on 2025-03-09 13:43 (UTC)
@int: Sorry but I have no idea on how to fix this bug. This package can be built via nodejs 18, but nodejs 18 has already been removed from the official repository, and I didn't find an alternative package on AUR.
v0.0.82 is released in 2022, and it lacks a lot of important fixes and features compared to the master branch. I'd suggest you to switch to devel package like neovim-coc-git at present, or if you have some ideas on how to fix this problem, feel free to inform me.
int commented on 2025-03-08 20:44 (UTC) (edited on 2025-03-08 20:46 (UTC) by int)
I get an error on building the package with nodejs-lts-iron 20.18.3:
error eslint-plugin-jsdoc@39.2.8: The engine "node" is incompatible with this module. Expected version "^14 || ^16 || ^17 || ^18". Got "20.18.3"
sainnhe commented on 2023-02-03 01:34 (UTC)
@yan12125: Thanks! Should be fixed now.
yan12125 commented on 2023-02-02 03:55 (UTC)
0.0.82-4 still fails to build in clean chroots. Mind to apply my patch mentioned below?
yan12125 commented on 2022-12-04 10:32 (UTC) (edited on 2022-12-09 19:46 (UTC) by yan12125)
Got a failure with clean chroots (extra-x86_64-build)
:: nodejs-lts-gallium and nodejs are in conflict. Remove nodejs? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nodejs-lts-gallium and nodejs are in conflict
Moving nodejs to depends= in package() fixes it. Kind of dirty, though.
diff --git a/PKGBUILD b/PKGBUILD
index efc45b1..6c4d83c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgdesc='Intellisense engine for Vim8 & Neovim, full language server protocol su
arch=('any')
url='https://github.com/neoclide/coc.nvim'
license=('MIT')
-depends=('neovim' 'nodejs')
+depends=('neovim')
optdepends=('npm: for installing coc extensions'
'yarn: for installing coc extensions'
'watchman: for workspace_didChangeWatchedFiles feature')
@@ -24,6 +24,8 @@ build() {
}
package() {
+ depends+=('nodejs')
+
cd "${srcdir}/coc.nvim-${_hash}"
nvim -es --cmd ":helptags doc" --cmd ":q"
find autoload build data doc package.json plugin -type f -exec \
sainnhe commented on 2022-12-02 15:08 (UTC)
@yan12125: Should be fixed now. nodejs-lts-gallium is required for building this package, but you can still switch to community/nodejs after successfully building this package.
yan12125 commented on 2022-12-02 12:42 (UTC)
Thanks for the update. I got an error with community/nodejs 19.2.0-1:
error eslint-plugin-jsdoc@39.2.8: The engine "node" is incompatible with this module. Expected version "^14 || ^16 || ^17 || ^18". Got "19.2.0"
Upstream fixes it with https://github.com/neoclide/coc.nvim/commit/79152e0062dc0192c0f64fb2849899547a65bcfe. Could you consider backporting it or use older nodejs in depends?
sainnhe commented on 2022-12-01 15:15 (UTC)
Thanks! I've fixed the commit hash, the version should be 0.0.82 now.
Pinned Comments
sainnhe commented on 2021-02-19 06:18 (UTC) (edited on 2023-01-31 13:09 (UTC) by sainnhe)
Note: Execute
:packadd coc.nvimto load coc.nvim.I created 4 packages for coc.nvim, you can install one of them according to your preference:
Note that the development of the release branch often lags behind the master branch.
For feature
workspace_didChangeWatchedFilesto work, you'll need to install watchman, see this wiki page for more information.Coc uses either
npmoryarnto install extensions, so if you want to install coc extensions using:CocInstallprovided by coc, you'll need to install one of them.The
:CocInstallcommand installs extensions to~/.config/cocthat are only available for current user. If you want to install the extensions to/usr/sharethat are available for all users, I created some packages for some popular extensions, you can consider to install them from AUR. By this way, you don't need to installnpmoryarn.Due to my lack of personal time, I only created the development versions of these packages with
-gitpostfix.In addition, I selected some extensions that I think are very basic, you can consider to install them: neovim-coc-extras-meta-git
If you need an extension that is not in AUR currently, leave a comment here and I'll try to create a package for it when I have time.