{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/5143","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5143/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5143/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5143/events","html_url":"https://github.com/elixir-lang/elixir/issues/5143","id":171720726,"number":5143,"title":"New warning format cannot be onelined","user":{"login":"geowa4","id":136390,"avatar_url":"https://avatars.githubusercontent.com/u/136390?v=3","gravatar_id":"","url":"https://api.github.com/users/geowa4","html_url":"https://github.com/geowa4","followers_url":"https://api.github.com/users/geowa4/followers","following_url":"https://api.github.com/users/geowa4/following{/other_user}","gists_url":"https://api.github.com/users/geowa4/gists{/gist_id}","starred_url":"https://api.github.com/users/geowa4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geowa4/subscriptions","organizations_url":"https://api.github.com/users/geowa4/orgs","repos_url":"https://api.github.com/users/geowa4/repos","events_url":"https://api.github.com/users/geowa4/events{/privacy}","received_events_url":"https://api.github.com/users/geowa4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-17T17:56:36Z","updated_at":"2016-08-19T14:56:22Z","closed_at":"2016-08-18T21:06:02Z","body":"### Environment\r\n\r\n* Elixir version (elixir -v): Elixir 1.3.2 / Erlang/OTP 19\r\n* Operating system: OS X El Capitan\r\n\r\n### Current behavior\r\n\r\nI am running a linter and syntax checker in Vim. This plugin uses a regular expression to parse the output of commands like `elixirc` to show errors in the gutter. After upgrading to Elixir 1.3, warnings no longer display in my editor since the format has changed to be multiline.\r\n\r\n```\r\nwarning: variable x is unused\r\n  foo.ex:2\r\n```\r\n\r\n### Expected behavior\r\n\r\nWarning messages to be of the form `foo.ex:2: warning: variable x is unused` so tools like my syntax checker continue to work. \r\n\r\n### Suggestion\r\n\r\nAfter reading through the Changelog for 1.3, it seems like there is an effort to improve warnings. To keep in line with that, adding a flag to conditionally add the `\"\\n \"` found here (https://github.com/elixir-lang/elixir/blob/master/lib/elixir/src/elixir_errors.erl#L16) seems appropriate, but anything that makes the output easily machine readable is OK with me.\r\n\r\n### References\r\n\r\nFor reference, I use Neomake (https://github.com/neomake/neomake/blob/master/autoload/neomake/makers/ft/elixir.vim#L11) in NeoVim."},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/241041248","html_url":"https://github.com/elixir-lang/elixir/issues/5143#issuecomment-241041248","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/5143","id":241041248,"user":{"login":"dantswain","id":463747,"avatar_url":"https://avatars.githubusercontent.com/u/463747?v=3","gravatar_id":"","url":"https://api.github.com/users/dantswain","html_url":"https://github.com/dantswain","followers_url":"https://api.github.com/users/dantswain/followers","following_url":"https://api.github.com/users/dantswain/following{/other_user}","gists_url":"https://api.github.com/users/dantswain/gists{/gist_id}","starred_url":"https://api.github.com/users/dantswain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantswain/subscriptions","organizations_url":"https://api.github.com/users/dantswain/orgs","repos_url":"https://api.github.com/users/dantswain/repos","events_url":"https://api.github.com/users/dantswain/events{/privacy}","received_events_url":"https://api.github.com/users/dantswain/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T14:56:22Z","updated_at":"2016-08-19T14:56:22Z","body":"This doesn't seem like an unreasonable request to me.  The new format is very nice when working in the shell, but a LOT command line tools want one thing per line.  @geowa4 is just asking for an _option_ to support bare text one-line-per-warning output.  @josevalim would you be willing to consider a pull request that adds this option?\r\n\r\nAlso you said this 'works' for exceptions - what do you mean by that?  Are there vim plugins that you know of that deal well with this?  Maybe @geowa4 could try that plugin."}}
{"actor":{"display_login":"dantswain"}}