postgres-language-server icon indicating copy to clipboard operation
postgres-language-server copied to clipboard

`parser_codegen!()` panics

Open cospectrum opened this issue 1 year ago • 0 comments

Bug report

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Panic during parsing

.../vim/lsp/rpc.lua:770   "rpc"   "/Users/user/.cargo/bin/postgres_lsp"   "stderr"
"thread 'main' panicked at crates/parser/src/codegen.rs:3:1:
Unknown AExpr kind AexprBetween

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. git clone https://github.com/supabase-community/postgres_lsp.git && cd postgres_lsp
  2. git submodule update --init --recursive
  3. cargo xtask install (or cargo xtask install --server)
  4. edit the nvim config according to the doc
  5. open the sql file with nvim

Expected behavior

No panic

System information

  • OS: macOS
  • nvim: v0.10.0, build type: Release, LuaJIT 2.1.1713773202

cospectrum avatar Jul 02 '24 20:07 cospectrum