Skip to content

Commit c67c1d2

Browse files
authored
fix: release windows binaries with .exe (#670)
for: #619 will open a pr for mason to add the missing `.exe` after the next release.
1 parent e9129ea commit c67c1d2

2 files changed

Lines changed: 57 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ jobs:
103103
run: |
104104
mkdir dist
105105
# deprecated
106-
cp target/${{ matrix.config.target }}/release/postgrestools.exe ./dist/postgrestools_${{ matrix.config.target }}
107-
cp target/${{ matrix.config.target }}/release/postgres-language-server.exe ./dist/postgres-language-server_${{ matrix.config.target }}
106+
cp target/${{ matrix.config.target }}/release/postgrestools.exe ./dist/postgrestools_${{ matrix.config.target }}.exe
107+
cp target/${{ matrix.config.target }}/release/postgres-language-server.exe ./dist/postgres-language-server_${{ matrix.config.target }}.exe
108108
109109
- name: 👦 Name the Binary
110110
if: matrix.config.os != 'windows-2022'

docs/guides/ide_setup.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,61 @@ The language server is available on the [VSCode Marketplace](https://marketplace
88

99
## Neovim
1010

11-
You will have to install `nvim-lspconfig`, and follow the [instructions](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#postgres_lsp).
11+
### Installation via Mason (Recommended)
12+
13+
The easiest way to install the language server is via [Mason](https://github.com/williamboman/mason.nvim):
14+
15+
```vim
16+
:MasonInstall postgres-language-server
17+
```
18+
19+
Then configure `nvim-lspconfig` to use it:
20+
21+
```lua
22+
require('lspconfig').postgres_lsp.setup{}
23+
```
24+
25+
### Manual Installation
26+
27+
1. Download the binary for your platform from the [releases page](https://github.com/supabase-community/postgres-language-server/releases)
28+
2. Place it in your `$PATH`
29+
3. Configure `nvim-lspconfig`:
30+
31+
```lua
32+
require('lspconfig').postgres_lsp.setup{
33+
cmd = { "postgres-language-server", "lsp-proxy" },
34+
}
35+
```
36+
37+
For more details, see the [nvim-lspconfig documentation](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#postgres_lsp).
38+
39+
### Troubleshooting
40+
41+
If the language server isn't working:
42+
43+
1. **Check that the binary is executable:**
44+
```bash
45+
which postgres-language-server
46+
postgres-language-server --version
47+
```
48+
49+
2. **Check LSP status in Neovim:**
50+
```vim
51+
:LspInfo
52+
```
53+
This shows if the server is attached to your buffer.
54+
55+
3. **Check the logs:**
56+
```vim
57+
:LspLog
58+
```
59+
Look for errors related to `postgres_lsp`.
60+
61+
4. **Verify your file is recognized as SQL:**
62+
```vim
63+
:set filetype?
64+
```
65+
Should output `filetype=sql` for `.sql` files.
1266

1367
## Emacs
1468

0 commit comments

Comments
 (0)