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/error if import, include, extends or embeds file is not found #61

Open
ogrammer opened this issue Dec 11, 2020 · 2 comments
Open

Comments

@ogrammer
Copy link
Contributor

It would be nice if I extends for example templt.peb and it tells me that it does not exist. I think an error would be the best way. (Sorry for creating so many issues, found an old list I had made.)

@ogrammer ogrammer changed the title Warning/error if import, include or extends file is not found Warning/error if import, include, extends or embeds file is not found Dec 11, 2020
@bjansen
Copy link
Owner

bjansen commented Dec 12, 2020

Sorry for creating so many issues

I'm kidding, thanks for taking the time to report them :)

@bjansen
Copy link
Owner

bjansen commented Dec 12, 2020

I'd prefer a warning instead of an error, because depending on which com.mitchellbosecke.pebble.loader.Loader is actually used at runtime, the IDE might not be able to locate templates correctly.

If the loader loads templates from a database for example, the IDE will report false positives everywhere. Same thing with loaders configured with non-empty prefixes and suffixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants