Skip to content

[BUG] Incorrect errors in LSPΒ #842

@uroybd

Description

@uroybd

Describe the bug
Let's consider this example:

### 

# @name LOGIN

POST {{API_URL}}/auth/signin HTTP/1.1
Content-Type: application/json

{
  "email": "{{USERNAME}}",
  "password": "{{PASSWORD}}"
}

###

# @name WS_DETAILS
GET {{API_URL}}/currentWorkspace
Authorization: Bearer {{LOGIN.response.body.*}}


The {{LOGIN.response.body.*}} generates an error in diagnostic: Parsing error in header.

Check health


==============================================================================
kulala:                                                             4 ⚠️  2 ❌

System: ~
- {OS} Darwin 25.3.0
- {Neovim} version 0.11.6
- {kulala.nvim} version 5.3.4

Tools: ~
- βœ… OK {cURL} found: /usr/bin/curl (version: 8.7.1)
- ❌ ERROR {gRPCurl} not found
- ❌ ERROR {websocat} not found
- βœ… OK {openssl} found: /opt/homebrew/bin/openssl (version: 3.6.1)
- βœ… OK {NPM} found: /Users/meghnaad/.local/state/fnm_multishells/72144_1772119979235/bin/npm (version: unknown)

Formatters: ~
- βœ… OK {application/graphql-response+json} formatter: jq .
- ⚠️ WARNING {application/lua} formatter not found
- ⚠️ WARNING {application/javascript} formatter not found
- ⚠️ WARNING {text/html} formatter not found
- ⚠️ WARNING {application/graphql} formatter not found
- βœ… OK {application/xml} formatter: xmllint --format -
- βœ… OK {application/json} formatter: jq .

To Reproduce
Steps to reproduce the behaviour:

  1. Copy the example mentioned above
  2. Open that example in a properly set up Kulala environment.
  3. You can see the errors.

Expected behaviour
Those variable interpolations shouldn't be flagged as errors.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions