{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell/issues/376","repository_url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell","labels_url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell/issues/376/comments","events_url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell/issues/376/events","html_url":"https://github.com/SublimeHaskell/SublimeHaskell/issues/376","id":280762527,"number":376,"title":"fails locate hsdev backend - Ubuntu 16.04 with stack haskell","user":{"login":"merflogin","id":2698471,"avatar_url":"https://avatars0.githubusercontent.com/u/2698471?v=4","gravatar_id":"","url":"https://api.github.com/users/merflogin","html_url":"https://github.com/merflogin","followers_url":"https://api.github.com/users/merflogin/followers","following_url":"https://api.github.com/users/merflogin/following{/other_user}","gists_url":"https://api.github.com/users/merflogin/gists{/gist_id}","starred_url":"https://api.github.com/users/merflogin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merflogin/subscriptions","organizations_url":"https://api.github.com/users/merflogin/orgs","repos_url":"https://api.github.com/users/merflogin/repos","events_url":"https://api.github.com/users/merflogin/events{/privacy}","received_events_url":"https://api.github.com/users/merflogin/received_events","type":"User","site_admin":false},"labels":[{"id":10726230,"url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell/labels/duplicate","name":"duplicate","color":"cccccc","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-12-09T22:47:39Z","updated_at":"2017-12-13T18:04:57Z","closed_at":null,"author_association":"NONE","body":"SublimeHaskell suddenly stopped working - it looked like it wasn't able to find backend (I used `hsdev`), \r\nHere are steps that I've tried to make him work again. They didn't help. Any suggestions?\r\n\r\nI've removed plugin through Package Control. Closed Sublime. And installed plugin back again.\r\nI've received the response:\r\n\r\n> No usable backends (hsdev, ghc-mod) found on PATH or\r\n> in the standard Haskell cabal and stack installation\r\n> locations.\r\n> \r\n> Please check or update your SublimeHaskell user settings,\r\n> or install hsdev or ghc-mod.\r\n\r\nwhile `whereis` clearly indicates that `hsdev` is still where it were\r\n```\r\nmerf@merf-GL552VW:~$ whereis hsdev\r\nhsdev: /home/merf/.local/bin/hsdev\r\nmerf@merf-GL552VW:~$ hsdev version\r\n0.2.5.1\r\n```\r\n\r\nWhile it is a standard stack installation place and doesn't need to be added to PATH I've put it in user settings anyway just to be sure:\r\n```\r\n{\r\n\t\"add_to_PATH\": [\"/home/merf/.local/bin\"]\r\n}\r\n```\r\nRestart of sublime showed that `zzplugin` fails to load while trying to get version of `hsev` - it can't get `install_dir`.\r\nHere is sublime console\r\n ```\r\n...\r\nreloading plugin SublimeHaskell.types\r\nreloading plugin SublimeHaskell.zzplugin\r\nplugins loaded\r\nTraceback (most recent call last):\r\n  File \"/opt/sublime_text/sublime_plugin.py\", line 210, in on_api_ready\r\n    m.plugin_loaded()\r\n  File \"/home/merf/.config/sublime-text-3/Packages/SublimeHaskell/zzplugin.py\", line 34, in plugin_loaded\r\n    backend_mgr.get_backends()\r\n  File \"/home/merf/.config/sublime-text-3/Packages/SublimeHaskell/internals/backend_mgr.py\", line 140, in get_backends\r\n    self.possible_backends = self.filter_possible(Settings.PLUGIN.backends)\r\n  File \"/home/merf/.config/sublime-text-3/Packages/SublimeHaskell/internals/backend_mgr.py\", line 208, in filter_possible\r\n    if ubclazz is not None and ubclazz.is_available(**ubackend.get('options', {})):\r\n  File \"/home/merf/.config/sublime-text-3/Packages/SublimeHaskell/hsdev/backend.py\", line 93, in is_available\r\n    hsdev_ver = HsDevBackend.hsdev_version(kwargs.get('exec-with'), kwargs.get('install-dir'))\r\n  File \"/home/merf/.config/sublime-text-3/Packages/SublimeHaskell/hsdev/backend.py\", line 212, in hsdev_version\r\n    hsdev_proc = ProcHelper.exec_with_wrapper(exec_with, install_dir, ['hsdev', 'version'])\r\n  File \"/home/merf/.config/sublime-text-3/Packages/SublimeHaskell/internals/proc_helper.py\", line 175, in exec_with_wrapper\r\n    raise RuntimeError('ProcHelper.exec_with_wrapper: invalid install_dir (None)')\r\nRuntimeError: ProcHelper.exec_with_wrapper: invalid install_dir (None)\r\n```"},"comment":{"url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell/issues/comments/351473323","html_url":"https://github.com/SublimeHaskell/SublimeHaskell/issues/376#issuecomment-351473323","issue_url":"https://api.github.com/repos/SublimeHaskell/SublimeHaskell/issues/376","id":351473323,"user":{"login":"bscottm","id":355395,"avatar_url":"https://avatars2.githubusercontent.com/u/355395?v=4","gravatar_id":"","url":"https://api.github.com/users/bscottm","html_url":"https://github.com/bscottm","followers_url":"https://api.github.com/users/bscottm/followers","following_url":"https://api.github.com/users/bscottm/following{/other_user}","gists_url":"https://api.github.com/users/bscottm/gists{/gist_id}","starred_url":"https://api.github.com/users/bscottm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bscottm/subscriptions","organizations_url":"https://api.github.com/users/bscottm/orgs","repos_url":"https://api.github.com/users/bscottm/repos","events_url":"https://api.github.com/users/bscottm/events{/privacy}","received_events_url":"https://api.github.com/users/bscottm/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T18:04:57Z","updated_at":"2017-12-13T18:04:57Z","author_association":"CONTRIBUTOR","body":"@paxter: \r\n\r\n(a) The two _SublimeHaskell_ submenus are attached to _PackageControl_ and _SublimeREPL_. My guess is that the _SublimeREPL_ submenus are missing or empty, based on the picture. _PackageControl_ submenus would show up if you were navigating the OS X _Preferences_ menu item under *Sublime Text*. Check to see if you have _SublimeREPL_ installed:\r\n\r\n    <Shift>-<Command>-<P> Package Control: List Packages\r\n\r\n_SublimeREPL_  should be in that list. If not, try installing it. That should fix the submenu problem.\r\n\r\n(b) Which set of backend options do you really want to use? \"Local hsdev\" with `hsdev` installed in `~/Library/Haskell/bin`? The one line:\r\n\r\n    Sublime Haskell: ProcHelper.exec_with_wrapper: ['cabal', 'exec', 'hsdev', '--', 'version'] in /Users/user/Library/Haskell/bin\r\n\r\nindicates that you are trying to execute a `cabal`-wrapped `hsdev` installed there. Not really a problem, just excess overhead to get a `hsdev` backend to run.\r\n\r\n(c) Your log doesn't show me which `hsdev` was actually started. Try putting this in your _SublimeHaskell_ user settings (or modify your `backend` _SublimeHaskell_ user settings):\r\n\r\n    \"backends\": {\r\n        \"Local hsdev\": {\r\n            \"default\": true,\r\n            \"backend\": \"hsdev\",\r\n        }\r\n    }\r\n\r\n`~/Library/Haskell/bin` is automagically added to your `PATH` if you're running on OS X (see the `std_places` line in the log -- _SublimeHaskell_ augments the `PATH` it uses with a few extra well known _Haskell_ paths. You shouldn't have to tweak the `add_to_PATH` setting.)\r\n\r\n(d) Open a `.hs` file. _SublimeHaskell_ will not start the backend until you switch to a _Haskell_ source file (or cabal file.) You should see a few status messages starting with \"Inspecting...\" if `hsdev` has started up correctly. Once the source inspection process is done, try:\r\n\r\n    <Shift>-<Command>-<P> SublimeHaskell: Check & Lint\r\n\r\nHope this helps you move a little farther forward."}}
{"actor":{"display_login":"bscottm"}}