Giter VIP home page Giter VIP logo

Comments (6)

tigerjack avatar tigerjack commented on May 23, 2024 1

@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.

from spacemacs.

arifer612 avatar arifer612 commented on May 23, 2024

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.

from spacemacs.

tigerjack avatar tigerjack commented on May 23, 2024

@arifer612

Here is the CPU profiling, which shows a 70% of CPU time spent on evil-tex-mode
cpu_profile.txt

from spacemacs.

arifer612 avatar arifer612 commented on May 23, 2024

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.

from spacemacs.

arifer612 avatar arifer612 commented on May 23, 2024

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!

from spacemacs.

tigerjack avatar tigerjack commented on May 23, 2024

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!

from spacemacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.