You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to save results as CSV or JSON, I the the error:
Running the contributed command: 'sqltools.saveResults' failed.
I am also unable to open results as either CSV or JSON with the following error:
Running the contributed command: 'sqltools.openResults' failed.
To Reproduce
Steps to reproduce the behavior:
Make a query that returns some results.
Click on the Save Results (or Open Results) button in the top right of the results tab.
Choose either CSV or JSON.
Click save on the save file window that appears. (or do nothing if opening results)
Receive error.
Expected behavior
I expect the results to save to a file, or to open in a new VSCode tab.
Screenshots
Desktop (please complete the following information):
SQLTools Version: v0.23.0
VSCode Version: 1.58.0
OS: Arch Linux x86_64 Kernel 5.13.6-arch1-1
Driver:
PostgreSQL/Redshift
MySQL/MariaDB
MSSQL/Azure
SQLite
Other? Which...
Database version: Microsoft SQL Server 2017 (RTM-CU19) (KB4535007) - 14.0.3281.6 (X64)
Jan 23 2020 21:00:04
Copyright (C) 2017 Microsoft Corporation
Web Edition (64-bit) on Windows Server 2016 Datacenter 10.0 (Build 14393: ) (Hypervisor)
Additional context
Some possibly helpful logs from /home/david/.config/Code - OSS/logs/20210806T091010/exthost5/exthost.log:
[2021-08-06 15:13:41.546] [exthost] [error] Error: Request connection/SaveResultsRequest failed with message: Cannot destructure property 'results' of '(intermediate value)' as it is undefined.
at /home/dj/.vscode-oss/extensions/mtxr.sqltools-0.23.0/dist/extension.js:16:111820
at /home/dj/.vscode-oss/extensions/mtxr.sqltools-0.23.0/dist/extension.js:16:112227
at Immediate.<anonymous> (/home/dj/.vscode-oss/extensions/mtxr.sqltools-0.23.0/dist/extension.js:16:112769)
at processImmediate (internal/timers.js:461:21) sqltools.saveResults
[2021-08-06 15:19:46.134] [exthost] [error] Error: Request connection/SaveResultsRequest failed with message: Cannot destructure property 'results' of '(intermediate value)' as it is undefined.
at /home/dj/.vscode-oss/extensions/mtxr.sqltools-0.23.0/dist/extension.js:16:111820
at /home/dj/.vscode-oss/extensions/mtxr.sqltools-0.23.0/dist/extension.js:16:112227
at Immediate.<anonymous> (/home/dj/.vscode-oss/extensions/mtxr.sqltools-0.23.0/dist/extension.js:16:112769)
at processImmediate (internal/timers.js:461:21) sqltools.openResults
The text was updated successfully, but these errors were encountered:
Further fiddling indicates that this actually only fails sometimes. Will need further fiddling to understand exactly what differentiates failure from success.
Results of fiddling. Seems like multiple connections throws off the saving/opening, specifically when the results being saved/opened are not from the most recent connection.
Success:
Open new, single connection.
Run single query.
Click Open or Save on results.
Success ✔️
Failure:
Open new connection (MSSQL).
Run query on this first connection.
Receive results in new tab.
Open second connection (postgres in my case), do not run a query or close first connection (second connection is active connection).
Go back to results tab from from first query from first connection.
Click Save or Open
Fail ❌
(This also fails when first and second connections are to distinct MSSQL servers)
Success:
Open new connection (postgres). Do not run query.
Open second connection (MSSQL). Do not close first connection, but second connection is active)
Run query and receive results
Click Open/Save
Success ✔️
(Also succeeds when first and second connections are distinct MSSQL servers)
Failure:
Open first connection.
Run query and receive results
Open second connection. (do not close first)
Do not run query or do anything on second connection.
Switch back to first connection being active. (do not close second connection)
Go to results tab (from first connection) and hit Save/Open
Describe the bug
When trying to save results as CSV or JSON, I the the error:
I am also unable to open results as either CSV or JSON with the following error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the results to save to a file, or to open in a new VSCode tab.
Screenshots
Desktop (please complete the following information):
Jan 23 2020 21:00:04
Copyright (C) 2017 Microsoft Corporation
Web Edition (64-bit) on Windows Server 2016 Datacenter 10.0 (Build 14393: ) (Hypervisor)
Additional context
Some possibly helpful logs from
/home/david/.config/Code - OSS/logs/20210806T091010/exthost5/exthost.log
:The text was updated successfully, but these errors were encountered: