kj-9 / sqltools-redshift-driver

redshift driver for vscode sqltools extention
MIT License
4 stars 1 forks source link

Syntax Error Unexpected token ; when running #8

Open amarshall-deckers opened 9 months ago

amarshall-deckers commented 9 months ago

I get this error when I try and open sqltools and connect to a redshift instance:

[1696984106499] INFO (ext): SQLTools is starting [1696984106501] INFO (ext): initializing language client... [1696984106502] INFO (ext): Detecting node path (if this stalls check Terminal view for the stuck session and kill it)... ns: "lc" [1696984107917] INFO (ext): Node runtime auto-detected. Using /usr/bin/node. ns: "lc" [1696984107920] INFO (ext): Registering client for languages [{"scheme":"sqltools"},{"language":"sql","scheme":"untitled"},{"language":"sql","scheme":"file"},{"language":"sql","scheme":"sqltools"}] ns: "lc" [1696984107931] INFO (ext): loading plugins... [1696984107932] INFO (ext): registering Formatter Plugin. plugin: { "name": "Formatter Plugin" } [1696984107932] INFO (ext): registering Connection Manager Plugin. plugin: { "name": "Connection Manager Plugin" } [1696984107933] INFO (ext): registering CodeLens Plugin. plugin: { "name": "CodeLens Plugin", "registeredLanguages": [] } [1696984107934] INFO (ext): registering Dependency Manager Plugin. plugin: { "name": "Dependency Manager Plugin", "installingDrivers": [] } [1696984107937] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1696984107937] INFO (ext): registering History Manager Plugin. plugin: { "name": "History Manager Plugin" } [1696984107938] INFO (ext): registering Bookmarks Manager Plugin. plugin: { "name": "Bookmarks Manager Plugin" } [1696984107938] INFO (ext): registering Authentication Provider Plugin. plugin: { "name": "Authentication Provider Plugin", "isRegistered": false } [1696984107939] INFO (ext): registering Object Drop-in Provider (plugin). plugin: { "type": "plugin", "name": "Object Drop-in Provider", "isRegistered": false } [1696984107940] INFO (ext): SQLTools activation completed. 1440.5807 ms [1696984107941] INFO (ext): Formatter Plugin registered! [1696984107941] INFO (ext): CodeLens Plugin registered! [1696984107941] INFO (ext): Dependency Manager Plugin registered! [1696984107941] INFO (ext): Connection Manager Plugin registered! [1696984107941] INFO (ext): History Manager Plugin registered! [1696984107941] INFO (ext): Bookmarks Manager Plugin registered! [1696984107941] INFO (ext): Authentication Provider Plugin registered! [1696984107941] INFO (ext): Object Drop-in Provider (plugin) registered! [1696984108041] INFO (ext): registering Redshift Driver (Dedicated ver) Plugin (driver). plugin: { "extensionId": "kj.sqltools-driver-redshift", "name": "Redshift Driver (Dedicated ver) Plugin", "type": "driver" } /home/alex_marshall/.vscode-server/extensions/mtxr.sqltools-0.28.0/dist/languageserver.js:1 (function (exports, require, module, filename, dirname) { (()=>{var __webpack_modules={797:(unused_webpack_module,exports)=>{"use strict";const internalssuspectRx=/"(?:|\u005[Ff])(?:|\u005[Ff])(?:p|\u0070)(?:r|\u0072)(?:o|\u006[Ff])(?:t|\u0074)(?:o|\u006[Ff])(?:|\u005[Ff])(?:_|\u005[Ff])"\s*\:/;exports.parse=function(text,...args){const firstOptions="object"==typeof args[0]&&args[0],reviver=args.length>1||!firstOptions?args[0]:void 0,options=args.length>1&&args[1]||firstOptions||{},obj=JSON.parse(text,reviver);return"ignore"===options.protoAction?obj:obj&&"object"==typeof obj&&text.match(internals_suspectRx)?(exports.scan(obj,options),obj):obj},exports.scan=function(obj,options={}){let next=[obj];for(;next.length;){const nodes=next;next=[];for(const node of nodes){if(Object.prototype.hasOwnProperty.call(node,"proto")){if("remove"!==options.protoAction)throw new SyntaxError("Object contains fo

SyntaxError: Unexpected token ; at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:616:28) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3 [Info - 12:28:28 AM] Connection to server got closed. Server will restart. /home/alex_marshall/.vscode-server/extensions/mtxr.sqltools-0.28.0/dist/languageserver.js:1 (function (exports, require, module, filename, dirname) { (()=>{var __webpack_modules={797:(unused_webpack_module,exports)=>{"use strict";const internalssuspectRx=/"(?:|\u005[Ff])(?:|\u005[Ff])(?:p|\u0070)(?:r|\u0072)(?:o|\u006[Ff])(?:t|\u0074)(?:o|\u006[Ff])(?:|\u005[Ff])(?:_|\u005[Ff])"\s*\:/;exports.parse=function(text,...args){const firstOptions="object"==typeof args[0]&&args[0],reviver=args.length>1||!firstOptions?args[0]:void 0,options=args.length>1&&args[1]||firstOptions||{},obj=JSON.parse(text,reviver);return"ignore"===options.protoAction?obj:obj&&"object"==typeof obj&&text.match(internals_suspectRx)?(exports.scan(obj,options),obj):obj},exports.scan=function(obj,options={}){let next=[obj];for(;next.length;){const nodes=next;next=[];for(const node of nodes){if(Object.prototype.hasOwnProperty.call(node,"proto")){if("remove"!==options.protoAction)throw new SyntaxError("Object contains fo

SyntaxError: Unexpected token ; at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:616:28) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3 [Info - 12:28:28 AM] Connection to server got closed. Server will restart. /home/alex_marshall/.vscode-server/extensions/mtxr.sqltools-0.28.0/dist/languageserver.js:1 (function (exports, require, module, filename, dirname) { (()=>{var __webpack_modules={797:(unused_webpack_module,exports)=>{"use strict";const internalssuspectRx=/"(?:|\u005[Ff])(?:|\u005[Ff])(?:p|\u0070)(?:r|\u0072)(?:o|\u006[Ff])(?:t|\u0074)(?:o|\u006[Ff])(?:|\u005[Ff])(?:_|\u005[Ff])"\s*\:/;exports.parse=function(text,...args){const firstOptions="object"==typeof args[0]&&args[0],reviver=args.length>1||!firstOptions?args[0]:void 0,options=args.length>1&&args[1]||firstOptions||{},obj=JSON.parse(text,reviver);return"ignore"===options.protoAction?obj:obj&&"object"==typeof obj&&text.match(internals_suspectRx)?(exports.scan(obj,options),obj):obj},exports.scan=function(obj,options={}){let next=[obj];for(;next.length;){const nodes=next;next=[];for(const node of nodes){if(Object.prototype.hasOwnProperty.call(node,"proto")){if("remove"!==options.protoAction)throw new SyntaxError("Object contains fo

SyntaxError: Unexpected token ; at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:616:28) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3 [Info - 12:28:29 AM] Connection to server got closed. Server will restart. [1696984109043] INFO (ext): EXECUTING COMMAND => sqltools.refreshTree [1696984109044] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" /home/alex_marshall/.vscode-server/extensions/mtxr.sqltools-0.28.0/dist/languageserver.js:1 (function (exports, require, module, filename, dirname) { (()=>{var __webpack_modules={797:(unused_webpack_module,exports)=>{"use strict";const internalssuspectRx=/"(?:|\u005[Ff])(?:|\u005[Ff])(?:p|\u0070)(?:r|\u0072)(?:o|\u006[Ff])(?:t|\u0074)(?:o|\u006[Ff])(?:|\u005[Ff])(?:_|\u005[Ff])"\s*\:/;exports.parse=function(text,...args){const firstOptions="object"==typeof args[0]&&args[0],reviver=args.length>1||!firstOptions?args[0]:void 0,options=args.length>1&&args[1]||firstOptions||{},obj=JSON.parse(text,reviver);return"ignore"===options.protoAction?obj:obj&&"object"==typeof obj&&text.match(internals_suspectRx)?(exports.scan(obj,options),obj):obj},exports.scan=function(obj,options={}){let next=[obj];for(;next.length;){const nodes=next;next=[];for(const node of nodes){if(Object.prototype.hasOwnProperty.call(node,"proto")){if("remove"!==options.protoAction)throw new SyntaxError("Object contains fo

SyntaxError: Unexpected token ; at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:616:28) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3 [Info - 12:28:29 AM] Connection to server got closed. Server will restart. /home/alex_marshall/.vscode-server/extensions/mtxr.sqltools-0.28.0/dist/languageserver.js:1 (function (exports, require, module, filename, dirname) { (()=>{var __webpack_modules={797:(unused_webpack_module,exports)=>{"use strict";const internalssuspectRx=/"(?:|\u005[Ff])(?:|\u005[Ff])(?:p|\u0070)(?:r|\u0072)(?:o|\u006[Ff])(?:t|\u0074)(?:o|\u006[Ff])(?:|\u005[Ff])(?:_|\u005[Ff])"\s*\:/;exports.parse=function(text,...args){const firstOptions="object"==typeof args[0]&&args[0],reviver=args.length>1||!firstOptions?args[0]:void 0,options=args.length>1&&args[1]||firstOptions||{},obj=JSON.parse(text,reviver);return"ignore"===options.protoAction?obj:obj&&"object"==typeof obj&&text.match(internals_suspectRx)?(exports.scan(obj,options),obj):obj},exports.scan=function(obj,options={}){let next=[obj];for(;next.length;){const nodes=next;next=[];for(const node of nodes){if(Object.prototype.hasOwnProperty.call(node,"proto")){if("remove"!==options.protoAction)throw new SyntaxError("Object contains fo

SyntaxError: Unexpected token ; at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:616:28) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3 [Error - 12:28:29 AM] Connection to server got closed. Server will not be restarted. [1696984109938] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1696984227105] INFO (ext): EXECUTING COMMAND => sqltools.getConnections

is there any other information I can give on how to proceed: I am on windows. This is my vscode version:

Version: 1.83.0 (system setup) Commit: e7e037083ff4455cf320e344325dacb480062c3c Date: 2023-10-03T16:12:16.321Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19045

This is the driver version:

Published 2021-1-22, 06:44:46 Last released 2022-10-10, 01:53:10 Last updated 2023-10-10, 17:26:27 Identifier kj.sqltools-driver-redshift