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

Windows - Uncaught TypeError: Cannot read property 'split of undefined #39

Open
Syrou opened this issue May 5, 2016 · 0 comments
Open

Comments

@Syrou
Copy link

Syrou commented May 5, 2016

[Enter steps to reproduce below:]

  1. Trying to create a new Cargo Binary
  2. Crash

Atom Version: 1.7.3
System: Microsoft Windows 10 Home
Thrown From: tokamak package, v0.2.7

Stack Trace

Uncaught TypeError: Cannot read property 'split' of undefined

At C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:833

TypeError: Cannot read property 'split' of undefined
    at Function.module.exports.Range.fromText (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\text-buffer\lib\range.js:47:19)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:588:24)
    at C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:576:26
    at TextBuffer.module.exports.TextBuffer.transact (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:828:18)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:574:21)
    at TextBuffer.module.exports.TextBuffer.setText (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:514:19)
    at TextEditor.module.exports.TextEditor.setText (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\src\text-editor.js:810:26)
    at CargoView.module.exports.CargoView.attach (file:///C:/Users/Syrou/.atom/packages/tokamak/lib/cargo-view.coffee:51:12)
    at atom-workspace.commandSubscription.atom.commands.add.tokamak:create-cargo-lib (file:///C:/Users/Syrou/.atom/packages/tokamak/lib/cargo-view.coffee:26:39)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\src\command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\src\command-registry.js:160:19)
    at CreateProjectView.module.exports.CreateProjectView.confirmed (file:///C:/Users/Syrou/.atom/packages/tokamak/lib/create-project-view.coffee:38:28)
    at CreateProjectView.module.exports.SelectListView.confirmSelection (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:338:21)
    at HTMLLIElement.<anonymous> (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:139:19)
    at HTMLOListElement.jQuery.event.dispatch (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (C:\Users\Syrou\AppData\Local\atom\app-1.7.3\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands

  6x -1:08.1.0 core:backspace (atom-text-editor#tokamak.rustcBinPath.editor.mini.is-focused)
     -0:33.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:15.4.0 tokamak:create-project (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:13.2.0 tokamak:create-cargo-binary (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:06.1.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:06.1.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:03.5.0 tokamak:create-project (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:02.6.0 tokamak:create-cargo-lib (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Config

{
  "tokamak": {
    "cargoBinPath": "C:\\Program Files\\Rust stable MSVC 1.8\\bin\\cargo.exe\nC:\\Users\\Syrou\\.cargo\\bin\\cargo.exe\n",
    "multirustBinPath": "C:\\Users\\Syrou\\.cargo\\bin\\multirust.exe\n",
    "racerBinPath": "C:\\Users\\Syrou\\.cargo\\bin\\racer.exe\n",
    "rustcBinPath": "C:\\Program Files\\Rust stable MSVC 1.8\\bin\\rustc.exe\nC:\\Users\\Syrou\\.cargo\\bin\\rustc.exe\n"
  }
}

Installed Packages

# User
atom-language-rust, v0.7.0
language-rust, v0.4.6
linter, v1.11.4
linter-rust, v0.4.6
racer, v0.20.0
rustfmt, v0.1.2
tokamak, v0.2.7
tokamak-terminal, v0.1.1
tool-bar, v0.4.0

# Dev
No dev packages
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