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

Warning for unincluded files #692

Open
siefkenj opened this issue Feb 25, 2024 · 2 comments
Open

Warning for unincluded files #692

siefkenj opened this issue Feb 25, 2024 · 2 comments

Comments

@siefkenj
Copy link
Contributor

I just spent some time debugging my project and discovered that my docinfo.ptx was not linked to from anywhere and so it wasn't being used.

It would be nice to have a warning printed when running pretext build that prints out all the .ptx files that are not referenced by any source document. Ones that have special names, like docinfo.ptx and project.ptx could come with specific suggestions about how they are to be included.

@oscarlevin
Copy link
Member

Maybe using a debug verbosity? My book has so many extra copies of .ptx files in various subfolders that I don't ever use, or only use for some separate build targets/versions, that I would get annoyed at the warnings.

However, I'm open to a PR that does this. It would require parsing the entire project as well as scanning the source directory.

@siefkenj
Copy link
Contributor Author

siefkenj commented Mar 4, 2024

What if it only warned for files that are included in no build targets?

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

No branches or pull requests

2 participants