dbt-labs / dbt-codegen

Macros that generate dbt code
https://hub.getdbt.com/dbt-labs/codegen/latest/
Apache License 2.0
459 stars 99 forks source link

macro 'dbt_macro__generate_model_yaml' takes no keyword argument 'model_names' #126

Closed mbkupfer closed 6 months ago

mbkupfer commented 1 year ago

Describe the bug

Compiling the generate model snippet returns a compilation error complaining about the keyword argument

Exception: Compilation Error in sql operation t_809e3c600c9943bab9708cc085afd1ea (from remote system.sql)
  macro 'dbt_macro__generate_model_yaml' takes no keyword argument 'model_names'

Detailed error information:
Error: Traceback (most recent call last):
  File "C:\Users\me\Anaconda3\envs\py38\lib\site-packages\dbt\clients\jinja.py", line 302, in exception_handler
    yield
  File "C:\Users\me\Anaconda3\envs\py38\lib\site-packages\dbt\clients\jinja.py", line 257, in call_macro
    return macro(*args, **kwargs)
  File "C:\Users\me\Anaconda3\envs\py38\lib\site-packages\jinja2\runtime.py", line 752, in __call__
    raise TypeError(
TypeError: macro 'dbt_macro__generate_model_yaml' takes no keyword argument 'model_names'

I even looked into at that macro in the dbt__packages folder and it looks like that macro does indeed take that argument.

Steps to reproduce

Not sure how to reproduce.

Expected results

No compilation error.

Actual results

Screenshots and log output

System information

The contents of your packages.yml file:

packages:
  - package: dbt-labs/codegen
    version: 0.9.0
  - package: dbt-labs/dbt_utils
    version: 0.8.5
  - package: tnightengale/dbt_meta_testing
    version: 0.3.5
  - package: get-select/dbt_snowflake_monitoring
    version: 4.1.1
  - package: calogica/dbt_expectations
    version: 0.8.5

Which database are you using dbt with?

The output of dbt --version:

Core:
  - installed: 1.5.0
  - latest:    1.5.0 - Up to date!

Plugins:
  - snowflake: 1.5.0 - Up to date!

The operating system you're using: Widnows 10 The output of python --version: Python 3.8.13

Additional context

Are you interested in contributing the fix?

Sure, but definitely would need a hand getting started.

github-actions[bot] commented 7 months ago

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

github-actions[bot] commented 6 months ago

Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.