reddit / emacs

How to create regexp for compilation-error-regexp-alist (react)

darkawower · 2022-10-04 15:30
I try to add regexp for the compilation buffer (vite + react) for next output error: src/pages/MainPage/MainPage.tsx:18:18 - error TS2304: Cannot find name 'SocialMedia'. 18 <SocialMedia github="https://github.com/" /> ~~~~~~~~~~~ My regexp: (add-to-list 'compilation-error-regexp-alist '("^\\([_[:alnum:]-/.]*\\):\\([0-9]+\\):\\([0-9]+\\) - [A-Za-z[:space:]0-9:'.]*$" 1 2 3)) But after compilation i don't see error message inside compilation buffer. When i tried to use such regexp inside regexp builder everything is fine...what i could mess?
00-11 · 2022-10-04 16:02
https://emacs.stackexchange.com/q/73920/105