vertexclique / tokamak

Fusion Reactor for Rust - Atom Rust IDE

Home Page:https://vertexclique.github.io/tokamak/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: Cannot read property 'length' of undefined

rugk opened this issue · comments

commented

[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