tinybirdco / vscode-tinybird-support

Tinybird support for Visual Studio Code
MIT License
19 stars 3 forks source link

Unknown error on start #27

Closed rbarbadillo closed 8 months ago

rbarbadillo commented 9 months ago

When opening the extension tab on VSCode, I get the error "An unknown error occurred. Please consult the log for more details."

Syntax highlighting and the file symbol still working:

Screenshot from 2023-10-02 10-45-30

rbarbadillo commented 8 months ago

It seems it's an authentication issue. I am using a user token on the .tinyb file. Logs:

notificationsAlerts.ts:40 Error: 
    at Object.fetchPipes (/home/rbarbadillo/.vscode/extensions/tinybirdco.vscode-tinybird-support-1.0.2/src/context.ts:70:15)
    at process.getPipes (node:internal/process/task_queues:95:5)
    at d.getChildren (/home/rbarbadillo/.vscode/extensions/tinybirdco.vscode-tinybird-support-1.0.2/src/views/pipes.ts:55:34)
    at c.Y (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:125:66905)
    at c.getChildren (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:125:63275)
c @ notificationsAlerts.ts:40
notificationsAlerts.ts:40 Error: 
    at d.getChildren (/home/rbarbadillo/.vscode/extensions/tinybirdco.vscode-tinybird-support-1.0.2/src/views/tokens.ts:45:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at c.Y (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:125:66905)
    at c.getChildren (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:125:63275)
c @ notificationsAlerts.ts:40
notificationsAlerts.ts:40 Error: 
    at Object.fetchDataSources (/home/rbarbadillo/.vscode/extensions/tinybirdco.vscode-tinybird-support-1.0.2/src/context.ts:81:15)
    at process.getDataSources (node:internal/process/task_queues:95:5)
    at d.getChildren (/home/rbarbadillo/.vscode/extensions/tinybirdco.vscode-tinybird-support-1.0.2/src/views/datasources.ts:57:22)
    at c.Y (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:125:66905)
    at c.getChildren (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:125:63275)
c @ notificationsAlerts.ts:40
rbarbadillo commented 8 months ago

OK so what was going on was: