Skip to content
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

Random Occurrence of Access Error #497

Open
NeoSahadeo opened this issue Dec 11, 2024 · 0 comments
Open

Random Occurrence of Access Error #497

NeoSahadeo opened this issue Dec 11, 2024 · 0 comments

Comments

@NeoSahadeo
Copy link

NeoSahadeo commented Dec 11, 2024

Problem
Inconsistent server startup. 1 in 20 chance of this error occurring whenever I open nvim. It started recently after I ran a lazy update.

The error in question

[lspconfig] Cannot access configuration for tsserver. Ensure this server is listed in `server_configurations.md` or added as a custom ser
ver.
[lspconfig] Cannot access configuration for pylsp. Ensure this server is listed in `server_configurations.md` or added as a custom server
.
[lspconfig] Cannot access configuration for html. Ensure this server is listed in `server_configurations.md` or added as a custom server.
[lspconfig] Cannot access configuration for cssmodules_ls. Ensure this server is listed in `server_configurations.md` or added as a custo
m server.
[lspconfig] Cannot access configuration for clangd. Ensure this server is listed in `server_configurations.md` or added as a custom serve
r.
[lspconfig] Cannot access configuration for cssls. Ensure this server is listed in `server_configurations.md` or added as a custom server
.
[lspconfig] Cannot access configuration for lua_ls. Ensure this server is listed in `server_configurations.md` or added as a custom serve
r.

My lsp config

return {
	'neovim/nvim-lspconfig',
	dependencies = {
		'williamboman/mason.nvim',
		'williamboman/mason-lspconfig.nvim',
	},
	init = function()
		require('mason').setup()
		require('mason-lspconfig').setup({})

		local capabilities = require('cmp_nvim_lsp').default_capabilities()
		require('mason-lspconfig').setup_handlers({
			function(server_name)
				require('lspconfig')[server_name].setup({
					capabilities = capabilities,
				})
			end,
			-- ['godot'] = function()
			-- 	require('lspconfig').gdscript.setup({
			-- 		name = 'godot',
			-- 		cmd = vim.lsp.rpc.connect('127.0.0.1', '6005'),
			-- 	})
			-- end,
		})
	end,
}

I appreciate any help on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant