"error in process filter invalid project nil"
Hi, I am not sure if my emacs eclim is broken, or it is the expected behaviour because I might be doing the procedure wrong. But when I do M-x eclimd-start RET ~/any-random-workspace it starts the server but says: "error in process filter: invalid project" every time no matter what is included in the workspace seemingly. Is this normal behavior or have I screwed something up?
Also, is there an automated way to make the file directory structure of an eclipse project/workspace without having to do: cd, mkdir, cd, mkdir, cd mkdir etc for a file structure like:
Test/
├─ build.gradle
└─ src/main/java/Test.java
For everytime I want to make an eclim project? Becuase currently I have to manually make every directory by hand and then fill them with nothing expect for java/* or similar.
Am I supposed to setup the file structure of a workspace/project and then open a file in the project before starting eclimd?
Steps to reproduce the problem
I have eclipse installed within the directory: /usr/lib/eclipse and inside there is a file called eclimd, and when I do: ./eclimd from within the directory, it launches the server without asking about what workspace to use. Is that supposed to be a normal behaviour?
Usually when I boot my computer and try doing some java programming I follow these steps: Start emacs, Enter: M-X start-eclimd RET ~/any-random-workspace
Then the output will show that the error proccess filter project is invalid and nil even though it is a workspace and that workspace actually contains a project?
Emacs Configuration Startup File ~/.emacs.d/init.el
` (require 'package) (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) (not (gnutls-available-p)))) (proto (if no-ssl "http" "https"))) (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) (when (< emacs-major-version 24) (add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/")))))
(package-initialize)
(blink-cursor-mode 0) (setq initial-scratch-message "") (setq inhibit-startup-message t) (setq visible-bell t) (setq inhibit-startup-echo-area-message "guerry") (scroll-bar-mode 0) (tool-bar-mode 0) (menu-bar-mode 0)
(custom-set-variables '(custom-enabled-themes (quote (solarized-dark))) '(custom-safe-themes (quote ("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" "a8245b7cc985a0610d71f9852e9f2767ad1b852c2bdea6f4aadc12cce9c4d6d0" default))) '(eclimd-executable "/usr/lib/eclipse/eclimd") '(package-selected-packages (quote (gradle-mode eclim solarized-theme use-package)))) (custom-set-faces )
(require 'eclim) (add-hook 'java-mode-hook 'eclim-mode)
(require 'eclimd)
(require 'gradle-mode) (add-hook 'java-mode-hook '(lambda() (gradle-mode 1)))
(defun build-and-run () (interactive) (gradle-run "build run"))
(define-key gradle-mode-map (kbd "C-c C-r") 'build-and-run) `
package version information
I am not sure of how to find the package version information but I installed the latest ones 12 hours ago as I was trying to setup emacs eclim for the first time. So they are most likely the latest possible version as of: 09-10-2018
I am running the latest: Eclim-emacs and the latest: Gradle
Java Development Kit Version
openjdk 10.0.2 2018-07-17 OpenJDK Runtime Environment (build 1.0.2+13) OpenJDK 64-Bit Server VM (build 10.0.2+13, mixed mode)
Eclipse version
Eclipse-java-4.8-2 photon, June 2018
Eclim version
Eclim 2.80 Installed from .bin file from eclim site
Emacs version:
Emacs 26.1
Operating system:
Arch Linux
@Novantix can you add the following to your config and then try it again and attach the contents of the *eclimd* and *Messages* buffers?
(setq eclim-print-debug-messages t)
I think this issue can be closed now? Related, but different issues with start/stop elimd #100 and #101