Giter Site home page Giter Site logo

Comments (4)

Wilfred avatar Wilfred commented on July 17, 2024

If you use global-eclim-mode, eclim-mode will be used for every buffer. Try this:

(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim"))
(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim/vendor"))

(require 'eclim)
(require 'eclimd)

(setq eclim-auto-save t)
(add-hook 'java-mode-hook '(lambda () (eclim-mode t)))
(setq eclim-print-debug-messages t)

That being said, I haven't seen a lag with eclim sending ping commands on my system (although it's Linux).

from emacs-eclim.

scubacabra avatar scubacabra commented on July 17, 2024

hmmm... that didn't help. It still is pinging for every buffer. :(

I though that the (add-hook 'java-mode-hok '(lambda () (eclim-mode t))) would limit it to only java buffers?

Could I have set something up wrong?

(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim"))
(add-to-list 'load-path (concat dotfiles-dir "plugins/emacs-eclim/vendor"))

(require 'eclim)
(require 'eclimd)

(setq eclim-auto-save t)
;;(global-eclim-mode)
(add-hook 'java-mode-hook '(lambda () (eclim-mode t)))
(setq eclim-print-debug-messages t)

It isn't a long lag, a second or two -- it is a little bit annoying though. I wish I could turn it on/off whenever I actually wanted to use it.

from emacs-eclim.

fred-o avatar fred-o commented on July 17, 2024

I see in the logs that emacs-eclim apparently performs three separate 'ping' calls and one 'project_list' call every time I open a new java file. For me, it happens almost instantaneously anyway, so it's not that big of a problem. But it's kind of an ugly solution.

As far as I can see, it's the eclim--running-p function that's the culprit. Several other functions call it to determine if there is an eclim running or not. Maybe we could cache that value?

Or perhaps we should rethink why that function is necessary. Maybe it would be better just to assume that eclim is present, and provide a good error message if calls are failing.

from emacs-eclim.

fred-o avatar fred-o commented on July 17, 2024

This should be fixed now.

from emacs-eclim.

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.