Open ashthespy opened 6 years ago
Having the same issue.
I see this in the console when typing fast between php tags:
/cc: @ungb
I'll take a look at this and see if I can repro.
@Ben3eeE I was able to reproduce the specific error you showed when typing quickly between PHP tags in a PHP file. But I was unable to reproduce it when typing in a Markdown file, despite the fact that autocomplete suggestions were popping up repeatedly.
I used Atom v1.25.1 on Mac OS X 10.13.4.
Editing the title since this is not the cause of the lag. The cause of the lag is in the bracket-matcher
/cc: https://github.com/atom/bracket-matcher/issues/341
Should this be closed then?
On Tue, Apr 17, 2018 at 10:59 PM, Linus Eriksson notifications@github.com wrote:
Editing the title since this is not the cause of the lag. The cause of the lag is in the bracket-matcher /cc: atom/bracket-matcher#341 https://github.com/atom/bracket-matcher/issues/341
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/atom/autocomplete-plus/issues/948#issuecomment-382271576, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_XKdaHqpyqH7v2v0QrnWrr3U1MjGqYks5tptY2gaJpZM4RsLI1 .
@lee-dohm No. This is still an issue. It's just not the cause of the performance issues that the author was observing.
I edited the body of the issue to copy over the template from https://github.com/atom/autocomplete-plus/issues/965 and to add steps to reproduce.
@Ben3eeE @lee-dohm any ideas/updates on this?
If this is just errors in the console, this is probably not going to be a high priority. We'll see what we can find when we get a chance.
The actual find function can be traced directly to the superstring
buffer. In it, see this resolve. Could this be the cause? (Yes, I was running into this issue when trying to monitor my own packages console logs).
Edited by @Ben3eeE to include steps to reproduce and an issue template from https://github.com/atom/autocomplete-plus/issues/965
Prerequisites
Description
The following code fails to check the return value for
findWordsWithSubsequence
and assumes it returned a list of suggestions: https://github.com/atom/autocomplete-plus/blob/b8e2223e973ac3253e2ffd47fccb59e52336d955/lib/subsequence-provider.js#L100-L105This can lead to the following error being thrown:
Refs https://github.com/atom/autocomplete-plus/pull/921#issuecomment-380608223
Steps to Reproduce
atom --safe
php
?>
Uncaught (in promise) TypeError: Cannot read property 'length' of null at configSuggestionsBuffer.findWordsWithSubsequence.then.matches (\resources\app\node_modules\autocomplete-plus\lib\subsequence-provider.js:123:40)