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 TypeError: Cannot read property 'length' of undefined #82

Open
rugk opened this issue Jan 22, 2018 · 0 comments
Open

Uncaught TypeError: Cannot read property 'length' of undefined #82

rugk opened this issue Jan 22, 2018 · 0 comments

Comments

@rugk
Copy link

rugk commented Jan 22, 2018

[Enter steps to reproduce:]

  1. Create a rust file in a directory.
  2. When compiling/executing, I got the error that it could not find Cargo.toml. So I thought I forgot to create a new project.
  3. Select "New project".

Atom: 1.23.3 x64
Electron: 1.6.15
OS: Windows 10
Thrown From: tokamak package 0.4.1

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At C:\Users\[...]\AppData\Local\atom\app-1.23.3\resources\app\node_modules\text-buffer\lib\text-buffer.js:948

TypeError: Cannot read property 'length' of undefined
    at exports.extentForText (~/AppData/Local/atom/app-1.23.3/resources/app/node_modules/text-buffer/lib/helpers.js:91:34)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (~/AppData/Local/atom/app-1.23.3/resources/app/node_modules/text-buffer/lib/text-buffer.js:678:48)
    at ~/AppData/Local/atom/app-1.23.3/resources/app/node_modules/text-buffer/lib/text-buffer.js:662:32
    at TextBuffer.module.exports.TextBuffer.transact (~/AppData/Local/atom/app-1.23.3/resources/app/node_modules/text-buffer/lib/text-buffer.js:941:24)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (~/AppData/Local/atom/app-1.23.3/resources/app/node_modules/text-buffer/lib/text-buffer.js:660:27)
    at TextBuffer.module.exports.TextBuffer.setText (~/AppData/Local/atom/app-1.23.3/resources/app/node_modules/text-buffer/lib/text-buffer.js:599:25)
    at TextEditor.setText (~/AppData/Local/atom/app-1.23.3/resources/app/src/text-editor.js:1295:45)
    at CargoView.module.exports.CargoView.attach (/packages/tokamak/lib/cargo-view.coffee:60:12)
    at /packages/tokamak/lib/cargo-view.coffee:32:42)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.23.3/resources/app/src/command-registry.js:388:36)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.23.3/resources/app/src/command-registry.js:273:23)
    at CreateProjectView.module.exports.CreateProjectView.confirmed (/packages/tokamak/lib/create-project-view.coffee:36:19)
    at CreateProjectView.module.exports.SelectListView.confirmSelection (/packages/tokamak/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at /packages/tokamak/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
    at HTMLOListElement.dispatch (/packages/tokamak/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (/packages/tokamak/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -1:54.2.0 tokamak:run (input.hidden-input)
  2x -1:16.7.0 tokamak-terminal:copy (div.)
     -0:12.7.0 tokamak:create-project (textarea.)
     -0:09.3.0 tokamak:create-cargo-binary (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-atom-dark-ui)

Non-Core Packages

atom-beautify 0.30.9 
atom-ide-ui 0.7.2 
build-cargo 2.0.0 
busy-signal 1.4.3 
intentions 1.1.5 
language-rust 0.4.12 
languageserver-rust 0.3.0 
linter 2.2.0 
linter-rust 0.8.4 
linter-ui-default 1.6.10 
racer 0.20.0 
rustfmt 0.1.3 
tokamak 0.4.1 
tokamak-terminal 10.0.1 
tool-bar 1.1.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