Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
nvim-java

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

can not install nvim-java with lazyvim on termux#358

Answeredbys1n7ax
thmudev asked this question inQ&A
Discussion options

Hello all,

I am new to neovim / lazyvim and have tried to install nvim-java on termux (smartphone/arm)

The problem seems to be the lack of support for hardlinks in Termux. Does anyone have a workaround or a solution for this.

Unfortunately, I have no knowledge or experience in setting up lsp servers manually.

What I have tried myself:
(config atached)

First Error:
[ERROR Sun Feb 16 17:59:59 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=jdtls) error=spawn: tar failed with exit code 2 and signal 0.
Details:MasonInstall jdtls`

Downloading file "https://github.com/nvim-java/release-jdtls/releases/download/1.43.0/jdtls.tar.gz"…
tar: plugins/org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar: Cannot hard link to ‘plugins/org.eclipse.equinox.launcher.jar’: Permission denied

To work around this, I downloaded the jdtls.tar.gz, removed the hardlinks and uploaded it to my own server

changed the url in
./.local/share/nvim/mason/registries/github/nvim-java/mason-registry/registry.json
tohttps://some-own-server/jdtls2.tar.gz

next errors:

[INFO Sun Feb 16 17:35:00 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=jdtls) { force = true, version = "v1.37.0" } [INFO Sun Feb 16 17:35:00 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=java-debug-adapter) { force = true, version = "0.58.0" } [ERROR Sun Feb 16 17:35:00 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=jdtls) error='spawn: wget failed with exit code 8 and signal 0. \nFailed to download file "https://github.com/nvim-java/release-jdtls/releases/download/1.37.0/jdtls.tar.gz".' [ERROR Sun Feb 16 17:35:01 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=java-debug-adapter) error='Link target "/data/data/com.termux/files/home/.local/share/nvim/mason/packages/java-debug-adapter/extension/server/com.microsoft.java.debug.plugin-0.53.1.jar" does not exist.' [nvim-java-config.tar.gz](https://github.com/user-attachments/files/18815586/nvim-java-config.tar.gz)

You must be logged in to vote

try nvim-jdtls instead. I don't think you could get nvim-java working without code changes

Replies: 1 comment 2 replies

Comment options

try nvim-jdtls instead. I don't think you could get nvim-java working without code changes

You must be logged in to vote
2 replies
@thmudev
Comment options

Thank you for your answer.

I'll have to look into nvim-jdtls after all. Instead of using the comfortable lazy vim solution.

As a workaround I have now found a working but possibly less fast solution with proot-distro ubuntu under termux.

@s1n7ax
Comment options

There is lazyextra for java. Looks like it's usingget_install_path rather thanget_shared_path that we are using.

Answer selected bythmudev
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@thmudev@s1n7ax

[8]ページ先頭

©2009-2025 Movatter.jp