-
Notifications
You must be signed in to change notification settings - Fork 378
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
assertion failed: Marker property value is too long #2424
Comments
@mattfbacon Could you provide a project example reproducing the error? |
Cannot reproduce in VS Code using the redhat extension (the LS is broken in VS Code for a different reason but the LS at least starts properly). For a minimal project that can reproduce, create a directory and add two empty files |
I'm getting the same error. |
I've also been getting the same error with Neovim v0.9, and can't use JDTLS because of it. It also occurs with the minimal project that @mattfbacon provided (empty |
👀 What platform? Anything unique about your setup that might be a common point between us? |
I've been running on Linux (NixOS 22.11). TBH I feel like my setup would be quite unique so I'm not sure... |
Well if you are using NixOS then it should be reproducible?? |
Yeah, although I just switched so I'm not 100% familiar with the ecosystem yet. I imagine if anyone wanted to reproduce this bug they would need to be using nixpkg as well. Have you found any alternative? I've been using java-language-server but it doesnt recognize |
I think that the issue for me might be due to the length of EDIT: One of the things that I have changed is to add a |
I am having this issue as well on Windows 10 |
UPDATE: apparently this prevents jdtls from figuring out what files are project files. I'm having the same issue, it could indeed be triggered because the local java_cwd = vim.fs.dirname(
vim.fs.find({ "gradlew", ".git", "mvnw" }, { upward = true })[1]
)
local config = {
on_attach = on_attach,
capabilities = capabilities,
cmd = {
-- https://github.com/NixOS/nixpkgs/issues/232822#issuecomment-1564243667
-- `-data` argument is necessary
"jdt-language-server",
"-data", java_cwd .. "/.jdtls",
},
root_dir = java_cwd,
}
local jdtls_group = vim.api.nvim_create_augroup("jdtls", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = { "java" },
callback = function()
require "jdtls".start_or_attach(config)
end,
group = jdtls_group,
}) |
|
@mattfbacon I think it has to be unique per project, at least for neovim. I forgot where I got this idea from, but check this out mfussenegger/nvim-jdtls#459 (comment) |
We also noticed the error |
I'm trying to use JDTLS in Neovim. The project is an Android app using Gradle.
Here's the full error that I get:
The text was updated successfully, but these errors were encountered: