{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/816","labels_url":"https://api.github.com/repos/Microsoft/PTVS/issues/816/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/PTVS/issues/816/comments","events_url":"https://api.github.com/repos/Microsoft/PTVS/issues/816/events","html_url":"https://github.com/Microsoft/PTVS/issues/816","id":105323581,"number":816,"title":"Provide a \"compile\" option","user":{"login":"assafmendelson","id":9382843,"avatar_url":"https://avatars.githubusercontent.com/u/9382843?v=3","gravatar_id":"","url":"https://api.github.com/users/assafmendelson","html_url":"https://github.com/assafmendelson","followers_url":"https://api.github.com/users/assafmendelson/followers","following_url":"https://api.github.com/users/assafmendelson/following{/other_user}","gists_url":"https://api.github.com/users/assafmendelson/gists{/gist_id}","starred_url":"https://api.github.com/users/assafmendelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assafmendelson/subscriptions","organizations_url":"https://api.github.com/users/assafmendelson/orgs","repos_url":"https://api.github.com/users/assafmendelson/repos","events_url":"https://api.github.com/users/assafmendelson/events{/privacy}","received_events_url":"https://api.github.com/users/assafmendelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T08:05:28Z","updated_at":"2015-09-08T23:24:38Z","closed_at":null,"body":"Often, I write code and make mistakes. The problem is that usually I only find those mistakes when I run the code. I often use pylint to find them but a more useful option would be to \"compile\" the code and check if there are errors.\r\nThe way I see it there are several layers of doing this:\r\n1. The \"compile\" option would simply run a properly configured pylint which would only check for warning and errors related to running (i.e. no coding style stuff).\r\n2. The \"compile\" option could add additional analysis tools to find errors.\r\n3. We might have something which would update this in the background so we can see the warnings in the editor while writing."},"comment":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/comments/138729916","html_url":"https://github.com/Microsoft/PTVS/issues/816#issuecomment-138729916","issue_url":"https://api.github.com/repos/Microsoft/PTVS/issues/816","id":138729916,"user":{"login":"zooba","id":1693688,"avatar_url":"https://avatars.githubusercontent.com/u/1693688?v=3","gravatar_id":"","url":"https://api.github.com/users/zooba","html_url":"https://github.com/zooba","followers_url":"https://api.github.com/users/zooba/followers","following_url":"https://api.github.com/users/zooba/following{/other_user}","gists_url":"https://api.github.com/users/zooba/gists{/gist_id}","starred_url":"https://api.github.com/users/zooba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooba/subscriptions","organizations_url":"https://api.github.com/users/zooba/orgs","repos_url":"https://api.github.com/users/zooba/repos","events_url":"https://api.github.com/users/zooba/events{/privacy}","received_events_url":"https://api.github.com/users/zooba/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T23:24:38Z","updated_at":"2015-09-08T23:24:38Z","body":"One way to do this now is to add `<Target Name=\"CoreCompile\"> ... </Target>` to your `.pyproj` file, filling in the '...' with whatever you like (probably along the lines of `<Exec Command=\"command line\" />`).\r\n\r\nSimply adding this target will enable the Build command within VS, and it should put output into the output window and errors into the error list (though this can be a bit fiddly).\r\n\r\nAs for regularly showing you errors, that's something we should be able to do based on our existing code analysis, so it doesn't require installing or running anything. We just haven't had time to do it. (And it looks like the issue was not transferred from our old site yet...)"}}