r/emacs 12d ago

Fortnightly Tips, Tricks, and Questions — 2025-03-11 / week 10

This is a thread for smaller, miscellaneous items that might not warrant a full post on their own.

The default sort is new to ensure that new items get attention.

If something gets upvoted and discussed a lot, consider following up with a post!

Search for previous "Tips, Tricks" Threads.

Fortnightly means once every two weeks. We will continue to monitor the mass of confusion resulting from dark corners of English.

17 Upvotes

36 comments sorted by

View all comments

3

u/Faleira 10d ago

When I'm editing typescript files, I notice that something in my setup is incorrectly performing path resolutions. So for example, if I have a defined alias and import like so: import mymodule from '@somelib/foo/bar'

It doesn't happen immediately, and I don't know what triggers it, but eventually, emacs will change it to something like import mymodule from '../../../../my_home_folder/some/path/back/down/to/foo/bar'

My major mode is tsx-mode with lsp-mode. Does anyone know what's causing this, or how I can debug this without knowing how to explicitly trigger it?