{"action":"created","comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments/283080435","pull_request_review_id":236360164,"id":283080435,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4MzA4MDQzNQ==","diff_hunk":"@@ -0,0 +1,40 @@\n+\n+# -*- coding: utf-8 -*-\n+\n+# Copyright © Spyder Project Contributors\n+# Licensed under the terms of the MIT License\n+# (see spyder/__init__.py for details)\n+\n+\"\"\"\n+Fallback completion actor.\n+This plugin takes a plain text/source file and returns the individual words\n+written on it.\n+\"\"\"\n+\n+import re\n+import logging\n+from queue import Queue\n+from threading import Thread, Lock\n+\n+logger = logging.getLogger(__name__)\n+\n+# Get all valid tokens that start by a letter and are\n+# followed by a sequence of letters, numbers or underscores of length > 0\n+regex = re.compile(r'[a-zA-Z]\\w+')","path":"spyder/plugins/editor/fallback/fallback.py","position":24,"original_position":23,"commit_id":"a1584be973fb5d86ed43750740efa1501fa53a70","original_commit_id":"1b9e00dc309221120795257a05e9b670dc09474e","user":{"login":"goanpeca","id":3627835,"node_id":"MDQ6VXNlcjM2Mjc4MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3627835?v=4","gravatar_id":"","url":"https://api.github.com/users/goanpeca","html_url":"https://github.com/goanpeca","followers_url":"https://api.github.com/users/goanpeca/followers","following_url":"https://api.github.com/users/goanpeca/following{/other_user}","gists_url":"https://api.github.com/users/goanpeca/gists{/gist_id}","starred_url":"https://api.github.com/users/goanpeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goanpeca/subscriptions","organizations_url":"https://api.github.com/users/goanpeca/orgs","repos_url":"https://api.github.com/users/goanpeca/repos","events_url":"https://api.github.com/users/goanpeca/events{/privacy}","received_events_url":"https://api.github.com/users/goanpeca/received_events","type":"User","site_admin":false},"body":"Hmmm well for now I would just check if it is CSS os SCSS or HTML or XML ?","created_at":"2019-05-11T03:17:52Z","updated_at":"2019-05-11T03:17:52Z","html_url":"https://github.com/spyder-ide/spyder/pull/9320#discussion_r283080435","pull_request_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments/283080435"},"html":{"href":"https://github.com/spyder-ide/spyder/pull/9320#discussion_r283080435"},"pull_request":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320"}},"in_reply_to_id":283075201},"pull_request":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320","id":277916068,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc3OTE2MDY4","html_url":"https://github.com/spyder-ide/spyder/pull/9320","diff_url":"https://github.com/spyder-ide/spyder/pull/9320.diff","patch_url":"https://github.com/spyder-ide/spyder/pull/9320.patch","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/9320","number":9320,"state":"open","locked":false,"title":"[WIP] Reimplement fallback plugin for LSP completions","user":{"login":"andfoy","id":1878982,"node_id":"MDQ6VXNlcjE4Nzg5ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1878982?v=4","gravatar_id":"","url":"https://api.github.com/users/andfoy","html_url":"https://github.com/andfoy","followers_url":"https://api.github.com/users/andfoy/followers","following_url":"https://api.github.com/users/andfoy/following{/other_user}","gists_url":"https://api.github.com/users/andfoy/gists{/gist_id}","starred_url":"https://api.github.com/users/andfoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andfoy/subscriptions","organizations_url":"https://api.github.com/users/andfoy/orgs","repos_url":"https://api.github.com/users/andfoy/repos","events_url":"https://api.github.com/users/andfoy/events{/privacy}","received_events_url":"https://api.github.com/users/andfoy/received_events","type":"User","site_admin":false},"body":"<!--- Make sure to read the Contributing Guidelines:                   --->\r\n<!--- https://github.com/spyder-ide/spyder/blob/master/CONTRIBUTING.md --->\r\n<!--- and follow PEP 8, PEP 257 and Spyder's code style:               --->\r\n<!--- https://github.com/spyder-ide/spyder/wiki/Dev:-Coding-Style      --->\r\n\r\n## Description of Changes\r\nAdd the fallback plugin to complete words, even if an LSP server is not available to do the corresponding completion. This applies to all source/plain text files.\r\n\r\n* [x] Wrote at least one-line docstrings (for any new functions)\r\n* [ ] Added unit test(s) covering the changes (if testable)\r\n<!--- Remember that an image/animation is worth a thousand words! --->\r\n* [ ] Included a screenshot or animation (if affecting the UI, see [Licecap](https://www.cockos.com/licecap/))\r\n\r\n\r\n<!--- Explain what you've done and why --->\r\n\r\n\r\n\r\n\r\n### Issue(s) Resolved\r\n\r\n<!--- List the issue(s) below, in the form \"Fixes #1234\"; one per line --->\r\n\r\nSee #7724\r\n\r\n\r\n### Affirmation\r\n\r\nBy submitting this Pull Request or typing my (user)name below,\r\nI affirm the [Developer Certificate of Origin](https://developercertificate.org)\r\nwith respect to all commits and content included in this PR,\r\nand understand I am releasing the same under Spyder's MIT (Expat) license.\r\n\r\n<!--- TYPE YOUR USER/NAME AFTER THE FOLLOWING: --->\r\nI certify the above statement is true and correct:\r\n@andfoy\r\n<!--- Thanks for your help making Spyder better for everyone! --->\r\n","created_at":"2019-05-10T21:32:15Z","updated_at":"2019-05-11T03:17:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fbca3f0fc187910a968510b759f817c4ac6c43e3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320/commits","review_comments_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320/comments","review_comment_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/9320/comments","statuses_url":"https://api.github.com/repos/spyder-ide/spyder/statuses/a1584be973fb5d86ed43750740efa1501fa53a70","head":{"label":"andfoy:fallback_actor","ref":"fallback_actor","sha":"a1584be973fb5d86ed43750740efa1501fa53a70","user":{"login":"andfoy","id":1878982,"node_id":"MDQ6VXNlcjE4Nzg5ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1878982?v=4","gravatar_id":"","url":"https://api.github.com/users/andfoy","html_url":"https://github.com/andfoy","followers_url":"https://api.github.com/users/andfoy/followers","following_url":"https://api.github.com/users/andfoy/following{/other_user}","gists_url":"https://api.github.com/users/andfoy/gists{/gist_id}","starred_url":"https://api.github.com/users/andfoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andfoy/subscriptions","organizations_url":"https://api.github.com/users/andfoy/orgs","repos_url":"https://api.github.com/users/andfoy/repos","events_url":"https://api.github.com/users/andfoy/events{/privacy}","received_events_url":"https://api.github.com/users/andfoy/received_events","type":"User","site_admin":false},"repo":{"id":75860320,"node_id":"MDEwOlJlcG9zaXRvcnk3NTg2MDMyMA==","name":"spyder","full_name":"andfoy/spyder","private":false,"owner":{"login":"andfoy","id":1878982,"node_id":"MDQ6VXNlcjE4Nzg5ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1878982?v=4","gravatar_id":"","url":"https://api.github.com/users/andfoy","html_url":"https://github.com/andfoy","followers_url":"https://api.github.com/users/andfoy/followers","following_url":"https://api.github.com/users/andfoy/following{/other_user}","gists_url":"https://api.github.com/users/andfoy/gists{/gist_id}","starred_url":"https://api.github.com/users/andfoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andfoy/subscriptions","organizations_url":"https://api.github.com/users/andfoy/orgs","repos_url":"https://api.github.com/users/andfoy/repos","events_url":"https://api.github.com/users/andfoy/events{/privacy}","received_events_url":"https://api.github.com/users/andfoy/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andfoy/spyder","description":"Official repository for Spyder - The Scientific PYthon Development EnviRonment","fork":true,"url":"https://api.github.com/repos/andfoy/spyder","forks_url":"https://api.github.com/repos/andfoy/spyder/forks","keys_url":"https://api.github.com/repos/andfoy/spyder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andfoy/spyder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andfoy/spyder/teams","hooks_url":"https://api.github.com/repos/andfoy/spyder/hooks","issue_events_url":"https://api.github.com/repos/andfoy/spyder/issues/events{/number}","events_url":"https://api.github.com/repos/andfoy/spyder/events","assignees_url":"https://api.github.com/repos/andfoy/spyder/assignees{/user}","branches_url":"https://api.github.com/repos/andfoy/spyder/branches{/branch}","tags_url":"https://api.github.com/repos/andfoy/spyder/tags","blobs_url":"https://api.github.com/repos/andfoy/spyder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andfoy/spyder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andfoy/spyder/git/refs{/sha}","trees_url":"https://api.github.com/repos/andfoy/spyder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andfoy/spyder/statuses/{sha}","languages_url":"https://api.github.com/repos/andfoy/spyder/languages","stargazers_url":"https://api.github.com/repos/andfoy/spyder/stargazers","contributors_url":"https://api.github.com/repos/andfoy/spyder/contributors","subscribers_url":"https://api.github.com/repos/andfoy/spyder/subscribers","subscription_url":"https://api.github.com/repos/andfoy/spyder/subscription","commits_url":"https://api.github.com/repos/andfoy/spyder/commits{/sha}","git_commits_url":"https://api.github.com/repos/andfoy/spyder/git/commits{/sha}","comments_url":"https://api.github.com/repos/andfoy/spyder/comments{/number}","issue_comment_url":"https://api.github.com/repos/andfoy/spyder/issues/comments{/number}","contents_url":"https://api.github.com/repos/andfoy/spyder/contents/{+path}","compare_url":"https://api.github.com/repos/andfoy/spyder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andfoy/spyder/merges","archive_url":"https://api.github.com/repos/andfoy/spyder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andfoy/spyder/downloads","issues_url":"https://api.github.com/repos/andfoy/spyder/issues{/number}","pulls_url":"https://api.github.com/repos/andfoy/spyder/pulls{/number}","milestones_url":"https://api.github.com/repos/andfoy/spyder/milestones{/number}","notifications_url":"https://api.github.com/repos/andfoy/spyder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andfoy/spyder/labels{/name}","releases_url":"https://api.github.com/repos/andfoy/spyder/releases{/id}","deployments_url":"https://api.github.com/repos/andfoy/spyder/deployments","created_at":"2016-12-07T17:37:10Z","updated_at":"2016-12-07T17:37:12Z","pushed_at":"2019-05-11T01:53:16Z","git_url":"git://github.com/andfoy/spyder.git","ssh_url":"git@github.com:andfoy/spyder.git","clone_url":"https://github.com/andfoy/spyder.git","svn_url":"https://github.com/andfoy/spyder","homepage":"","size":50128,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spyder-ide:master","ref":"master","sha":"01720a8563ad3ac44c6b887f73564c767204dab8","user":{"login":"spyder-ide","id":1284937,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyODQ5Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1284937?v=4","gravatar_id":"","url":"https://api.github.com/users/spyder-ide","html_url":"https://github.com/spyder-ide","followers_url":"https://api.github.com/users/spyder-ide/followers","following_url":"https://api.github.com/users/spyder-ide/following{/other_user}","gists_url":"https://api.github.com/users/spyder-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-ide/subscriptions","organizations_url":"https://api.github.com/users/spyder-ide/orgs","repos_url":"https://api.github.com/users/spyder-ide/repos","events_url":"https://api.github.com/users/spyder-ide/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-ide/received_events","type":"Organization","site_admin":false},"repo":{"id":30892477,"node_id":"MDEwOlJlcG9zaXRvcnkzMDg5MjQ3Nw==","name":"spyder","full_name":"spyder-ide/spyder","private":false,"owner":{"login":"spyder-ide","id":1284937,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyODQ5Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1284937?v=4","gravatar_id":"","url":"https://api.github.com/users/spyder-ide","html_url":"https://github.com/spyder-ide","followers_url":"https://api.github.com/users/spyder-ide/followers","following_url":"https://api.github.com/users/spyder-ide/following{/other_user}","gists_url":"https://api.github.com/users/spyder-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-ide/subscriptions","organizations_url":"https://api.github.com/users/spyder-ide/orgs","repos_url":"https://api.github.com/users/spyder-ide/repos","events_url":"https://api.github.com/users/spyder-ide/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-ide/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spyder-ide/spyder","description":"Official repository for Spyder - The Scientific Python Development Environment","fork":false,"url":"https://api.github.com/repos/spyder-ide/spyder","forks_url":"https://api.github.com/repos/spyder-ide/spyder/forks","keys_url":"https://api.github.com/repos/spyder-ide/spyder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spyder-ide/spyder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spyder-ide/spyder/teams","hooks_url":"https://api.github.com/repos/spyder-ide/spyder/hooks","issue_events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/events{/number}","events_url":"https://api.github.com/repos/spyder-ide/spyder/events","assignees_url":"https://api.github.com/repos/spyder-ide/spyder/assignees{/user}","branches_url":"https://api.github.com/repos/spyder-ide/spyder/branches{/branch}","tags_url":"https://api.github.com/repos/spyder-ide/spyder/tags","blobs_url":"https://api.github.com/repos/spyder-ide/spyder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spyder-ide/spyder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spyder-ide/spyder/git/refs{/sha}","trees_url":"https://api.github.com/repos/spyder-ide/spyder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spyder-ide/spyder/statuses/{sha}","languages_url":"https://api.github.com/repos/spyder-ide/spyder/languages","stargazers_url":"https://api.github.com/repos/spyder-ide/spyder/stargazers","contributors_url":"https://api.github.com/repos/spyder-ide/spyder/contributors","subscribers_url":"https://api.github.com/repos/spyder-ide/spyder/subscribers","subscription_url":"https://api.github.com/repos/spyder-ide/spyder/subscription","commits_url":"https://api.github.com/repos/spyder-ide/spyder/commits{/sha}","git_commits_url":"https://api.github.com/repos/spyder-ide/spyder/git/commits{/sha}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/comments{/number}","issue_comment_url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments{/number}","contents_url":"https://api.github.com/repos/spyder-ide/spyder/contents/{+path}","compare_url":"https://api.github.com/repos/spyder-ide/spyder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spyder-ide/spyder/merges","archive_url":"https://api.github.com/repos/spyder-ide/spyder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spyder-ide/spyder/downloads","issues_url":"https://api.github.com/repos/spyder-ide/spyder/issues{/number}","pulls_url":"https://api.github.com/repos/spyder-ide/spyder/pulls{/number}","milestones_url":"https://api.github.com/repos/spyder-ide/spyder/milestones{/number}","notifications_url":"https://api.github.com/repos/spyder-ide/spyder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spyder-ide/spyder/labels{/name}","releases_url":"https://api.github.com/repos/spyder-ide/spyder/releases{/id}","deployments_url":"https://api.github.com/repos/spyder-ide/spyder/deployments","created_at":"2015-02-16T22:49:48Z","updated_at":"2019-05-10T13:39:21Z","pushed_at":"2019-05-11T03:10:33Z","git_url":"git://github.com/spyder-ide/spyder.git","ssh_url":"git@github.com:spyder-ide/spyder.git","clone_url":"https://github.com/spyder-ide/spyder.git","svn_url":"https://github.com/spyder-ide/spyder","homepage":"https://www.spyder-ide.org/","size":50095,"stargazers_count":4375,"watchers_count":4375,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":889,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":763,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":889,"open_issues":763,"watchers":4375,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320"},"html":{"href":"https://github.com/spyder-ide/spyder/pull/9320"},"issue":{"href":"https://api.github.com/repos/spyder-ide/spyder/issues/9320"},"comments":{"href":"https://api.github.com/repos/spyder-ide/spyder/issues/9320/comments"},"review_comments":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320/comments"},"review_comment":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/9320/commits"},"statuses":{"href":"https://api.github.com/repos/spyder-ide/spyder/statuses/a1584be973fb5d86ed43750740efa1501fa53a70"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"goanpeca"}}