Skip to content

Go to macro definition does not work when prefixed with own project name #1754

@Jeremynadalippon

Description

@Jeremynadalippon

Expected behavior

When you cmd/ctrl + click on a macro name, you should be directed to the macro definition.

Actual behavior

When using a macro prefixed by its own dbt project name and cmd/ctrl + click on its name, it does not work.

It still show definition such as name and description though.

Steps To Reproduce

Create two macros in a dbt project called my_dbt_project:

toto.sql

{% macro log_toto() %}
    {{ log('Toto', info=True) }}
{% endmacro %}

call_toto.sql

{% macro call_toto() %}
    {{ my_dbt_project.log_toto() }}
{% endmacro %}

When on call_toto.sql, cmd/ctrl+click on log_toto, it should do nothing

Log output/Screenshots

No response

Operating System

Mac OS 15.7.1

dbt version

1.10.11

dbt Adapter

dbt-databricks

dbt Power User version

0.58.12

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions