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

[CT-2547] [Bug] dbt docs not finding compiled code with 1.5.0 #7553

Closed
2 tasks done
gilcrest opened this issue May 8, 2023 · 1 comment · Fixed by #7554
Closed
2 tasks done

[CT-2547] [Bug] dbt docs not finding compiled code with 1.5.0 #7553

gilcrest opened this issue May 8, 2023 · 1 comment · Fixed by #7554
Assignees
Labels
bug Something isn't working regression
Milestone

Comments

@gilcrest
Copy link

gilcrest commented May 8, 2023

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

I currently have 1.4.5 and 1.50 installed via virtual environments. If I run dbt docs generate followed by dbt docs serve using 1.5.0, every model, when I click on the Compiled Code view, has the following message:

Screenshot 2023-05-08 at 1 57 09 PM

Expected Behavior

If I run the exact same commands using 1.4.5, I am able to see the compiled code locally on my dbt docs site.

Steps To Reproduce

I have a really simple shell script that I run in both virtual environments (dbt 1.4.5 and dbt 1.5.0) and I would expect the behavior to be the same and see the compiled sql code on the dbt docs site.

#!/bin/zsh

dbt clean
dbt deps
dbt compile
dbt build
dbt docs generate
dbt docs serve

Relevant log output

No response

Environment

- OS: macOS 13.3.1 (a)
- Python: 3.10
- dbt: 1.5.0

Which database adapter are you using with dbt?

snowflake

Additional Context

No response

@gilcrest gilcrest added bug Something isn't working triage labels May 8, 2023
@github-actions github-actions bot changed the title [Bug] dbt docs not finding compiled code with 1.5.0 [CT-2547] [Bug] dbt docs not finding compiled code with 1.5.0 May 8, 2023
@jtcohen6
Copy link
Contributor

jtcohen6 commented May 8, 2023

@gilcrest Thanks for opening!

The dbt docs serve command currently expects to re-parse the project, and rewrite manifest.json (without the compile step). It really shouldn't do that.

I think we might be able to solve this simply by removing @requires.manifest from the serve task:

@requires.manifest

Let me validate that quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants