bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "error: too deeply nested expressions" for large Perl input file


From: Tomasz Kłoczko
Subject: Re: "error: too deeply nested expressions" for large Perl input file
Date: Sun, 9 Jul 2023 11:27:15 +0100

On Sun, 9 Jul 2023 at 11:06, Gavin Smith <gavinsmith0123@gmail.com> wrote:
In gettext 0.22, there is an error running xgettext with a large input
file:

$ /usr/local/bin/xgettext    HTML.pm     
HTML.pm:8052: error: too deeply nested expressions

This makes "make update-po" break in the Texinfo package.

I have tried to reduce the input file to a minimal case by deleting
chunks of the file but beyond a certain point the error disappears.

For example, just removing the three lines

  foreach my $def_command (keys(%def_commands)) {
    $formatted_line_commands{$def_command} = 1 if ($line_commands{$def_command});
  }

from early in the file makes the error go away.

I expect whatever counting of "nested expressions" is being done
isn't counting correctly.

OK so what should be fixed?🤔 gettext?
kloczek
-- 
Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH


reply via email to

[Prev in Thread] Current Thread [Next in Thread]