mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.49k stars 299 forks source link

Bug: Launching server using runtime node failed. #1128

Open UniMars opened 1 year ago

UniMars commented 1 year ago

Describe the bug i first install the plugin, then install the sqlite driver, it says "Launching server using runtime node failed.", then i install the mysql driver, it says "Launching server using runtime node failed."again. the logs are:

[1680583995531] ERROR (ext): ERROR: Error loading plugin SQLite Plugin Launching server using runtime node failed., 'Launching server using runtime node failed.' ns: "error-handler" [1680583996548] INFO (ext): EXECUTING COMMAND => sqltools.refreshTree [1680583996548] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680583997486] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680583997956] INFO (ext): EXECUTING COMMAND => sqltools.showOutputChannel [1680584040983] INFO (ext): EXECUTING COMMAND => sqltools.getConnections [1680584046079] INFO (ext): EXECUTING COMMAND => sqltools.newSqlFile [1680584046110] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680584046454] INFO (ext): EXECUTING COMMAND => sqltools.getConnections [1680584058210] INFO (ext): EXECUTING COMMAND => sqltools.openAddConnectionScreen [1680584184556] INFO (ext): EXECUTING COMMAND => sqltools.openAddConnectionScreen [1680584191607] INFO (ext): EXECUTING COMMAND => sqltools.refreshTree [1680584191607] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680584191622] INFO (ext): EXECUTING COMMAND => sqltools.getConnections [1680584277692] INFO (ext): EXECUTING COMMAND => sqltools.openAddConnectionScreen [1680584299719] INFO (ext): EXECUTING COMMAND => sqltools.refreshTree [1680584299719] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680584299735] INFO (ext): EXECUTING COMMAND => sqltools.getConnections [1680584438338] INFO (ext): EXECUTING COMMAND => sqltools.openAddConnectionScreen [1680584442431] INFO (ext): EXECUTING COMMAND => sqltools.refreshTree [1680584442431] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680584442446] INFO (ext): EXECUTING COMMAND => sqltools.getConnections [1680584506016] INFO (ext): EXECUTING COMMAND => sqltools.refreshTree [1680584506016] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680584506047] INFO (ext): EXECUTING COMMAND => sqltools.getConnections [1680584529991] INFO (ext): EXECUTING COMMAND => sqltools.openAddConnectionScreen [1680584551504] INFO (ext): registering MySQL/MariaDB Plugin (driver). plugin: { "extensionId": "mtxr.sqltools-driver-mysql", "name": "MySQL/MariaDB Plugin", "type": "driver" } [1680584551504] ERROR (ext): ERROR: Error loading plugin MySQL/MariaDB Plugin Launching server using runtime node failed., 'Launching server using runtime node failed.' ns: "error-handler" [1680584552522] INFO (ext): EXECUTING COMMAND => sqltools.refreshTree [1680584552522] INFO (ext): Connection explorer changed. Will be updated. ns: "conn-man:explorer" [1680584556399] INFO (ext): EXECUTING COMMAND => sqltools.showOutputChannel

To Reproduce Steps to reproduce the behavior:

  1. Go to 'sqltools'panel
  2. Click on 'refresh'
  3. 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):

Additional context Add any other context about the problem here.

gjsjohnmurray commented 1 year ago

Does your settings.json file contain an entry for sqltools.useNodeRuntime? If yes, please comment it out by prefixing with //, save the change, restart VS Code and try your MySQL connection again.