GNU bug report logs -
#61104
29.0.60; typescript-ts-mode does not provide compilation-mode support
Previous Next
Reported by: jostein <at> kjonigsen.net
Date: Fri, 27 Jan 2023 20:15:02 UTC
Severity: normal
Found in version 29.0.60
Fixed in version 29.1
Done: Theodor Thornhill <theo <at> thornhill.no>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: Yuan Fu <casouri <at> gmail.com>, Theodor Thornhill <theo <at> thornhill.no>
> Date: Fri, 27 Jan 2023 21:14:30 +0100
> From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
>
> When compiling a TypeScript project using tsc (or other tooling) from Emacs,
> compilation errors and warnings are not highlighted by compilation-mode.
>
> Consider the following output:
>
> src/resources/document.ts:140:22 - error TS2362: The left-hand side of an arithmetic operation must be of
> type 'any', 'number', 'bigint' or an enum type.
>
> 140 return `File-${new Date() * 1}${ext}`;
> ~~~~~~~~~~
>
> This output should cause compilation-mode to highlight the error and provide code-navigation.
>
> I know we explicitly added support for this to typescript.el back in the days, but I'm not
> sure what the "right" thing to do is now that typescrip-ts-mode is a first class Emacs citizen.
>
> Should we add compilation-mode patterns directly to the major-mode, or should we provide
> patches to compile.el instead?
Why isn't this part of compilation-error-regexp-alist-alist?
This bug report was last modified 2 years and 106 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.