{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1364","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1364/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1364/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1364/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1364","id":56901304,"number":1364,"title":"Annoying error message: ValueError: File is less than 5 lines long; not compiling.","user":{"login":"strrchr","id":8603093,"avatar_url":"https://avatars.githubusercontent.com/u/8603093?v=3","gravatar_id":"","url":"https://api.github.com/users/strrchr","html_url":"https://github.com/strrchr","followers_url":"https://api.github.com/users/strrchr/followers","following_url":"https://api.github.com/users/strrchr/following{/other_user}","gists_url":"https://api.github.com/users/strrchr/gists{/gist_id}","starred_url":"https://api.github.com/users/strrchr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strrchr/subscriptions","organizations_url":"https://api.github.com/users/strrchr/orgs","repos_url":"https://api.github.com/users/strrchr/repos","events_url":"https://api.github.com/users/strrchr/events{/privacy}","received_events_url":"https://api.github.com/users/strrchr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-07T07:19:05Z","updated_at":"2015-04-14T23:27:08Z","closed_at":"2015-02-07T18:45:15Z","body":"Annoying error message: ValueError: File is less than 5 lines long; not compiling.\r\nIn YouCompleteMe\\third_party\\ycmd\\ycmd\\completers\\cpp\\clang_completer.py\r\nI found: MIN_LINES_IN_FILE_TO_PARSE = 5\r\nWhy not change it to zero?\r\n"},"comment":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/comments/93109666","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1364#issuecomment-93109666","issue_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1364","id":93109666,"user":{"login":"Valloric","id":919444,"avatar_url":"https://avatars.githubusercontent.com/u/919444?v=3","gravatar_id":"","url":"https://api.github.com/users/Valloric","html_url":"https://github.com/Valloric","followers_url":"https://api.github.com/users/Valloric/followers","following_url":"https://api.github.com/users/Valloric/following{/other_user}","gists_url":"https://api.github.com/users/Valloric/gists{/gist_id}","starred_url":"https://api.github.com/users/Valloric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valloric/subscriptions","organizations_url":"https://api.github.com/users/Valloric/orgs","repos_url":"https://api.github.com/users/Valloric/repos","events_url":"https://api.github.com/users/Valloric/events{/privacy}","received_events_url":"https://api.github.com/users/Valloric/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T23:27:08Z","updated_at":"2015-04-14T23:27:08Z","body":"> I think at least it shoud be a warning instead of error.\r\nit is OK that YCM won't compile files less than five lines,\r\nbut it is not necessary to let users know that.\r\n\r\nWe used to not inform the users that completion doesn't work when fewer than 5 lines are in the file, and then we had a HUGE number of users complaining that YCM doesn't work for them because they'd install it and try it out on a file with fewer than 5 lines in it."}}