Skip to content

Neovim occasional hang/freeze #456

@e7rain

Description

@e7rain

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

v0.10.1

Operating system/version

Archlinux

Actual behavior

I have noticed that nvim crashes when opening certain http files, attached is an example.

Note that the credentials inside the file are fictitious.

@endpoint=https://4ru348ru3u.execute-api.us-east-1.amazonaws.com/prod
@api_key = I9UNROdeWE4324h23uh23h4s4SDXlTdp26ilCrfpV

# INFO: SHOPIFY SELLER credentials 
@api_version=2024-07
@store_domain=reiterjerf.myshopify.com
@access_token=shpua_bafcf17a94324k23j4k314b2d1032eda7


###
# INFO: SHOPIFY SELLER list webhooks
GET https://{{store_domain}}/admin/api/{{api_version}}/webhooks.json
X-Shopify-Access-Token: {{access_token}}
Content-Type: application/json


###
# @name Get product
GET https://{{store_domain}}/admin/api/{{api_version}}/products/8884175241459.json
X-Shopify-Access-Token: {{access_token}}
Content-Type: application/json



###
# @name register-seller
POST {{endpoint}}/register-seller
X-Api-Key: {{api_key}}
Content-Type: application/json

{
  "sellerId": "shopify#{{store_domain}}",
  "storeDomain": "{{store_domain}}",
  "accessToken": "{{access_token}}"
}

###
# @name catalog-sync
POST {{endpoint}}/catalog-sync
X-Api-Key: {{api_key}}
Content-Type: application/json

{
  "sellerId": "shopify#{{store_domain}}"
}


###
# @name products-graphql
POST https://{{store_domain}}/admin/api/{{api_version}}/graphql.json
X-Shopify-Access-Token: {{access_token}}
X-REQUEST-TYPE: GraphQL

query Products($first: Int!) {
  products(first: $first) {
    nodes {
      id
      title
      category {
        id
        name
      }
    }
  }
}

{
  "first": 250
}

###
# @prompt h
GET https://example.com
Authorization: {{h}}

Expected behavior

It should open immediately. I have tried with the kulala plugin and this behavior does not occur, so I rule out any additional configuration. I change absolutely nothing and configure it as it is.

Steps to reproduce

To open the file I just try to open it from command mode with :e example.http

Other information

No response

Repro (lazy.nvim)

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        {
          lazy = false,
          "rest-nvim/rest.nvim"
        },
        {
            "nvim-treesitter/nvim-treesitter",
            build = ":TSUpdate",
            main = "nvim-treesitter.configs",
            opts = {
                ensure_installed = { "http" },
                sync_install = false,
                highlight = { enable = true },
                indent = { enable = true },
            },
        },
    },
})

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