Skip to content
Discussion options

You must be logged in to vote

i got same error, this is because the mason using version 2
you can set the mason version to version 1
or
you can change manual in nvim-data\lazy\nvim-java\lua\java\utils\mason.lua

-- line 18
pkg:get_installed_version(function(success, version)
	if success and version == package_version then
		has_version = true
	end
end)
 
-- line 35
local installed_version
pkg:get_installed_version(function(ok, version)
	if not ok then
		return
	end
		installed_version = version
end)

to

-- line 18
if pkg:is_installed() then
	local installed_version = pkg:get_installed_version()
	if installed_version == package_version then
		has_version = true
	end
end

-- line 35
local installed_version = pkg:get_insta…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KalbarczykDev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants