bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#61093: Indented file names confuse compilation buffer


From: Sascha Ziemann
Subject: bug#61093: Indented file names confuse compilation buffer
Date: Fri, 27 Jan 2023 12:11:14 +0100

The Go compiler indents sometimes filenames. I have attached a
htmlfontified compilation buffer showing this. It also shows that the
parser of the compilation buffer gets confused by this. The
problematic line is:

"    ./config.go:10:5: other declaration of config_file"

Some code thinks the whole line is a file name, because the whole line
is a hyperlink (underlined).

Some other code thinks only the beginning of the line is a file name
(red). But this part also thinks the line number is part of the file
name and marks the column number as line number (purple).

I think it might be ok to ignore leading whitespace, because file
names do not start very often with whitespace.
-*- mode: compilation; default-directory: "~/secunet/konretd/" -*-
Compilation started at Fri Jan 27 11:41:59

make -k 
go build
# k3ls/konretd
./options.go:9:2: config_file redeclared in this block
	./config.go:10:5: other declaration of config_file
./options.go:15:6: i declared but not used
./options.go:15:9: arg declared but not used
./options.go:17:3: undefined: fmt
./options.go:17:27: undefined: index
./options.go:17:46: undefined: element
./version.go:15:1: missing return
./version.go:21:36: undefined: config_file_default
./version.go:21:57: undefined: config_file_usage
./version.go:22:36: undefined: config_file_default
./version.go:22:36: too many errors
make: *** [Makefile:2: all] Fehler 2

Compilation exited abnormally with code 2 at Fri Jan 27 11:41:59

reply via email to

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