You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: Cannot read property 'map' of null
At /opt/Pulsar/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1323
TypeError: Cannot read property 'map' of null
at LanguageLayer.getOrParseTree (/app.asar/src/wasm-tree-sitter-language-mode.js:4133:39)
at WASMTreeSitterLanguageMode.suggestedIndentForEditedBufferRow (/app.asar/src/wasm-tree-sitter-language-mode.js:1909:39)
at TextEditor.autoDecreaseIndentForBufferRow (/app.asar/src/text-editor.js:5724:36)
at Selection.insertText (/app.asar/src/selection.js:579:19)
at /app.asar/src/text-editor.js:1748:31
at /app.asar/src/text-editor.js:1801:33
at Array.map (<anonymous>)
at /app.asar/src/text-editor.js:1800:60
at TextBuffer.transact (/app.asar/node_modules/text-buffer/lib/text-buffer.js:1320:16)
at TextEditor.transact (/app.asar/src/text-editor.js:2467:24)
at /app.asar/src/text-editor.js:1799:19
at TextEditor.mergeSelections (/app.asar/src/text-editor.js:4053:20)
at TextEditor.mergeIntersectingSelections (/app.asar/src/text-editor.js:4015:10)
at TextEditor.mutateSelectedText (/app.asar/src/text-editor.js:1798:17)
at TextEditor.insertText (/app.asar/src/text-editor.js:1747:25)
at /app.asar/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
at TextEditorComponent.didTextInput (/app.asar/src/text-editor-component.js:1845:24)
Thanks for the report. Can you tell me what sort of file this was? It looks like this was an “injection” scenario — one language embedded in another — so I'm curious to know which language might have the bug here.
Strangely, that counts because of the way that the PHP grammar is architected.
I see the bug here (assuming something that may return null is an array without checking it), but I don't yet understand why it happens. Still, I should at least make it so that it doesn't throw an exception.
I'm glad that it's sporadic instead of something that happens all the time. Still, if you figure out reliable reproduction steps, please let me know. Thanks!
Thanks in advance for your bug report!
What happened?
I was simply writing code when autocomplete throw this error.
Pulsar version
1.119.2024071703 x64
Which OS does this happen on?
🐧 Debian based (Linux Mint, Ubuntu, etc.)
OS details
Debian Bookworm
Which CPU architecture are you running this on?
x86_64/AMD64
What steps are needed to reproduce this?
Sincerely, I am not sure how to reproduce this issue.
I was typing in a big file (4000+ lines) in a big project (3000+ files) and autocomplete thrown this error.
Additional Information:
Versions
Pulsar: 1.119.2024071703 x64
Electron: 12.2.3
OS: Debian GNU/Linux
Thrown From: Pulsar Core
Stack Trace
Uncaught TypeError: Cannot read property 'map' of null
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: