Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the SQLTools language server crashed, SyntaxError: Unexpected token #1129

Open
3 of 5 tasks
yadav-vikas opened this issue Apr 4, 2023 · 4 comments
Open
3 of 5 tasks
Labels

Comments

@yadav-vikas
Copy link

Describe the bug

[1680593694397] INFO (ext): Connection explorer changed. Will be updated.
ns: "conn-man:explorer"
/home/sapat/.vscode/extensions/mtxr.sqltools-0.27.1/dist/languageserver.js:1
(()=>{var webpack_modules={797:(__unused_webpack_module,exports)=>{"use strict";const internals_suspectRx=/"(?:|\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 forbidden prototype property");delete node.proto}for(const key in node){con

SyntaxError: Unexpected token ;
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
[Error - 13:04:54] Connection to server got closed. Server will not be restarted.

I even fully reinstalled the VScode Just out of frustation and it still didn't work. for some people downgrading to lower versions helped, unfortunately not for me ? Can you explain what's going on here ?

To Reproduce

i not sure why this happend, it was working nicely since yesterday.

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • SQLTools Version [e.g. v0.17.x]
  • VS Code Version: [e.g 1.x.y]
  • OS: [e.g. Windows, Linux, Mac]
  • Driver:
    • PostgreSQL/Redshift
    • MySQL/MariaDB
    • MSSQL/Azure
    • SQLite
    • Other? Which...
  • Database version: [e.g. MySQL v5.6, PostgreSQL vX...]

Additional context
Add any other context about the problem here.

@guhls
Copy link

guhls commented Jun 30, 2023

Same here to WSL2 Ubuntu22.04, but the downgrade to v 0.26.0 worked for me

@yadav-vikas
Copy link
Author

Yeah I did that too, it worked for me as well.
I guess I should have updated earlier

@marov
Copy link

marov commented Jul 31, 2023

Same for me. 0.26.0 works

@loic-fontaine-msr
Copy link

same here :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants