{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-server/issues/1065","labels_url":"https://api.github.com/repos/ensime/ensime-server/issues/1065/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-server/issues/1065/comments","events_url":"https://api.github.com/repos/ensime/ensime-server/issues/1065/events","html_url":"https://github.com/ensime/ensime-server/issues/1065","id":101527421,"number":1065,"title":"emacs frozen right after M-x ensime","user":{"login":"betehess","id":196849,"avatar_url":"https://avatars.githubusercontent.com/u/196849?v=3","gravatar_id":"","url":"https://api.github.com/users/betehess","html_url":"https://github.com/betehess","followers_url":"https://api.github.com/users/betehess/followers","following_url":"https://api.github.com/users/betehess/following{/other_user}","gists_url":"https://api.github.com/users/betehess/gists{/gist_id}","starred_url":"https://api.github.com/users/betehess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betehess/subscriptions","organizations_url":"https://api.github.com/users/betehess/orgs","repos_url":"https://api.github.com/users/betehess/repos","events_url":"https://api.github.com/users/betehess/events{/privacy}","received_events_url":"https://api.github.com/users/betehess/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-17T22:59:55Z","updated_at":"2015-08-18T21:18:56Z","closed_at":null,"body":"It is \"Waiting for connection-info\"...\r\n\r\nI was having this issue from time to time. I would normally force kill emacs, go back into the project, restart ensime. With the latest update for ensime (today), it systematically freezes right away. I don't think I have anything special in my configuration. I am not sure where to look to provide a better feedback.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25880534-emacs-frozen-right-after-m-x-ensime?utm_campaign=plugin&utm_content=tracker%2F239449&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F239449&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/ensime/ensime-server/issues/comments/132354807","html_url":"https://github.com/ensime/ensime-server/issues/1065#issuecomment-132354807","issue_url":"https://api.github.com/repos/ensime/ensime-server/issues/1065","id":132354807,"user":{"login":"betehess","id":196849,"avatar_url":"https://avatars.githubusercontent.com/u/196849?v=3","gravatar_id":"","url":"https://api.github.com/users/betehess","html_url":"https://github.com/betehess","followers_url":"https://api.github.com/users/betehess/followers","following_url":"https://api.github.com/users/betehess/following{/other_user}","gists_url":"https://api.github.com/users/betehess/gists{/gist_id}","starred_url":"https://api.github.com/users/betehess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betehess/subscriptions","organizations_url":"https://api.github.com/users/betehess/orgs","repos_url":"https://api.github.com/users/betehess/repos","events_url":"https://api.github.com/users/betehess/events{/privacy}","received_events_url":"https://api.github.com/users/betehess/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T21:18:56Z","updated_at":"2015-08-18T21:18:56Z","body":"Here are a few more information.\r\n\r\n> Platform (Windows/Mac etc)\r\n\r\nOS X Yosemite 10.10.5. I had installed emacs through homebrew as explained in http://www.emacswiki.org/emacs/EmacsForMacOS.\r\n\r\n> Emacs version.\r\n\r\n```\r\n➜  ~  emacs -v\r\nemacsclient 24.5\r\n➜  ~  cat ~/.emacs\r\n(custom-set-variables\r\n '(inhibit-startup-screen t))\r\n(custom-set-faces\r\n )\r\n\r\n;; http://www.rensselaer.org/dept/acs/rpinfo/common/Computing/Consulting/Software/Emacs/Hints/backup.html\r\n(setq make-backup-files nil)\r\n\r\n;; http://www.emacswiki.org/emacs/EmacsForMacOS#toc26\r\n(when (eq system-type 'darwin)\r\n  (setq ns-command-modifier 'meta)\r\n  )\r\n\r\n(tool-bar-mode -1)\r\n\r\n(require 'package)\r\n(add-to-list 'package-archives\r\n\t     '(\"melpa\" . \"http://melpa.milkbox.net/packages/\") t)\r\n(package-initialize)\r\n\r\n(when (not package-archive-contents)\r\n  (package-refresh-contents))\r\n\r\n(require 'ensime)\r\n(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)\r\n\r\n(setq scala-indent:use-javadoc-style t\r\n      popup-complete-enabled-modes '(scala-mode)\r\n      ensime-default-buffer-prefix \"ENSIME-\"\r\n      scala-outline-popup-select 'closest)\r\n\r\n;; flx and idof\r\n;; https://github.com/lewang/flx\r\n(require 'flx-ido)\r\n(ido-mode 1)\r\n(ido-everywhere 1)\r\n(flx-ido-mode 1)\r\n;; disable ido faces to see flx highlights.\r\n(setq ido-enable-flex-matching t)\r\n(setq ido-use-faces nil)\r\n(global-set-key \"\\M-x\" 'smex)\r\n\r\n(require 'windmove)\r\n(windmove-default-keybindings 'meta)\r\n\r\n;; http://web-mode.org/\r\n(require 'web-mode)\r\n(add-to-list 'auto-mode-alist '(\"\\\\.html?\\\\'\" . web-mode))\r\n(defun my-web-mode-hook ()\r\n  \"Hooks for Web mode.\"\r\n  (setq web-mode-markup-indent-offset 2)\r\n  (setq web-mode-css-indent-offset 2)\r\n  (setq web-mode-code-indent-offset 2)\r\n  (setq-default indent-tabs-mode nil)\r\n  (setq-default tab-width 2)\r\n\r\n)\r\n(add-hook 'web-mode-hook 'my-web-mode-hook)\r\n\r\n;; https://github.com/bbatsov/projectile\r\n(projectile-global-mode)\r\n(persp-mode)\r\n(require 'persp-projectile)\r\n\r\n;; https://raw.githubusercontent.com/magit/magit/next/Documentation/RelNotes/1.4.0.txt\r\n;;(setq magit-last-seen-setup-instructions \"1.4.0\")\r\n```\r\n> What is displayed in the inferior-ensime-buffer (assuming you can get to it)\r\n\r\nThe last thing I can see is \"Waiting for connection-info\". I cannot do anything from there. Is there a place where I can find logs or anything?\r\n\r\n> you have an example project to point us at?\r\n\r\nHere is how I can systematically reproduce the problem on my machine:\r\n\r\n```\r\n➜  foobarbaz git:(master) ✗ tree\r\n.\r\n├── build.sbt\r\n└── src\r\n    └── main\r\n        └── scala\r\n            └── foobar\r\n                └── Foo.scala\r\n\r\n4 directories, 2 files\r\n➜  foobarbaz git:(master) ✗ cat build.sbt\r\nname in ThisBuild := \"foobar\"\r\n\r\norganization in ThisBuild := \"foooo\"\r\n\r\nversion in ThisBuild := \"0.1-SNAPSHOT\"\r\n\r\nscalaVersion in ThisBuild := \"2.11.7\"\r\n\r\nscalacOptions in ThisBuild ++= Seq(\"-feature\", \"-deprecation\", \"-unchecked\")\r\n\r\nlazy val root = project.in(file(\".\"))\r\n\r\n➜  foobarbaz git:(master) ✗ cat src/main/scala/foobar/Foo.scala\r\npackage foobar\r\n\r\ntrait Foo\r\n➜  foobarbaz git:(master) ✗ sbt gen-ensime\r\n```\r\n\r\nThen I open emacs on `src/main/scala/foobar/Foo.scala` (that's important), then `M-x ensime`, then it freezes. Apparently it works fine when I first launch ensime from `build.sbt` and only then open `Foo.scala`.\r\n\r\nI hope this is not happening only on my machine :-/"}}