I work on a typescript project that I compile with
webpack serve, using
*compilation buffer shows the webpack output, which includes typescript errors. After some webpack hacking, I managed to get the errors into a
compilation mode compatible format. When I select an error (which runs
compilation-goto-error on this error), emacs opens the respective file in another buffer and jumps to the correct line. This works well so far.
When I change files,
webpack serve immediately recompiles the project, and echos new error messages into
When I now edit a file, emacs seems to memorise error locations at the start of the compilation. Meaning:
- I start compilation
- I edit file
index.tsto add a new line after line 4
- webpack reports an error at
I assume that this happens because
compilation mode knows that line 6 in
index.ts at the start of the compilation is now at line 7. However, I don't need that memoization, as the compilation reports current (correct) lines. How can I make
compilation-goto-error use current lines, not cached onces?