AltimateAI / vscode-dbt-power-user

This extension makes vscode seamlessly work with dbt™: Auto-complete, preview, column lineage, AI docs generation, health checks, cost estimation etc
https://www.altimate.ai
MIT License
453 stars 86 forks source link

The extension is not working properly on vs code. #1086

Closed Vahid-flipside closed 2 weeks ago

Vahid-flipside commented 5 months ago

Expected behavior

Vs code startup should be without this error: Skipping project: could not parse dbt_project_config.yml at 'file:///Users/vah/dataorg/dataorg': YAMLParseError: Flow sequence in block collection must be sufficiently indented and end with a ] at line 202, column 5: all_topics: [ '0x97116cf6cd4f6412bb47914d6db18da9e16ab2142f543b8fbd16b23a' ^

Also model child and parent models should show.

Actual behavior

Doesn't do any of the above 2 expected behaviours

Steps To Reproduce

Install dbt power user extension on vscode. Install dbt-bigquery on the machine. (MAC OS)

Log output/Screenshots

image

Operating System

MAC

dbt version

1.6.13

dbt Adapter

bigquery

dbt Power User version

0.38.5

Are you willing to submit PR?

Vahid-flipside commented 5 months ago
image
Vahid-flipside commented 5 months ago

without the extension, dbt works perfectly fine.

anandgupta42 commented 5 months ago

@Vahid-flipside What do you see in the problems tab?

Vahid-flipside commented 5 months ago

Sorry, where can I find this tab?

Vahid-flipside commented 5 months ago

Here is another screenshot that shows how parent and children models aren't showing

image
hrucchetto commented 4 months ago

Hey, I have same error since some weeks ago. Could you find a solution?

mdesmet commented 4 months ago

Can you post your dbt_project.yaml and the exact error you are getting (incl line number?)

matthiasr commented 2 months ago

The error I get is

Skipping project: could not parse dbt_project_config.yml at 'file:///Users/matthiasrampke/src/github.com/<redacted>/<redacted>': Error: Illegal argument: base

Under "Problems", I see "dbt configuration is invalid: No module named 'dbt'". There is also a popup that says "please ensure dbt is installed", however, trying to run that tries to install dbt in my Homebrew-managed Python, which doesn't allow messing with it.

What it should be using is the Python from a venv in the project folder, which I have selected using "Python: Select interpreter" at the folder level.

Other possibly related things:

I do not get these errors if I install dbt-core globally instead, so I think this may have something to do with the venv? And then the config parsing error just happens as a consequence of dbt being "missing" altogether?

mdesmet commented 2 weeks ago

Is this still an issue in latest version? Please reopen if this the case.