{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-javac/issues/23","labels_url":"https://api.github.com/repos/AtomLinter/linter-javac/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-javac/issues/23/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-javac/issues/23/events","html_url":"https://github.com/AtomLinter/linter-javac/pull/23","id":93954122,"number":23,"title":"Port to linter-plus","user":{"login":"daw42","id":924004,"avatar_url":"https://avatars.githubusercontent.com/u/924004?v=3","gravatar_id":"","url":"https://api.github.com/users/daw42","html_url":"https://github.com/daw42","followers_url":"https://api.github.com/users/daw42/followers","following_url":"https://api.github.com/users/daw42/following{/other_user}","gists_url":"https://api.github.com/users/daw42/gists{/gist_id}","starred_url":"https://api.github.com/users/daw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daw42/subscriptions","organizations_url":"https://api.github.com/users/daw42/orgs","repos_url":"https://api.github.com/users/daw42/repos","events_url":"https://api.github.com/users/daw42/events{/privacy}","received_events_url":"https://api.github.com/users/daw42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-07-09T04:44:51Z","updated_at":"2015-07-31T20:55:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AtomLinter/linter-javac/pulls/23","html_url":"https://github.com/AtomLinter/linter-javac/pull/23","diff_url":"https://github.com/AtomLinter/linter-javac/pull/23.diff","patch_url":"https://github.com/AtomLinter/linter-javac/pull/23.patch"},"body":"This pull request ports linter javac to the new Linter API.  \r\n\r\nIt also uses a longer regular expression to extract the column number for errors and warnings.\r\n\r\nThis pull request relates to issue #20."},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-javac/issues/comments/126810260","html_url":"https://github.com/AtomLinter/linter-javac/pull/23#issuecomment-126810260","issue_url":"https://api.github.com/repos/AtomLinter/linter-javac/issues/23","id":126810260,"user":{"login":"daw42","id":924004,"avatar_url":"https://avatars.githubusercontent.com/u/924004?v=3","gravatar_id":"","url":"https://api.github.com/users/daw42","html_url":"https://github.com/daw42","followers_url":"https://api.github.com/users/daw42/followers","following_url":"https://api.github.com/users/daw42/following{/other_user}","gists_url":"https://api.github.com/users/daw42/gists{/gist_id}","starred_url":"https://api.github.com/users/daw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daw42/subscriptions","organizations_url":"https://api.github.com/users/daw42/orgs","repos_url":"https://api.github.com/users/daw42/repos","events_url":"https://api.github.com/users/daw42/events{/privacy}","received_events_url":"https://api.github.com/users/daw42/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T20:55:38Z","updated_at":"2015-07-31T20:55:38Z","body":"Looks like the problem is that javac expects a lower-case 'j' for the file extension.  Without that, it seems to think that it is a flag or a class name (depending on the classpath).  For example, I just tried this in the working directory:\r\n\r\n```\r\n$ javac test.Java \r\nerror: Class names, 'test.Java', are only accepted if annotation processing is explicitly requested\r\n1 error\r\n\r\n$ javac ./test.Java \r\njavac: invalid flag: ./test.Java\r\nUsage: javac <options> <source files>\r\nuse -help for a list of possible options\r\n```\r\n\r\nTry a file that has an extension that's all lower case.\r\n\r\nI like the patch.  Better to base everything from the working directory.  \r\n\r\nThe regex targets only file syntax type errors, I might need to expand it to handle errors like the one you found.\r\n"}}