eruizc-dev / jdtls-launcher

The simplest way to install and launch JDTLS
MIT License
77 stars 6 forks source link

Var keyword not recognized #22

Closed LemonPy29 closed 1 year ago

LemonPy29 commented 1 year ago

Hi there, thank you for your work, It's the only way i got jdtls to work alongside neovim. Everything seems to works fine, except for the var keyword, I'm getting the error var cannot be resolved to a type. I've tried a few things to fix it but no luck so far. My config is nothing special

NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compilado por brew@Big-Sur

Features: +acl +iconv +tui
See ":help feature-compile"

     archivo "vimrc" del sistema: "$VIM/sysinit.vim"
            predefinido para $VIM: "/usr/local/Cellar/neovim/0.8.1/share/nvim
"

Run :checkhealth for more info

openjdk 19.0.1 2022-10-18
OpenJDK Runtime Environment Homebrew (build 19.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 19.0.1, mixed mode, sharing)

Also worth mentioning that my project uses maven and the pom.xml has the proper flags to support this feature.

LemonPy29 commented 1 year ago

Nvm, somehow mvn eclipse:clean solved the issue.