{"action":"created","issue":{"url":"https://api.github.com/repos/yi-editor/yi/issues/904","repository_url":"https://api.github.com/repos/yi-editor/yi","labels_url":"https://api.github.com/repos/yi-editor/yi/issues/904/labels{/name}","comments_url":"https://api.github.com/repos/yi-editor/yi/issues/904/comments","events_url":"https://api.github.com/repos/yi-editor/yi/issues/904/events","html_url":"https://github.com/yi-editor/yi/issues/904","id":174504594,"number":904,"title":"The new shining Emacs config triggers an error upon attempt to open a file","user":{"login":"Hi-Angel","id":7935057,"avatar_url":"https://avatars.githubusercontent.com/u/7935057?v=3","gravatar_id":"","url":"https://api.github.com/users/Hi-Angel","html_url":"https://github.com/Hi-Angel","followers_url":"https://api.github.com/users/Hi-Angel/followers","following_url":"https://api.github.com/users/Hi-Angel/following{/other_user}","gists_url":"https://api.github.com/users/Hi-Angel/gists{/gist_id}","starred_url":"https://api.github.com/users/Hi-Angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hi-Angel/subscriptions","organizations_url":"https://api.github.com/users/Hi-Angel/orgs","repos_url":"https://api.github.com/users/Hi-Angel/repos","events_url":"https://api.github.com/users/Hi-Angel/events{/privacy}","received_events_url":"https://api.github.com/users/Hi-Angel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-01T11:55:18Z","updated_at":"2016-09-01T15:49:54Z","closed_at":"2016-09-01T12:32:29Z","body":"To reproduce:\r\n\r\n1. Replace old config with the new static one, i.e. `cp example-configs/yi-emacs-vty-static/Main.hs ~/.config/yi/yi.hs`\r\n2. Run yi, i.e. `stack exec yi`\r\n3. Press <kdb>Ctrl</kdb>+<kdb>x</kdb> <kdb>Ctrl</kdb>+<kdb>f<kdb> to open a new file; an error appears:\r\n\t\r\n\t\t[error: /home/constantine/Projects/my-yi-repo/yi/--dyre-master-binary=/home/constantine/Projects/my-yi-repo/yi/.stack-work/install/x86_64-linux/nightly-2016-07-31/8.0.1/bin/.: getDirectoryContents: does not exist (No such file or directory)]\r\n\r\nP.S.: the problem is only relevant to `static` config, `dynamic` one works fine."},"comment":{"url":"https://api.github.com/repos/yi-editor/yi/issues/comments/244123264","html_url":"https://github.com/yi-editor/yi/issues/904#issuecomment-244123264","issue_url":"https://api.github.com/repos/yi-editor/yi/issues/904","id":244123264,"user":{"login":"noughtmare","id":2665074,"avatar_url":"https://avatars.githubusercontent.com/u/2665074?v=3","gravatar_id":"","url":"https://api.github.com/users/noughtmare","html_url":"https://github.com/noughtmare","followers_url":"https://api.github.com/users/noughtmare/followers","following_url":"https://api.github.com/users/noughtmare/following{/other_user}","gists_url":"https://api.github.com/users/noughtmare/gists{/gist_id}","starred_url":"https://api.github.com/users/noughtmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noughtmare/subscriptions","organizations_url":"https://api.github.com/users/noughtmare/orgs","repos_url":"https://api.github.com/users/noughtmare/repos","events_url":"https://api.github.com/users/noughtmare/events{/privacy}","received_events_url":"https://api.github.com/users/noughtmare/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T15:49:54Z","updated_at":"2016-09-01T15:49:54Z","body":"I meant to say that documentation should be written. Sorry for the confusion.\r\n\r\n`stack install` will install Yi globally (so you don't have to add `stack exec` to the beginning of your commands*). `stack build` will only install packages locally (in the current stack 'sandbox').\r\n\r\nIf you didn't change the package.yaml file and you also didn't start Yi with `stack exec yi-emacs-vty` then you can't be running the static version. You are probably running an older version of yi that is still on your path (`stack exec` can run arbitrary programs from your path, e.g. `stack exec firefox` will start firefox).\r\n\r\nI thought your first step was to copy the entire folder because I read it to quickly. Actually, you don't need to move the folder at all with the static configs. Only the dynamic configs (the ones that use dyre) need to be moved to your `~/.config/yi` folder. \r\n\r\n* Note: you need to have ~/.local/bin (the location that stack moves executables to) added to your path"}}
{"actor":{"display_login":"noughtmare"}}