Closed tigerjack closed 2 months ago
It might be helpful to run a profiler to check what's going on under the hood. My LaTeX files are humongous an even despite using LSP as the backend, it takes about a second (two tops) to load them all up.
@arifer612
Here is the CPU profiling, which shows a 70% of CPU time spent on evil-tex-mode
cpu_profile.txt
Yep, 70% just for evil-tex-mode
is quite significant. Unfortunately, I am not
able to reproduce this issue with my setup, nor on a fresh setup with the most
basic configurations. It might just be an unexpected issue or perhaps something
amongst your currently installed packages are interfering with it. I would
suggest upgrading all your packages first to see if there's improvement, and if
there isn't then to delete the contents of ~/emacs.d/elpa/29.3
to force Emacs
to re-download all the packages again.
@arifer612 thanks for your help.
After further investigation, I discovered that the issue was due to the following (now commented) line in .dir-locals.el
, probably firing a recursive activation of function calls.
((latex-mode
;; (mode . latex )
))
I don't why it got there first of all, or if it was used before the recent auctex upgrade.
You're welcome! On another note, that's quite a nasty recursive hell you ended up in :rofl:, good thing you caught that. Hope your TeX experience on Emacs/Spacemacs goes smooth from now on!
You're welcome! On another note, that's quite a nasty recursive hell you ended up in š¤£, good thing you caught that. Hope your TeX experience on Emacs/Spacemacs goes smooth from now on!
It's incredible how fast a file is opening now XD for the last month or so, I got used to incredible amount of delays!
Description :octocat:
Opening any tex files takes seconds.
Reproduction guide :beetle:
To debug the issue
toggle-debug-on-quit
.tex
fileC-g
Observed behaviour: :eyes: :broken_heart: Opening any tex files takes seconds.
Expected behaviour: :heart: :smile: Opening any tex files takes way less.
System Info :computer:
Backtrace :paw_prints: