Skip to content

Conversation

@talwrii
Copy link

@talwrii talwrii commented Jan 2, 2023

Links in tracebacks in the compile buffer weren't working for me. This fixes them.

This patcg provides a function (jest-load-compilation-errors) that modifies the global variables compilation-error-regexp-alist-alist and compilation-error-regexp-alist to support jest links. This would need to be called once in init (possible with use-package).

Note that it's possible that this might cause some conflicts with other modes. The suggested work around for this seems to be the you use dynamic scoping when calling compile but this didn't seem to be the preferred aprhproach.

@ErkiDerLoony
Copy link

Thank you @talwrii !

I tried this locally and it fixes the problem for me.

Hopefully this gets merged at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants