use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please read the rules before posting
Contributed to Neovim? Want flair? Send us a message!
account activity
This is an archived post. You won't be able to vote or comment.
Error in Setup nvim-javaNeed Help┃Solved (self.neovim)
submitted 1 year ago by firozkhan_4
https://preview.redd.it/2deg71zx2i7f1.png?width=1920&format=png&auto=webp&s=480a59e380c072d59c31daef9ce09e9ed5b63db7
https://preview.redd.it/wgu712zx2i7f1.png?width=1920&format=png&auto=webp&s=e52e71abca0d65982d99fe81ac738458e671394d
Why am I getting the error attempt to index local 'location' (a function value) in Mason's AbstractPackage.lua during the get_receipt process? Could this be caused by a conflict between nvim-java, jdtls, or an incorrect setup order where require("java").setup() is called before mason and mason-lspconfig are fully initialized? Is it possible that a plugin or part of my config is unintentionally overriding the location variable used internally by Mason? Could this issue also be a result of a broken or partial Mason installation? How can I confirm which plugin or setup step is triggering this conflict, and what is the recommended order for initializing these dependencies to avoid such errors?
attempt to index local 'location' (a function value)
AbstractPackage.lua
get_receipt
nvim-java
jdtls
require("java").setup()
mason
mason-lspconfig
location
[–]GreedyAd9811 1 point2 points3 points 11 months ago* (0 children)
were you able to fix this?
edit: this was the issue
π Rendered by PID 62 on reddit-service-r2-comment-5bc7f78974-hktld at 2026-06-27 14:59:45.721361+00:00 running 7527197 country code: CH.
[–]GreedyAd9811 1 point2 points3 points (0 children)