Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbt debug cannot handle an empty dbt_project.yml #2116

Closed
1 task done
nchammas opened this issue Feb 10, 2020 · 1 comment · Fixed by #2120
Closed
1 task done

dbt debug cannot handle an empty dbt_project.yml #2116

nchammas opened this issue Feb 10, 2020 · 1 comment · Fixed by #2120
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors!

Comments

@nchammas
Copy link
Contributor

Describe the bug

If you call dbt debug on a new project that has an empty dbt_project.yml file, you get this error:

Encountered an error:
'NoneType' object does not support item assignment

Steps To Reproduce

Create a new project directory and place an empty dbt_project.yml in it. Run dbt debug.

Expected behavior

dbt should gracefully complain that I have an empty or malformed dbt_project.yml.

Screenshots and log output

$ dbt debug
Running with dbt=0.15.2
dbt version: 0.15.2
python version: 3.7.6
python path: .../venv/bin/python
os info: Darwin-18.7.0-x86_64-i386-64bit
Using profiles.yml file at .../.dbt/profiles.yml

Encountered an error:
'NoneType' object does not support item assignment

System information

Which database are you using dbt with?

  • postgres

The output of dbt --version:

$ dbt --version
installed version: 0.15.2
   latest version: 0.15.2

Up to date!

The operating system you're using: macOS

The output of python --version: Python 3.7.6

@nchammas nchammas added bug Something isn't working triage labels Feb 10, 2020
@drewbanin drewbanin removed the triage label Feb 11, 2020
@drewbanin drewbanin added this to the Barbara Gittings milestone Feb 11, 2020
@drewbanin
Copy link
Contributor

Thanks for the report @nchammas! Adding this to the current milestone. Would you be interested in contributing a fix for the issue? Happy to point you in the right direction if so!

@drewbanin drewbanin added the good_first_issue Straightforward + self-contained changes, good for new contributors! label Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants