-
Notifications
You must be signed in to change notification settings - Fork 4
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
When running dbt-meshify split, get exception "Unable to find a docs block with the name int_hcss_dis_jobs_doc" even though doc block exists #205
Comments
I have a similar issue on Athena, while creating a group and assiging an owner. I did the same tests as the OP. |
@dmoditto @Hansk-12 thanks so much for the report! we may need a bit more info to debug here. Would each of you mind providing:
hopefully that will be enough for us to get to a root cause here! appreciate your patience! |
@dave-connors-3 sure thing! Below are my answers. In gathering that info, I was able to narrow down further what is going wrong. Seems like whatever is parsing the doc block header doesn't like the two cases I outline below, and found this happens to macro headers as well.
Case 1: The Missing SpaceIn taking a look at the doc block again, I actually found a change that fixes this: simply ensure there is a space at the doc block tag. So Unfortunately, it turns out we have numerous doc blocks that lack that final space. So, I'm off to find and replace all those suckers. Case 2: An Odd DashOne other case I found is with the following doc block. This is saved in /macros
And it is all good when I remove the oddly placed dash
Case 3: The Missing Space Part 2: The Macro EditionThis is a custom macro saved in /macros
Adding a space between the name of the macro and the first parenthesis fixes this issue; however, I'm unsure if this macro can still be called. I'll explore that
|
@dmoditto Aha! this makes a lot of sense -- we are using some pretty unscientific regex matching to move jinja blocks, and we're likely simply not covering all the valid edge cases of space and special character placement! should be a relatively quick fix! cc: @nicholasyager |
I am facing this issue, please when will the above fix be released? |
Describe the bug
When running dbt-meshify split, get exception "Unable to find a docs block with the name int_hcss_dis_jobs_doc" even though doc block exists
Steps to reproduce
Using Codespaces, ran "dbt-meshify split dm_accounting_pipeline --select +dm_accounting"
Expected results
Expected to split our +dm_accounting pipeline into a new project
Actual results
Got an exception error:
Exception: Unable to find a docs block with the name int_hcss_dis_jobs_doc.
Screenshots and log output
System information
Which database are you using dbt with?
The output of
dbt debug
:The output of
dbt --version
:Additional context
Are you interested in contributing the fix?
Nope
The text was updated successfully, but these errors were encountered: