redhat-developer / redhat-developer/yaml-language-server

ERR: scheme is missing

Open
#1,043 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-info
Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

Hi together,
When opening yaml buffers where the yaml-language-server attaches, I get an error saying "Request initialize failed, scheme is missing".
I'm on nvim v0.11.0 and configure the lsp with nvim-lspconfig

COMPLETE ERROR

Error executing vim.schedule lua callback: ...HEAD-fa46441_1/share/nvim/runtime/lu
/vim/lsp/client.lua:548: RPC[Error] code_name = InternalError, message = "Request
nitialize failed with message: [UriError]: Scheme is missing: {scheme: \"\", autho
ity: \"\", path: \"null\", query: \"\", fragment: \"\"}"
stack traceback:
        [C]: in function 'assert'
        ...HEAD-fa46441_1/share/nvim/runtime/lua/vim/lsp/client.lua:548: in functi
n ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

LSP HANDLER

["yamlls"] = function()
  require("lspconfig").yamlls.setup({
    capabilities = require("blink.cmp").get_lsp_capabilities(),
    settings = {
      yaml = {
        schemas = {
          ["https://json.schemastore.org/github-workflow.json"] = ".github/workflows/*",
          ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "docker-compose*.{yml,yaml}",
          ["https://json.schemastore.org/yamllint.json"] = "*.{yml,yaml}",
        },
      },
    },
  })
end,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests. Reproduce the failure with Neovim v0.11, the shown nvim-lspconfig handler, and a YAML buffer, then trace initialization until the missing URI scheme is identified. Done means YAML buffers initialize without the “scheme is missing” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, yaml
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.