question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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: image But, these get installed via the dbt_expectations package in my packages.yml in the root of the project: image

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:closed
  • Created a year ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mdesmetcommented, Oct 31, 2022

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.

1reaction
mdesmetcommented, Oct 26, 2022

@datanerd09 : can you retest this with latest version?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found