On Fri, Jul 18, 2025 at 10:27:34AM -0700, Raymond Toy wrote:
> Well, dang. I don't get this error anymore either. I didn't change anything.
>
> Oh, wait. If I remove src-hl_html/, I get the error. But if I run it again,
> I don't. And the files are all there as you show.
You figured it out.
I'm getting the error now. I expect that I ran it without the
-c HIGHLIGHT_SYNTAX argument first.
Here's a fix:
diff --git a/tta/perl/ext/highlight_syntax.pm b/tta/perl/ext/highlight_syntax.pm
index ad599a0a7e..e15027000e 100644
--- a/tta/perl/ext/highlight_syntax.pm
+++ b/tta/perl/ext/highlight_syntax.pm
@@ -414,6 +414,13 @@ sub highlight_process($$)
my $highlight_basename = "${document_name}_highlight";
my $highlight_out_dir = $self->get_info('destination_directory');
+ if (! -d $highlight_out_dir) {
+ if (!mkdir $highlight_out_dir) {
+ $self->converter_document_warn(
+ sprintf(__("highlight_syntax.pm: could not make directory %s: %s"),
+ $highlight_out_dir, $!));
+ }
+ }
foreach my $language (keys(%languages)) {
my $suffix;
if (defined($languages_extensions{$language})) {
I don't know why this problem has never come up before.
> And it appears to be enough just to create the src-hl_html directory
> beforehand for everything to work.
>
> That's good enough for me. :-)
It's still a bug that we should fix. Thanks for making the report.