• Hello. I am getting a few warnings, but they do not tell me the line number and there are too many possibilities to search for these. How can I see the line these errors occur on?

    Her are teh errors:

    WARNING: Found a translation function that is missing a text-domain. Function esc_html__, with the arguments
    WARNING: Found a translation function that is missing a text-domain. Function _e, with the arguments 'gi-essence-theme'
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Carolina Nymark

    (@poena)

    Hi!

    Presenting the line numbers are not built into all checks in the plugin. I’ll look into it in the coming week (or maybe weeks if I am too busy).

    Thread Starter DarkMG73

    (@darkmg73)

    OK. Thanks. Usually this would not be a problem as I can search for keywords to find the line with the issue. With these two, I am not able to as there are many hundreds of these types of entries and I need to find the two that are missing an argument. There just is no good way to search for that in VS Code that I can come up with.

    At any rate, I would greatly appreciate if there was something that could be done on this.

    Thank!
    Mike

    Ulrich

    (@grapplerulrich)

    Hi Mike,

    you may be able to find the offending code if you used PHPCS. This is though requires being able to the command line to set up. Here is a article explaining the steps: https://jasonyingling.me/setting-up-wordpress-coding-standards-in-visual-studio-code/

    Thread Starter DarkMG73

    (@darkmg73)

    Thanks @grapplerulrich. I will look into that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not telling me which line of code contains the error’ is closed to new replies.