{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeCodeIntel/SublimeCodeIntel/issues/349","labels_url":"https://api.github.com/repos/SublimeCodeIntel/SublimeCodeIntel/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/SublimeCodeIntel/SublimeCodeIntel/issues/349/comments","events_url":"https://api.github.com/repos/SublimeCodeIntel/SublimeCodeIntel/issues/349/events","html_url":"https://github.com/SublimeCodeIntel/SublimeCodeIntel/issues/349","id":21796438,"number":349,"title":"PHP not working with ST3 on Ubuntu 13.10","user":{"login":"rayman22201","id":665285,"avatar_url":"https://avatars.githubusercontent.com/u/665285?v=3","gravatar_id":"","url":"https://api.github.com/users/rayman22201","html_url":"https://github.com/rayman22201","followers_url":"https://api.github.com/users/rayman22201/followers","following_url":"https://api.github.com/users/rayman22201/following{/other_user}","gists_url":"https://api.github.com/users/rayman22201/gists{/gist_id}","starred_url":"https://api.github.com/users/rayman22201/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayman22201/subscriptions","organizations_url":"https://api.github.com/users/rayman22201/orgs","repos_url":"https://api.github.com/users/rayman22201/repos","events_url":"https://api.github.com/users/rayman22201/events{/privacy}","received_events_url":"https://api.github.com/users/rayman22201/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2013-10-29T23:46:41Z","updated_at":"2015-03-21T14:37:10Z","closed_at":null,"body":"<b>langinfo.py</b> consistently throws:\r\n* \"TypeError: can't use a string pattern on a bytes-like object\"\r\n\r\nThe error occurs with both the autocomplete popup and any go-to function definition. The function or file does not make a difference.\r\n\r\nSystem info:\r\n* It is a Drupal 7 codebase (IDK if that matters).\r\n* Sublime Text 3\r\n* Ubuntu 13.10\r\n\r\nAny help is much appreciated. :-)\r\n\r\nThe CodeIntel.log reads as follows:\r\n```\r\nUnexpected error with evaluator: 'entity_metadata_wrapper' at shows_seat_selector.module#34\r\nTraceback (most recent call last):\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/tree.py\", line 331, in eval\r\n    defns = self.eval_defns()\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py\", line 353, in eval_defns\r\n    hit = self._hit_from_citdl(self.expr, start_scoperef, defn_only=True)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py\", line 842, in _hit_from_citdl\r\n    hits, nconsumed = self._hits_from_first_part(tokens, scoperef)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py\", line 1195, in _hits_from_first_part\r\n    hit, nconsumed = self._hit_from_elem_imports(tokens, elem)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/tree_php.py\", line 1272, in _hit_from_elem_imports\r\n    curr_buf=self.buf)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/database/multilanglib.py\", line 161, in hits_from_lpath\r\n    self.ensure_all_dirs_scanned(ctlr=ctlr)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/database/langlibbase.py\", line 69, in ensure_all_dirs_scanned\r\n    dir, ctlr=ctlr, reporter=lambda msg: None)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/database/langlibbase.py\", line 104, in ensure_dir_scanned\r\n    lang=self.lang)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/codeintel2/manager.py\", line 462, in buf_from_path\r\n    follow_symlinks=True)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/textinfo.py\", line 191, in textinfo_from_path\r\n    quick_determine_lang=quick_determine_lang)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/textinfo.py\", line 267, in init_from_path\r\n    self._classify_from_magic(lidb)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/textinfo.py\", line 440, in _classify_from_magic\r\n    li = lidb.langinfo_from_magic(head_bytes)\r\n  File \"/home/ray/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/langinfo.py\", line 385, in langinfo_from_magic\r\n    if pattern.search(head_bytes, start):\r\nTypeError: can't use a string pattern on a bytes-like object\r\ndone eval: eval error\r\nDone 'PHP' CodeIntel! Full CodeIntel took 56ms\r\n```"},"comment":{"url":"https://api.github.com/repos/SublimeCodeIntel/SublimeCodeIntel/issues/comments/84359540","html_url":"https://github.com/SublimeCodeIntel/SublimeCodeIntel/issues/349#issuecomment-84359540","issue_url":"https://api.github.com/repos/SublimeCodeIntel/SublimeCodeIntel/issues/349","id":84359540,"user":{"login":"spectacles","id":10568032,"avatar_url":"https://avatars.githubusercontent.com/u/10568032?v=3","gravatar_id":"","url":"https://api.github.com/users/spectacles","html_url":"https://github.com/spectacles","followers_url":"https://api.github.com/users/spectacles/followers","following_url":"https://api.github.com/users/spectacles/following{/other_user}","gists_url":"https://api.github.com/users/spectacles/gists{/gist_id}","starred_url":"https://api.github.com/users/spectacles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spectacles/subscriptions","organizations_url":"https://api.github.com/users/spectacles/orgs","repos_url":"https://api.github.com/users/spectacles/repos","events_url":"https://api.github.com/users/spectacles/events{/privacy}","received_events_url":"https://api.github.com/users/spectacles/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T14:37:10Z","updated_at":"2015-03-21T14:37:10Z","body":"@johngrogg I \"fixed\" this error in `CodeComplice` by catching the TypeError. Can be installed per packageControl! What ST version are you on?"}}