This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Uncaught TypeError: Cannot read property 'tokenAtBufferColumn' of undefined #119
Copy link
Copy link
Closed
Labels
Description
- Load a .txt file that was previously encoded as ANSI.
Atom Version: 0.170.0
System: Microsoft Windows 8.1
Thrown From: bracket-matcher package, v0.67.0
Stack Trace
Uncaught TypeError: Cannot read property 'tokenAtBufferColumn' of undefined
At c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\tokenized-buffer.js:503
TypeError: Cannot read property 'tokenAtBufferColumn' of undefined
at TokenizedBuffer.module.exports.TokenizedBuffer.tokenForPosition (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\tokenized-buffer.js:503:38)
at TokenizedBuffer.module.exports.TokenizedBuffer.scopeDescriptorForPosition (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\tokenized-buffer.js:496:22)
at DisplayBuffer.module.exports.DisplayBuffer.scopeDescriptorForBufferPosition (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\display-buffer.js:1044:35)
at TextEditor.module.exports.TextEditor.scopeDescriptorForBufferPosition (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\text-editor.js:2378:33)
at Cursor.module.exports.Cursor.getScopeDescriptor (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\cursor.js:227:26)
at TagFinder.module.exports.TagFinder.isCursorOnTag (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\bracket-matcher\lib\tag-finder.js:39:67)
at TagFinder.module.exports.TagFinder.findMatchingTags (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\bracket-matcher\lib\tag-finder.js:140:16)
at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\bracket-matcher\lib\bracket-matcher-view.js:128:35)
at c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\bracket-matcher\lib\bracket-matcher-view.js:40:24
at Emitter.module.exports.Emitter.emit (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
at c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\text-editor.js:207:32
at Emitter.module.exports.Emitter.emit (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\display-buffer.js:320:20)
at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\display-buffer.js:1482:21)
at DisplayBuffer.module.exports.DisplayBuffer.handleTokenizedBufferChange (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\display-buffer.js:1444:12)
at c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\display-buffer.js:5:61
at Emitter.module.exports.Emitter.emit (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
at TokenizedBuffer.module.exports.TokenizedBuffer.tokenizeNextChunk (c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\tokenized-buffer.js:286:22)
at c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\src\tokenized-buffer.js:247:26
at c:\Users\David\AppData\Local\atom\app-0.170.0\resources\app\node_modules\roaster\node_modules\underscore\underscore.js:666:47
Commands
Config
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}Installed Packages
# User
No installed packages
# Dev
No dev packages/cc @atom/core
Activity
aroman commentedon Mar 25, 2015
Just got this error too. Was editing an html file and I tried to save it and this happened.
Stack trace:
kevinsawicki commentedon Mar 26, 2015
I believe this is a duplicate of #110 and should be fixed if you upgrade to Atom 0.188 or later
aroman commentedon Mar 26, 2015
Actually, I experienced the bug on 0.188. Hmm.
kevinsawicki commentedon Mar 26, 2015
Ah interesting, can you reliably reproduce it or did it just happen that once?
aroman commentedon Mar 26, 2015
It happened once randomly while editing an html/jinja2 template file. I'll definitely comment back here if it happens again, but it seemed pretty out of the blue. I think it was in the middle of typing? Also, if it helps the investigation I use the vim plugin.
Lenocam commentedon May 20, 2015
Having the same issue. When I've closed angle brackets for ul and table. It was happening periodically, maybe a couple times a day. Now it is happening nearly every time I close angled brackets.
[Enter steps to reproduce below:]
Atom Version: 0.177.0
System: linux 3.13.0-45-generic
Thrown From: bracket-matcher package, v0.71.0
Stack Trace
Uncaught TypeError: Cannot read property 'getBufferPosition' of undefined
Commands
Config
{ "core": { "themes": [ "itg-flat-dark", "itg-dark-syntax" ], "disabledPackages": [ "placeholder-text" ] } }Installed Packages
/cc @atom/core
mnquintana commentedon May 20, 2015
@Lenocam You're using an old version – can you try upgrading to the latest version of Atom (0.200.0) and see if you can reproduce this issue?
winstliu commentedon May 20, 2015
@Lenocam I have a suspicion that it might be the
autoclose-htmlpackage that's causing this-if you disable that, can you still reproduce your issue?winstliu commentedon Sep 25, 2016
No response or further reports, closing.