dbt packages uses version information in project detection
See original GitHub issue Hi All,
I use VSCode.
- dbt version: 1.0.8
- python version: 3.9.12
- os info: macOS-11.6.2-x86_64-i386-64bit
- pipenv to create virtualenv’s
- zsh as my terminal
- snowflake
I have dbt Power User installed but quite a few the features don’t work. I can’t get it to do any of the following:
- Run current model
- terminal runs dbt list.
- parent / child model navigation
- no compiled SQL launch
- no hyperlink go to definition
- autocompletion
At startup, the terminal displays the following (truncating path to the project directory):
An error occurred while trying to refresh the project configuration: Error: ENOENT: no such file or directory, open '../zion-data-modeling/dbt_packages/dbt-expectations-0.5.5/dbt_project.yml'
An error occurred while trying to refresh the project configuration: Error: ENOENT: no such file or directory, open '../zion-data-modeling/dbt_packages/dbt-expectations-0.5.5/integration_tests/dbt_project.yml'
An error occurred while trying to refresh the project configuration: Error: ENOENT: no such file or directory, open '../zion-data-modeling/dbt_packages/dbt-date-0.5.7/dbt_project.yml'
An error occurred while trying to refresh the project configuration: Error: ENOENT: no such file or directory, open '../zion-data-modeling/dbt_packages/dbt-date-0.5.7/integration_tests/dbt_project.yml'
An error occurred while trying to refresh the project configuration: Error: ENOENT: no such file or directory, open '../zion-data-modeling/dbt_packages/dbt-utils-0.8.6/dbt_project.yml'
An error occurred while trying to refresh the project configuration: Error: ENOENT: no such file or directory, open '../zion-data-modeling/dbt_packages/dbt-utils-0.8.6/integration_tests/dbt_project.yml'
The dbt_expectations
package is in the root of the project, but not with the names inclusive of version as alluded to with the ENOENT error:
But, these get installed via the dbt_expectations
package in my packages.yml
in the root of the project:
Any thoughts on what is going on here and how I might get around this issue? Appreciate any help with this in advance!
_Originally posted by @datanerd09 in https://github.com/innoverio/vscode-dbt-power-user/discussions/44#discussioncomment-3469435_
Issue Analytics
- State:
- Created a year ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Packages - dbt Developer Hub
Hub packages require a version to be specified – you can find the latest release number on dbt Hub. Since Hub packages use...
Read more >elementary - dbt - Package hub
Elementary dbt tests collect metrics and metadata over time, such as freshness, volume, schema changes, distribution, cardinality, etc. Executed as any other ...
Read more >Installing dbt packages
Open your dbt project in your text editor and go to the dbt_project.yml file. · In the Github repository for the package you...
Read more >So You Want to Build a dbt Package | dbt Developer Blog
A dbt package is basically a mini-dbt project. The only mandatory file that it requires is a dbt_project.yml to validate that it's a...
Read more >dbt_meta_testing - dbt - Package hub
dbt Meta Testing. This dbt package contains macros to assert test and documentation coverage from dbt_project.yml configuration settings.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t understand what you are trying to say in the last section, but obviously it’s not normal to find
dbt_project.yml
files in the compiled folder of a project. Also according to the error message your folder is called dbt_project.yml.The extension just looks for any
dbt_project.yml
files and tries to register the containing folder as a project.@datanerd09 : can you retest this with latest version?