nguyenchr / atom-cargo-test-runner

Cargo test runner for Atom Editor
https://atom.io/packages/cargo-test-runner
MIT License
5 stars 3 forks source link

Uncaught TypeError: undefined is not a function #5

Open colin-kiegel opened 9 years ago

colin-kiegel commented 9 years ago

[Enter steps to reproduce below:]

  1. dummy-project with one file 'main.rs'
fn main() {
    println!("Hello, world!");
}
  1. cargo-test-runner > run cargo tests
  2. results in compilation warning
   Compiling hello_world v0.0.1 (file:///home/colin/projects/rust/hello_world)
main.rs:1:1: 3:2 warning: function is never used: `main`, #[warn(dead_code)] on by default
main.rs:1 fn main() {
main.rs:2     println!("Hello, world!");
main.rs:3 }
     Running /home/colin/projects/rust/hello_world/target/debug/hello_world-f3cf2073485ef18a

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
  1. clock on 'main.rs:1:1' (which is clickable) results in an uncaught error

Atom Version: 1.0.0 System: Ubuntu 15.04 Thrown From: cargo-test-runner package, v0.0.4

Stack Trace

Uncaught TypeError: undefined is not a function

At /home/colin/.atom/packages/cargo-test-runner/lib/clickable-paths.coffee:30

TypeError: undefined is not a function
    at Object.module.exports.open (/home/colin/.atom/packages/cargo-test-runner/lib/clickable-paths.coffee:41:58)
    at HTMLAnchorElement.module.exports.clicked (/home/colin/.atom/packages/cargo-test-runner/lib/clickable-paths.coffee:28:27)
    at HTMLAnchorElement.jQuery.event.dispatch (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLAnchorElement.elemData.handle (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

  2x -1:13.9.0 core:move-left (atom-text-editor.editor.is-focused)
     -1:13.3.0 editor:newline (atom-text-editor.editor.is-focused)
     -1:12.6.0 core:move-up (atom-text-editor.editor.is-focused)
     -1:09.7.0 cargo-test-runner:run (atom-text-editor.editor.is-focused)
     -1:07.7.0 core:save (atom-text-editor.editor.is-focused)
     -1:07.0 cargo-test-runner:run (atom-text-editor.editor.is-focused)
  3x -0:45.5.0 core:delete (atom-text-editor.editor.is-focused)
  2x -0:44 core:save (atom-text-editor.editor.is-focused)
     -0:41 cargo-test-runner:run (atom-text-editor.editor.is-focused)
     -0:31.4.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:30.8.0 editor:newline (atom-text-editor.editor.is-focused)
  3x -0:29.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:28 core:backspace (atom-text-editor.editor.is-focused)
     -0:16.9.0 core:delete (atom-text-editor.editor.is-focused)
     -0:11.1.0 core:save (atom-text-editor.editor.is-focused)
     -0:06.9.0 cargo-test-runner:run (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ],
    "disabledPackages": [
      "vim-mode",
      "linter"
    ],
    "autoHideMenuBar": true
  }
}

Installed Packages

# User
build, v0.38.0
cargo-test-runner, v0.0.4
keyboard-localization, v1.4.3
language-rust, v0.4.3
linter-rust, v0.1.0
minimap, v4.10.0
racer, v0.15.2
rust-api-docs-helper, v0.5.1

# Dev
No dev packages