senny / emacs-eclim

This project brings some of the great eclipse features to emacs developers. It is based on the eclim project, which provides eclipse features for vim.
http://www.emacswiki.org/emacs/EmacsEclim
587 stars 102 forks source link

Using command eclim-java-run-run #244

Open nloyola opened 8 years ago

nloyola commented 8 years ago

When using the command eclim-run-class the output is displayed in the *compilation* buffer. However, when using the eclim-java-run-run the output is displayed in a different buffer. It it possible for the output to be shown in the *compilation* buffer?

nloyola commented 8 years ago

I created my own function to do this.

(defun eclim-run-configuartion (configuration-name)
      "Runs the configuration given in CONFIGURATION-NAME in the compilation buffer."
      (interactive (list (eclim-java-run--ask-which-configuration)))
      (let* ((current-directory default-directory)
             (configurations (eclim-java-run--load-configurations (eclim-project-name)))
             (configuration (eclim-java-run--configuration configuration-name configurations))
             (project-dir (eclim-java-run--project-dir (eclim-project-name)))
             (classpath (eclim/java-classpath (eclim-project-name)))
             (command (eclim-java-run--command configuration (eclim-java-run--java-vm-args classpath))))
        (setq default-directory project-dir)
        (compile command)
        (setq default-directory current-directory)
        ))

Maybe it can be added to the package?

LeaveNhA commented 6 years ago

I think this problem is still alive.

skybert commented 6 years ago

@LeaveNhA : the emacs-eclim project has moved to https://github.com/emacs-eclim/emacs-eclim. Have you tried out the version from that repo?

LeaveNhA commented 6 years ago

@skybert I will inform you about result. Thank you.