Package Details: solidity-language-server 0.8.2-2

Git Clone URL: https://aur.archlinux.org/solidity-language-server.git (read-only, click to copy)
Package Base: solidity-language-server
Description: A language server for the Solidity programming language.
Upstream URL: https://github.com/NomicFoundation/hardhat-vscode
Licenses: MIT
Submitter: kalex
Maintainer: kalex
Last Packager: kalex
Votes: 0
Popularity: 0.000000
First Submitted: 2023-05-15 20:24 (UTC)
Last Updated: 2024-05-05 09:37 (UTC)

Latest Comments

MarsSeed commented on 2024-05-04 19:19 (UTC)

Currently the built package does not depend on anything (has an empty depends array.)

That's why namcap complains with an ERROR designation.

Better to add nodejs to depends=(), to ensure anyone who installs this also gets that runtime.

kalex commented on 2024-05-04 15:23 (UTC) (edited on 2024-05-04 15:24 (UTC) by kalex)

@MarsSeed

I'm not sure about the package not working if nodejs is missing the depends array. NPM itself already depends on it. It may, however, be a bad practice to rely on that.

Regarding the namcap errors, a patch would be appreciated. My time constraints right now are tight, sorry about that.

MarsSeed commented on 2024-05-04 07:54 (UTC)

Most importantly, this does not work upon installation if depends=nodejs is missing.

MarsSeed commented on 2024-05-04 07:53 (UTC) (edited on 2024-05-04 07:55 (UTC) by MarsSeed)

Please address the issues reported by Arch/extra/namcap package analysis (excerpt):

$ namcap -i solidity-language-server-0.8.2-1-any.pkg.tar.zst

Checking solidity-language-server-0.8.2-1-any.pkg.tar.zst
ERROR: ELF file ('usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/slang-linux-x64-gnu/index.linux-x64-gnu.node') found in an 'any' package.
ERROR: ELF file ('usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu/solidity-analyzer.linux-x64-gnu.node') found in an 'any' package.
WARN: ELF file ('usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/slang-linux-x64-gnu/index.linux-x64-gnu.node') lacks PIE.
WARN: ELF file ('usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu/solidity-analyzer.linux-x64-gnu.node') lacks PIE.
ERROR: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/solidity-language-server/ or switching to common license identifiers. Found 0/1 required license files.
WARN: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/slang-linux-x64-gnu/index.linux-x64-gnu.node')
WARN: Unused shared library '/usr/lib/libdl.so.2' by file ('usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/slang-linux-x64-gnu/index.linux-x64-gnu.node')
WARN: Unused shared library '/usr/lib/libpthread.so.0' by file ('usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu/solidity-analyzer.linux-x64-gnu.node')
ERROR: Dependency glibc detected and not included (libraries ['usr/lib/libc.so.6', 'usr/lib/libdl.so.2', 'usr/lib/ld-linux-x86-64.so.2', 'usr/lib/libpthread.so.0'] needed in files ['usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu/solidity-analyzer.linux-x64-gnu.node', 'usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/slang-linux-x64-gnu/index.linux-x64-gnu.node'])
ERROR: Dependency nodejs detected and not included (programs ['node'] needed in scripts ['usr/lib/node_modules/@nomicfoundation/solidity-language-server/out/index.js'])
ERROR: Dependency gcc-libs detected and not included (libraries ['usr/lib/libgcc_s.so.1'] needed in files ['usr/lib/node_modules/@nomicfoundation/solidity-language-server/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu/solidity-analyzer.linux-x64-gnu.node'])
INFO: Depends as namcap sees them: depends=(glibc nodejs gcc-libs)