Closed seizetheday closed 7 years ago
Could you clarify the context of this error? Is it possible to reproduce it?
When I enter any word in a q file, it will trigger errors. Errors can be reproduced every time.
This package vim-mode-plus may be the reason. If I disable vim-mode-plus, no errors again.
hmm, works in my atom
Don't understand the reason. Please ensure that vim-plus and atom have the latest version. If you do nothing then enter a symbol and then do nothing again and error happens then there is something out of order because such an error would happen every time.
The only place where ruleStack can be wrong is at C:\Users\Roy.atom\packages\autocomplete-kdb-q\lib\tokenBuffer.coffee line 67
You may try to add an assert:
if n > 0 and @lines[n-1].data.ruleStack is null
console.error "bad rule stack entry"
_.defer => @updateNextChunk 0
return
Hi @quintanar401 I'm also getting the same error. Steps to reproduce:
foo:1
/
abc
\
bar:2
Atom version 1.14.3 x64. Windows 7. Latest versions of the 3 *kdb-q packages. I do not have the vim package of above poster.
Yes, there was an issue with the atom grammar package - it doesn't cache tokens property and when it calculates it it breaks its own state so the second calc may cause an exception. Also I've noticed that reparse/retokenizing was not working correctly for big comments and fixed it too.
[Enter steps to reproduce below:]
Atom Version: 1.13.1 Electron Version: 1.3.13 System: Microsoft Windows 10 Pro Thrown From: autocomplete-kdb-q package, v0.5.5
Stack Trace
Uncaught Error: Expected popped scope to be comment.block.simple.q, but it was undefined
Commands
Config
Installed Packages