Skip to content

Add warnings for nonexistend include directory and errors for missing path dependency#229

Merged
micprog merged 6 commits intopulp-platform:masterfrom
tenstorrent:missing_err
Dec 4, 2025
Merged

Add warnings for nonexistend include directory and errors for missing path dependency#229
micprog merged 6 commits intopulp-platform:masterfrom
tenstorrent:missing_err

Conversation

@mrogenmoserTT
Copy link
Copy Markdown
Contributor

No description provided.

@micprog micprog requested a review from fischeti November 7, 2025 12:29
Copy link
Copy Markdown
Contributor

@fischeti fischeti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we already talked about this, and I just wanted to write down a current issue:

Bender does not consider targets correctly. For instance, an include directory that is guarded by a target and does not exists (yet):

  - target: missing_folder
    include_dirs:
      - missing_folder/include
    files:
      - missing_folder/my_module.sv

throws an error at the moment even if missing_folder is not specified as a target

@mrogenmoserTT mrogenmoserTT force-pushed the missing_err branch 2 times, most recently from 82177c1 to 9efc21b Compare November 20, 2025 23:04
@mrogenmoserTT
Copy link
Copy Markdown
Contributor Author

I adjusted the internals to only error if the missing include_directory is actually required 👍

Copy link
Copy Markdown
Contributor

@fischeti fischeti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should work now as intended. I still get an error from the snitch_cluster dependency due to this:

https://github.com/pulp-platform/snitch_cluster/blob/5b2fccd96c42812774c20ab2f9b811e164809789/Bender.yml#L38

Whi can/should be fixed in the snitch cluster🤓

@micprog
Copy link
Copy Markdown
Member

micprog commented Nov 21, 2025

As far as I understand, there is no inherent harm in including a non-existent directory for any downstream tool, although it is bad practice, unlike if a file doesn't exist. Therefore, I think it makes the most sense to convert this error into a warning, not an error.

@mrogenmoserTT mrogenmoserTT changed the title Add errors for nonexistend include directory or missing path dependency Add warnings for nonexistend include directory and errors for missing path dependency Nov 25, 2025
@micprog micprog merged commit f89e5a5 into pulp-platform:master Dec 4, 2025
6 checks passed
@mrogenmoserTT mrogenmoserTT deleted the missing_err branch January 12, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants