Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Couldn't convert text to a String #87

Open
johnblommers opened this issue Aug 9, 2017 · 0 comments
Open

Uncaught Error: Couldn't convert text to a String #87

johnblommers opened this issue Aug 9, 2017 · 0 comments

Comments

@johnblommers
Copy link

[Enter steps to reproduce:]

  1. ...Open text file 200000_Pages.txt a very large text file about 1/2 gigabyte of text
  2. ...Atom displays very large file warning
  3. Click Proceed.
  4. Click Continue when warned the editor is unresponsive a bunch of times, then finally
  5. Receive the error for the wordcount package. See below:
  6. Continue using Atom anyway. The Editor is handling the very large file.
  7. The error dialog repeats perhaps every few minutes, so annoying.

Atom: 1.19.0 x64
Electron: 1.6.9
OS: Mac OS X 10.11.6
Thrown From: wordcount package 2.10.4

Stack Trace

Uncaught Error: Couldn't convert text to a String

At /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:532

Error: Couldn't convert text to a String
    at TextBuffer.module.exports.TextBuffer.getText (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:532:94)
    at TextEditor.module.exports.TextEditor.getText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1030:32)
    at WordcountView.module.exports.WordcountView.getTexts (/packages/wordcount/lib/wordcount-view.coffee:56:25)
    at WordcountView.getTexts (/packages/wordcount/lib/wordcount-view.coffee:2:1)
    at WordcountView.module.exports.WordcountView.update_count (/packages/wordcount/lib/wordcount-view.coffee:17:14)
    at /packages/wordcount/lib/main.coffee:88:24
    at debounced (/Applications/Atom.app/Contents/Resources/app/node_modules/lodash/index.js:7737:27)
    at /packages/wordcount/lib/main.coffee:102:7
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at Workspace.didActivatePaneContainer (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:478:28)
    at WorkspaceCenter.paneContainer.onDidActivatePane (/Applications/Atom.app/Contents/Resources/app/src/workspace-center.js:12:59)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at PaneContainer.didActivatePane (/Applications/Atom.app/Contents/Resources/app/src/pane-container.js:264:24)
    at Pane.module.exports.Pane.activate (/Applications/Atom.app/Contents/Resources/app/src/pane.js:911:20)
    at Pane.module.exports.Pane.focus (/Applications/Atom.app/Contents/Resources/app/src/pane.js:290:25)
    at HTMLElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/pane-element.js:51:25)

Commands

Non-Core Packages

asciidoc-preview 2.10.2 
atom-html-preview 0.1.22 
atom-mermaid 3.1.0 
busy-signal 1.4.3 
dracula-syntax 2.0.5 
dracula-theme 2.0.3 
file-types 0.5.5 
find-selection 0.16.0 
gfm-pdf 0.3.4 
ginger 0.1.1 
highlight-selected 0.13.1 
ink 0.7.4 
intentions 1.1.5 
jsonlint 1.1.4 
julia-client 0.6.0 
language-julia 0.12.0 
language-markdown 0.25.1 
language-pfm 0.82.0 
language-txt2tags 0.3.0 
linter 2.2.0 
linter-alex 4.0.0 
linter-markdown 5.1.0 
linter-ui-default 1.6.4 
linter-write-good 0.9.0 
markdown-folder 0.5.0 
markdown-pdf 1.5.4 
markdown-preview-plus 2.4.10 
markdown-scroll-sync 2.1.2 
markdown-themeable-pdf 1.2.0 
markdown-toc 0.4.2 
markdown-writer 2.6.5 
merge-conflicts 1.4.5 
minimap 4.29.3 
minimap-highlight-selected 4.6.1 
preview-inline 1.4.7 
project-manager 3.3.5 
sort-lines 0.14.0 
technobabble 0.4.0 
tidy-markdown 3.0.1 
todo-show 1.11.0 
tool-bar-markdown-writer 0.3.0 
wordcount 2.10.4 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant