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
428 stars 84 forks source link

"dbt configuration is invalid : cannot pickle '_thread.RLock' object" #1258

Open DavidfNZ opened 1 week ago

DavidfNZ commented 1 week ago

Expected behavior

Lineage should work: should be displayed in the lineage tab.

Actual behavior

The error "dbt configuration is invalid : cannot pickle '_thread.RLock' object" is repeatedly appearing in the Lineage tab in VScode, so lineage has stopped working completely.

Steps To Reproduce

Open existing dbt project that has codebase going back for several years, click on any model.

This was working fine for the last 10 months on the same codebase with previous versions of dbt Power User, seems to be broken only recently.

Log output/Screenshots

image

Operating System

Windows 10

dbt version

1.6.6

dbt Adapter

unsure

dbt Power User version

0.41.0

Are you willing to submit PR?

anandgupta42 commented 1 week ago

@DavidfNZ Can you run dbt clean, followed by dbt deps and then restart vscode?

alangner commented 5 days ago

We are observing the same problem, but not just since 0.41. It was kind of always there, but occurs only from time to time. We are using 3 different dbt projects and it can happen in any of them. Our workaround is to just restart VSCode and usually it is ok afterwards. I havn't been able to find out what causes this.