microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.5k stars 882 forks source link

Cannot open SQL Tools log from ADS Output Window #4510

Open chlafreniere opened 5 years ago

chlafreniere commented 5 years ago

image

anthonydresser commented 5 years ago

might be a dupe of #4509

udeeshagautam commented 5 years ago

@chlafreniere Did you have two ADS instances open?

kburtram commented 5 years ago

Looks like a dup of #4509

ranasaria commented 5 years ago

This is different from #4509. #4509 is about things not working in second ADS window which as https://github.com/udeeshagautam commented is an upstream issue in vscode code base. While this issue is about ADS sql tools log getting pointed to wrong file for the output channel which we need to track and fix.

ImNtReal commented 5 years ago

I believe I'm having the same issue on Arch Linux. It appears that the log file isn't being created in my case.

ImNtReal commented 5 years ago
 [13614:0701/102905.747994:INFO:CONSOLE(2280)] "Unhandled Promise rejection:", source: /opt/azuredatastudio/resources/app/node_modules/zone.js/dist/zone-node.js (2280)
  [13614:0701/102905.759159:INFO:CONSOLE(2280)] "Error: Unable to read file (Error: File not found (/home/jmpugh/.config/azuredatastudio/mssql/sqltools_1561991171832.log))", source: /opt/azuredatastudio/resources/  [13614:0701/102608.154407:INFO:CONSOLE(2280)] "Unhandled Promise rejection:", source: /opt/azuredatastudio/resources/app/node_modules/zone.js/dist/zone-node.js (2280)
  [13614:0701/102608.254962:INFO:CONSOLE(308)] "Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'none'". Either the 'unsafe-inline' keyword, a hash (  'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.
  ", source: /opt/azuredatastudio/resources/app/node_modules.asar/chart.js/src/platforms/platform.dom.js (308)
  [13614:0701/102608.254993:INFO:CONSOLE(311)] "Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'none'". Either the 'unsafe-inline' keyword, a hash (  'sha256-OTeu7NEHDo6qutIWo0F2TmYrDhsKWCzrUgGoxxHGJ8o='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.
  ", source: /opt/azuredatastudio/resources/app/node_modules.asar/chart.js/src/platforms/platform.dom.js (311)
  [main 2019-07-01T14:26:08.296Z] menubarService#updateMenubar 1
  [13614:0701/102611.816373:INFO:CONSOLE(2280)] "%cTRACE", source: /opt/azuredatastudio/resources/app/node_modules/zone.js/dist/zone-node.js (2280)
  [13614:0701/102611.817502:INFO:CONSOLE(2280)] "%cTRACE", source: /opt/azuredatastudio/resources/app/node_modules/zone.js/dist/zone-node.js (2280)
  [13614:0701/102611.832129:INFO:CONSOLE(2280)] "SqlTools Log file is: /home/jmpugh/.config/azuredatastudio/mssql/sqltools_1561991171832.log", source: /opt/azuredatastudio/resources/app/node_modules/zone.js/dist/z  one-node.js (2280)