-
Notifications
You must be signed in to change notification settings - Fork 77
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
[CT-2936] having a folder with the same name as a macro breaks dbt docs #442
Comments
Thanks for reporting this and providing such an elegant and detailed write-up @etnnth ! Do you have a proposed fix within We wouldn't be able to prioritize fixing this ourselves any time soon, but we'd welcome a PR that addresses this. |
I don't have a fix, but I can try to come up with something. |
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. |
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. |
Describe the bug
The dbt docs site breaks (partially) with the project/database/group staying empty the rest of the site (lineage and documentation) still works.
Looking at the browser console I can see an error like:
Steps To Reproduce
The bug can be reproduced by having a macro and a folder with the same name such as:
then running
leads to a broken docs site
Expected behavior
I expect the documentation site to work if the project can be compile and run with dbt
Screenshots and log output
The output of
dbt --version
:I have try with different version they all seems to have the bug
Additional context
I have reproduce the bug while running dbt-docs in dev mode to find the origin of the error.
The issue is in the function
buildProjectTree
in the fileproject_service.js
the catalog.json and manifest.json files used to reproduce the issue can be found here: https://gist.github.com/etnnth/d2039ba410c31debb8ec3a8d844a658b
As far as I understand the error: while building the project tree it get confused because one macro as the same name as a folder and because of that it doesn't add the folder to the project tree.
In the case i rename the macro foo to foot everything works fine and the diff between the working manifest and the broken one is:
The text was updated successfully, but these errors were encountered: