Did you check the logs in console (Ctrl+` or select View → Show Console)?
Yes to everything
Issue Type
Feature Request |
Bug/Error | x
Question |
Other
Description
Im trying to execute, but get KeyError : 'psql'.
My current setup connection:
{
"connections": {
"Connection PostgreSQL": {
"type" : "psql",
"host" : "127.0.0.1",
"port" : 5432,
"database": "test",
"username": "postgres",
// password is optional (setup "pgpass.conf" file instead)
"password": "root",
"encoding": "utf-8"
}
},
"default": null
}
Version
SQLTools Version: v0.9.9
OS: WINDOWS
RDBMS: PostGreSQL
You can get this information by executing ST: About from Sublime Command Palette.
Steps to Reproduce (For bugfixes)
ctrl + e, ctrl +e
view console
message is shown.
Expected behavior:
For it to execute
Actual behavior:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 1036, in run
return self.run()
File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 482, in run
ST.selectConnection()
File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 359, in selectConnection
ST.connectionList = getConnections()
File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 96, in getConnections
connectionsObj[name] = createConnection(name, config, settings=settings.all())
File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 112, in createConnection
newConnection = Connection(name, config, settings=settings)
File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLToolsAPI\Connection.py", line 71, in init
self.cli = settings.get('cli')[options['type']]
KeyError: 'psql'
Feature Request | Bug/Error | x Question | Other
Description
Im trying to execute, but get KeyError : 'psql'. My current setup connection: { "connections": { "Connection PostgreSQL": { "type" : "psql", "host" : "127.0.0.1", "port" : 5432, "database": "test", "username": "postgres", // password is optional (setup "pgpass.conf" file instead) "password": "root", "encoding": "utf-8" } }, "default": null }
Version
Steps to Reproduce (For bugfixes)
Expected behavior: For it to execute
Actual behavior: Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 1036, in run return self.run() File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 482, in run ST.selectConnection() File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 359, in selectConnection ST.connectionList = getConnections() File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 96, in getConnections connectionsObj[name] = createConnection(name, config, settings=settings.all()) File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLTools.py", line 112, in createConnection newConnection = Connection(name, config, settings=settings) File "C:\Users\kenny\AppData\Roaming\Sublime Text 3\Packages\SQLTools\SQLToolsAPI\Connection.py", line 71, in init self.cli = settings.get('cli')[options['type']] KeyError: 'psql'