Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

LSP is not respecting thefiles.ignore directive #439

Open
Assignees
juleswritescode
Labels
bugSomething isn't working
@seandstewart

Description

@seandstewart

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched theDocs, GitHubDiscussions, andDiscord.

Describe the bug

I'm using the Zed.dev editor and thehttps://github.com/LoamStudios/zed-postgres-language-server extension with the following configuration in mypostgrestools.jsonc file:

{"$schema":"https://pgtools.dev/0.8.1/schema.json","extends": [],"vcs": {"enabled":true,"clientKind":"git","useIgnoreFile":true  },"files": {"ignore": ["**/mysql*/*.sql"],"include": ["**/postgres*/*.sql"]  },"linter": {"enabled":false,"rules": {"recommended":true    }  },"db": {"host":"127.0.0.1","port":5432,"username":"postgres","password":"","database":"mydb","connTimeoutSecs":10  }}

I'm getting the lint hints successfully, however it seems like thefiles.ignore directive is not being respected - I receive numerous syntax errors for any files which match the glob pattern in that setting.

Here's a sampled response for one such file:

{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params": {"uri":"file:///Users/seanstewart/project/myproject/.docker-init/mysql/init.sql","diagnostics": [      {"range": {"start": {"line":0,"character":0 },"end": {"line":0,"character":39 }        },"severity":1,"code":"syntax","source":"pg","message":"Invalid statement: syntax error at or near\"NOT\""      },      {"range": {"start": {"line":2,"character":0 },"end": {"line":8,"character":2 }        },"severity":1,"code":"syntax","source":"pg","message":"Invalid statement: syntax error at or near\"AUTO_INCREMENT\""      },      {"range": {"start": {"line":10,"character":0 },"end": {"line":19,"character":2 }        },"severity":1,"code":"syntax","source":"pg","message":"Invalid statement: syntax error at or near\"AUTO_INCREMENT\""      }    ],"version":0  }}

Expected behavior

I would expect to see this file ignored by the LSP.

Metadata

Metadata

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


    [8]ページ先頭

    ©2009-2025 Movatter.jp