Comments (3)
The error occurs because the database table and column information cannot be cached due to the inability to connect to the database. Please review the database settings.
The connection settings are incorrect. The following is correct. workspace_config
is missing.
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'sqls',
\ 'cmd': {server_info->['sqls']},
\ 'whitelist': ['sql'],
\ 'workspace_config': {
\ 'sqls': {
\ 'connections': [
\ {
\ 'driver': 'postgresql',
\ 'dataSourceName': 'host=LOCAL-IP port=5432 dbname=GTX1 user=postgres password=PASSWORD sslmode=disable',
\ },
\ ],
\ },
\ },
\ })
from sqls.
Thank you for your reply.
I'm sorry, I overlooked it.
I tried again after changing the settings, but it was still an error.
sqls seems to die.
Only sqls is used for the LSP provider.
05/15/20 16:32:35:["s:on_stdout client option on_notification() error","Vim(call):E631: ch_sendraw(): write failed","function 294_out_cb[2]..293_on_stdout[71]..211_on_notification[17]..211_handle_initialize[25]..292_callback[1]..292_next[9]..16[1]..211_ensure_conf[14]..292_callback[1]..292_next[9]..17[1]..211_ensure_open[25]..211_send_notification[7]..lsp#client#send_notification[1]..293_lsp_send[36]..async#job#send[1]..294_job_send, line 6"]
05/15/20 16:32:35:["<---(stderr)",1,"sqls",["2020/05/15 16:32:35 sqls: reading on stdin, writing on stdout",""]]
05/15/20 16:32:35:["s:on_exit",1,"sqls","exited",1]
I think the DB connection information is correct.
The location of the cause is not clear, but we will report it.
from sqls.
I solved my problem.
The cause was that the PGCLIENTENCODING environment variable was set to 'SJIS' because of the encoding of the connection destination PostgreSQL.
It worked when I changed PGCLIENTENCODING = 'UNICODE'.
Thank you for your support.
from sqls.
Related Issues (20)
- Multiple Database Support?
- Wrong formatting with comments. HOT 4
- Race condition fix? HOT 1
- sqls has been deprecated in the neovim/nvim-lspconfig HOT 1
- aliased literals and scientific notation are not parsed and formatted correctly
- Install failed withe go 1.19.2 HOT 1
- Without output with sqls HOT 1
- sqls formating removes all whitespaces HOT 2
- Nullable fields cause pointer addresses to be printed
- Formatting issue on NixOS HOT 2
- Provide password through command
- Using `lowercaseKeywords` doesn't seem to work for reserved words?
- Report table/column descriptions in hover documentation
- Installation Fails in Windows without a GCC compiler HOT 1
- Other RDBMS support HOT 3
- How to setup for sqlite3 HOT 1
- Document/Add Helix support HOT 2
- Contributing to the Project - Guidelines and Learning Resources
- Neovim Nightly with Lspconfig not working HOT 1
- MySQL: Double-quoted string values break suggestions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqls.