-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Show filenames and line numbers in deprecation warnings #7480
Labels
Milestone
Comments
So, I agree, and this has been requested before, the problem is: I don't know how to do it in a simple way. |
Maybe somebody have little ideas or plan how we can do this |
So, adding the line-numbers etc. to the WARNING is very hard. But what we could do is to add a flag called |
That would work for us! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per the "Page.URL is deprecated" warnings (related to #4117), I'm wondering if you'd consider including the filename and/or line number that is triggering the warning?
I'm new to Hugo, so please forgive my ignorance here. :) I'm helping a friend with a few small tasks for his Hugo-powered site, and have checked all the
.URL
instances I could find by doing a global search in VS Code. All appear to be menu- and navigation-related, notPage
context.I've tried the various tips in the forum posts that discuss the
Page.URL
deprecation, but none have worked. I've also looked through closed Issues and PRs here, in case this has been discussed already, but I didn't find this mentioned.A few people have asked in the forum about filenames and line numbers, to help with debugging this:
Thanks in advance for considering, and I appreciate your work on Hugo and with its community!
The text was updated successfully, but these errors were encountered: