Giter VIP home page Giter VIP logo

tokamak's Introduction

токамак

Tokamak

Fusion Reactor for Rust - apm Build Status

  • Syntax highlighting
  • Creating Cargo project
  • Support for Cargo projects
  • Code Completion with Racer
  • Managing Rust toolchains
  • Code Linting
  • Project specific configuration
  • Code formatting
  • Go to definition
  • Hover for documentation
  • Find references
  • Outline for the file and the project
  • Autocomplete out-of-the-box
  • Code highlight

токамак project configuration

токамак supports project configuration for each project. This helps to resolve editor and project options. tokamak.toml file will be used by helper in the future. It should resides in with same level of Cargo.toml. By default Cargo project generated with tokamak will create it also. Here is an example tokamak.toml file.

[helper]
path = ""                                  # Reserved for future helper path and configurations
[options]
save_buffers_before_run = true             # Saving buffers before every cargo command run
general_warnings = true                    # Show general warnings
[project]
auto_format_timing = 5                     # Run auto formatting for project for specified interval (seconds)

Upgrading to 0.4.0

Racer support is removed because RLS is going to be the one that will replace Racer. Linter package is removed you can disable it in versions after 0.4.0. Instead of linter, diagnostics will be used from atom-ide-ui package.

## Contributing Contribution rules are written in CONTRIBUTING.md.

License

Copyright (c) 2016-2017 Mahmut Bulut

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Tokamak logo built from "3D picture of JET vessel equipped with the ITER-Like Wall" - Copyright © EUROfusion 2014 - 2018

tokamak's People

Contributors

flying-sheep avatar ithamsteri avatar mmstick avatar puppykevin avatar rndfoobar avatar shinmili avatar vertexclique avatar zmanian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tokamak's Issues

The terminal does not work!

The terminal does not work(it looks like any input and output is blocking to and from). Win 10, Atom 1.8, Tokamak 0.27.

Nothing works

After installing tokamak I try to build or run any of the commands nothing happens.

The Terminal doesn't work under Fedora Linux

I'm having issues with the terminal. When I open it manually or click on the cargo test/run buttons it just stays black/empty and does nothing. I also can't enter any commands.

Screenshot:
tokamak_screenshot

Toolbar icons too big.

They take way too much space.

Better yet, why not give an option for disabling the toolbar? You don't need it if you remember the keyboard shortcuts.

Uncaught Error: ENOENT: no such file or directory, uv_chdir

[Enter steps to reproduce below:]

  1. Open this project: https://github.com/kindlychung/learn_rust
  2. Press tokamak build.

Atom Version: 1.6.2
System: Mac OS X 10.10.5
Thrown From: tokamak package, v0.2.6

Stack Trace

Uncaught Error: ENOENT: no such file or directory, uv_chdir

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/babel-core/node_modules/regenerator/node_modules/commoner/node_modules/graceful-fs/polyfills.js:18

Error: ENOENT: no such file or directory, uv_chdir
    at Error (native)
    at process.chdir (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/babel-core/node_modules/regenerator/node_modules/commoner/node_modules/graceful-fs/polyfills.js:18:9)
    at process.chdir (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/less-cache/node_modules/less/node_modules/graceful-fs/polyfills.js:14:9)
    at CargoView.module.exports.CargoView.cargoCmdRunner (/Users/kaiyin/.atom/packages/tokamak/lib/cargo-view.coffee:73:13)
    at CargoView.module.exports.CargoView.attachCargo (/Users/kaiyin/.atom/packages/tokamak/lib/cargo-view.coffee:49:6)
    at atom-workspace.commandSubscription.atom.commands.add.tokamak:build (/Users/kaiyin/.atom/packages/tokamak/lib/cargo-view.coffee:26:28)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:25.7.0 vim-mode:select-around-curly-brackets (atom-text-editor.editor.vim-mode.is-focused.operator-pending-mode)
     -0:25 vim-mode:reset-normal-mode (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:24.9.0 vim-mode:undo (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:24.2.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
 13x -0:23.7.0 vim-mode:move-up (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:22 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:21.7.0 vim-mode:move-to-last-character-of-line (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:21 vim-mode:delete (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:20.5.0 vim-mode:select-around-curly-brackets (atom-text-editor.editor.vim-mode.is-focused.operator-pending-mode)
  4x -0:19.9.0 vim-mode:delete (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:16.4.0 core:save (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:09.5.0 command-palette:toggle (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -0:04.9.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:03.7.0 core:move-up (atom-text-editor.editor.mini.is-focused)
     -0:01.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:01.8.0 tokamak:build (atom-text-editor.editor.vim-mode.normal-mode)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "solarized-light-syntax"
    ]
  },
  "tokamak": {
    "racerBinPath": "/Users/kaiyin/.multirust/toolchains/stable/cargo/bin/racer"
  }
}

Installed Packages

# User
asciidoc-preview, v0.6.0
atom-beautify, v0.29.2
auto-update-packages, v1.0.1
haskell-grammar, v0.4.0
haskell-pointfree, v0.1.3
haskell-unicode-snippets, v0.1.1
hover-tooltips-hdevtools, v0.10.0
hover-tooltips-liquid, v0.8.0
language-asciidoc, v0.12.0
language-haskell, v1.7.10
language-rust, v0.4.6
linter, v1.11.4
linter-hlint, v0.4.3
linter-rust, v0.4.5
racer, v0.18.0
rust-api-docs-helper, v0.5.1
tokamak, v0.2.6
tokamak-terminal, v0.1.1
tool-bar, v0.4.0
vim-mode, v0.65.0
vim-mode-visual-block, v0.2.15

# Dev
No dev packages

Unable to close "About"

As title. After clicking the "About" button, I am unable to find a way to close the dialogue box that pops up, without closing Atom.

Reuse terminal window

Currently it creates a new terminal window for every run, which doesn't makes much sense.

Clicking on Terminal runs "Clean"

When I click on the "Terminal" button, the message Tokamak: Cargo clean successful! shows up, but not the terminal. Anyone else experienced this behavior?

Edit: I looked up the behavior of "Terminal" and it really runs clean as a callback. This is a little bit confusing in my opinion since there is a clean command available.

Project still alive?

Hey, is this project still alive?
I can't really seem to find a Rust addon/ide which still is being worked on :/

Failed to activate the tokamak package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.6.2
System: Mac OS X 10.11.3
Thrown From: tokamak package, v0.2.2

Stack Trace

Failed to activate the tokamak package

At fs is not defined

ReferenceError: fs is not defined
    at new AboutView (/Users/vertexclique/projects/tokamak/lib/about-view.coffee:13:20)
    at Object.module.exports.Tokamak.activate (/Users/vertexclique/projects/tokamak/lib/tokamak.coffee:75:22)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:181:20)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:155:32
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:148:26
    at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:145:34)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:526:21)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:444:29
    at exit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:73:16)
    at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:213:47)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:220:18
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:98:18)
    at emitOne (events.js:82:20)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

Commands

     -5:36.7.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -5:34.8.0 core:select-all (atom-text-editor.editor.mini.is-focused)
     -5:34.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -5:30.7.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -5:30.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -5:21.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -5:19.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -5:19.4.0 settings-view:install-packages-and-themes (atom-text-editor.editor)
     -5:17.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -5:01.5.0 core:move-up (atom-text-editor.editor.is-focused)
     -5:00.9.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  2x -4:54.3.0 core:save (atom-text-editor.editor.is-focused)
     -0:17.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:14.5.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "tree-view"
    ]
  }
}

Installed Packages

# User
tokamak, v0.2.2

# Dev
No dev packages

Some default value are different from their placeholder

Preferred Line Length shows the placeholder "Default: 80" but the actual default value is 99 (showed when the field has the focus though).

Same issue for "Tab Length" which shows "Default: 2" but the actual value is 4.

TypeError: Path must be a string. Received undefined

[Enter steps to reproduce below:]

  1. Start Terminal.app
  2. run apm install tokamak.

Atom Version: 1.9.6
System: Mac OS X 10.11.6
Thrown From: tokamak package, v0.2.8

Stack Trace

Failed to activate the tokamak package

At Path must be a string. Received undefined

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1253:7)
    at Function.module.exports.Utils.isTokamakProject (/Users/neo/.atom/packages/tokamak/lib/utils.coffee:115:24)
    at Object.module.exports.Tokamak.activate (/Users/neo/.atom/packages/tokamak/lib/tokamak.coffee:87:14)
    at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:20)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:156:32
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:149:26
    at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:146:34)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:538:21)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:519:29
    at Config.module.exports.Config.transactAsync (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:337:18)
    at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:514:19)
    at PackageManager.module.exports.PackageManager.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:497:46)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:760:28

Commands

Config

{
  "core": {},
  "tokamak": {}
}

Installed Packages

# User
ink, v0.4.4 (inactive)
julia-client, v0.4.7 (inactive)
language-julia, v0.6.0 (inactive)
latex-completions, v0.3.1 (inactive)
tokamak, v0.2.8 (inactive)
tool-bar, v1.0.0 (inactive)
uber-juno, v0.1.1 (inactive)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (inactive)
archive-view, v0.61.1 (inactive)
autocomplete-atom-api, v0.10.0 (inactive)
autocomplete-css, v0.11.1 (inactive)
autocomplete-html, v0.7.2 (inactive)
autocomplete-plus, v2.31.0 (inactive)
autocomplete-snippets, v1.11.0 (inactive)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (inactive)
background-tips, v0.26.0 (inactive)
bookmarks, v0.41.0 (inactive)
bracket-matcher, v0.82.1 (inactive)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (inactive)
dev-live-reload, v0.47.0 (inactive)
encoding-selector, v0.22.0 (inactive)
exception-reporting, v0.38.3 (inactive)
fuzzy-finder, v1.3.0 (inactive)
git-diff, v1.1.0 (inactive)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (inactive)
image-view, v0.58.0 (inactive)
incompatible-packages, v0.26.1 (inactive)
keybinding-resolver, v0.35.0 (inactive)
line-ending-selector, v0.5.0 (inactive)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (inactive)
metrics, v0.53.1 (inactive)
notifications, v0.64.1 (inactive)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.0 (inactive)
snippets, v1.0.2 (inactive)
spell-check, v0.67.1 (inactive)
status-bar, v1.4.1 (inactive)
styleguide, v0.46.0 (inactive)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.0 (inactive)
timecop, v0.33.1 (inactive)
tree-view, v0.208.0 (inactive)
update-package-dependencies, v0.10.0 (inactive)
welcome, v0.34.0 (inactive)
whitespace, v0.32.2 (inactive)
wrap-guide, v0.38.1 (inactive)
language-c, v0.52.1 (inactive)
language-clojure, v0.21.0 (inactive)
language-coffee-script, v0.47.0 (inactive)
language-csharp, v0.12.1 (inactive)
language-css, v0.36.2 (inactive)
language-gfm, v0.86.0 (inactive)
language-git, v0.13.0 (inactive)
language-go, v0.42.0 (inactive)
language-html, v0.44.1 (inactive)
language-hyperlink, v0.16.0 (inactive)
language-java, v0.22.0 (inactive)
language-javascript, v0.119.0 (inactive)
language-json, v0.18.0 (inactive)
language-less, v0.29.3 (inactive)
language-make, v0.22.2 (inactive)
language-mustache, v0.13.0 (inactive)
language-objective-c, v0.15.1 (inactive)
language-perl, v0.35.0 (inactive)
language-php, v0.37.0 (inactive)
language-property-list, v0.8.0 (inactive)
language-python, v0.45.0 (inactive)
language-ruby, v0.68.5 (inactive)
language-ruby-on-rails, v0.25.0 (inactive)
language-sass, v0.52.0 (inactive)
language-shellscript, v0.22.3 (inactive)
language-source, v0.9.0 (inactive)
language-sql, v0.21.1 (inactive)
language-text, v0.7.1 (inactive)
language-todo, v0.28.0 (inactive)
language-toml, v0.18.0 (inactive)
language-xml, v0.34.8 (inactive)
language-yaml, v0.26.0 (inactive)

# Dev
No dev packages

If there is any other info I need to supply, please tell me. Thank you!

Error when creating project

When I press "Create Cargo Lib" or "Create Cargo Binary", I get the error below.
The project still gets created anyway though.

Atom Version: 1.7.1
System: Microsoft Windows 10 Enterprise
Thrown From: tokamak package, v0.2.7

Stack Trace

Uncaught TypeError: Cannot read property 'split' of undefined

At C:\Users\LFalch\AppData\Local\atom\app-1.7.1\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\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\text-buffer\lib\range.js:47:19)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:588:24)
    at C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:576:26
    at TextBuffer.module.exports.TextBuffer.transact (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:828:18)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:574:21)
    at TextBuffer.module.exports.TextBuffer.setText (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:514:19)
    at TextEditor.module.exports.TextEditor.setText (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\src\text-editor.js:810:26)
    at CargoView.module.exports.CargoView.attach (file:///C:/Users/LFalch/.atom/packages/tokamak/lib/cargo-view.coffee:51:12)
    at atom-workspace.commandSubscription.atom.commands.add.tokamak:create-cargo-binary (file:///C:/Users/LFalch/.atom/packages/tokamak/lib/cargo-view.coffee:27:42)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\src\command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\src\command-registry.js:160:19)
    at CreateProjectView.module.exports.CreateProjectView.confirmed (file:///C:/Users/LFalch/.atom/packages/tokamak/lib/create-project-view.coffee:38:28)
    at CreateProjectView.module.exports.SelectListView.confirmSelection (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:338:21)
    at HTMLLIElement.<anonymous> (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:139:19)
    at HTMLOListElement.jQuery.event.dispatch (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (C:\Users\LFalch\AppData\Local\atom\app-1.7.1\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands

     -2:04.2.0 git-plus:menu (atom-text-editor.editor.is-focused)
  2x -2:03.2.0 core:backspace (atom-text-editor.editor.mini.is-focused)
  2x -2:01.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:07.5.0 tokamak:create-project (atom-text-editor.editor)
     -0:02.7.0 tokamak:create-cargo-binary (atom-workspace.workspace.scrollbars-visible-always.tinted-tab-bar.compact-tab-bar.panel-shadows.panel-contrast.use-animations.compact-tree-view.blend-tree-view.theme-atom-material-syntax.theme-atom-material-ui)

Config

{
  "core": {
    "themes": [
      "atom-material-ui",
      "atom-material-syntax"
    ]
  },
  "tokamak": {
    "binaryDetection": false,
    "cargoBinPath": "C:\\Users\\LFalch\\.cargo\\bin\\cargo",
    "multirustBinPath": "C:\\Users\\LFalch\\.cargo\\bin\\multirust",
    "racerBinPath": "C:\\Users\\LFalch\\.cargo\\bin\\racer.exe",
    "rustSrcPath": "C:\\Users\\LFalch\\rustc-1.8.0\\src",
    "rustcBinPath": "C:\\Users\\LFalch\\.cargo\\bin\\rustc"
  }
}

Installed Packages

# User
atom-material-syntax, v0.4.6
atom-material-ui, v1.2.10
autocomplete-go, v1.0.6
build, v0.59.0
builder-go, v1.0.0
color-picker, v2.1.1
environment, v1.2.0
gcc-make-run, v0.2.6
git-plus, v5.13.4
go-config, v1.1.4
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
hex, v0.6.2
keyboard-localization, v1.4.18
language-glsl, v2.0.1
language-haskell, v1.7.10
language-htaccess, v0.1.1
language-lua, v0.9.4
language-rust, v0.4.6
linter, v1.11.4
linter-gcc, v0.6.9
linter-lua, v1.0.2
linter-rust, v0.4.5
minimap, v4.21.0
navigator-godef, v1.0.2
pigments, v0.26.0
project-manager, v2.9.7
racer, v0.20.0
tester-go, v1.0.4
tokamak, v0.2.7
tokamak-terminal, v0.1.1
tool-bar, v0.4.0

# Dev
language-toml, v0.18.0

Changes required for upcoming CoffeeScript upgrade

Hi! Thanks for maintaining the tokamak package!

In Atom v1.12, we are going to upgrade CoffeeScript to the latest version. This upgrade entails one potentially breaking change to the language:

Changed strategy for the generation of internal compiler variable names. Note that this means that @example function parameters are no longer available as naked example variables within the function body.

We think your package may be affected by this upgrade, in the following places:

  • The mode variable here

These findings are based on linting packages with coffeescope. We could be wrong about some of them. When we release v1.12 beta, please test your package against it to make sure that it works. Let me know if you have any further questions; I will be happy to help!

Terminal does not refresh on ^L until next keystroke

Steps to reproduce:

  1. Open tokamak terminal (with zsh as shell)
  2. Trigger some output (eg. ls or just hit enter)
  3. Hit Ctrl-L

Expected: Screen is cleared
What happens: Screen freezes until the next input. After that, it clears (and you can see the new input).

Not a high priority since the clearing still works. Not sure if this is exclusive to zsh.

OS X - default launch and env vars

OS X    10.11.4
Atom    1.6.0
rustc   1.7.0 (a5d1e7a59 2016-02-29)
cargo   0.8.0-nightly (28a0cbb 2016-01-17)

$ which rustc
/usr/local/bin/rustc

$ which cargo
/usr/local/bin/cargo

When launching Atom from the dock and installing this package, errors come up stating it cannot find those in PATH. Below that error message, it says if you have them, launch atom from the command line. What is the reasoning for this? Does it happen on Linux/Windows as well? If the issue is known, if someone could point me in the right direction, I wouldn't mind sending a PR to fix the issue across platforms.

Help Modal Doesn't Disappear

Not sure if this is an Atom thing or not, but if I open up the 'About Tokamak' modal on OSX I have to quit Atom to make it disappear.

Success window for dependency tool keeps appearing

I am getting this notification every time I start atom.

I can see why this is useful for development of the plugin or if you were struggling to get it working (the first times I was missing racer), but after that it gets annoying specially if you use atom for more than Rust.

screen shot 2016-04-14 at 15 55 08

Can we remove it or make it more intelligent?

Add attribution credit to website

You are using the Hyperspace theme from html5up which is under a CC 3.0 license.

This license requires you to attribute the work to HTML5UP. Deleting the author's name and claiming copyright of the template is a violation of the creative commons license.

Please add a link on your website attributing credit to HTML5UP for being the authors of the template.

Uncaught Error: Can't save buffer with no file path

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.3
System: Mac OS X 10.11.4
Thrown From: tokamak package, v0.2.7

Stack Trace

Uncaught Error: Can't save buffer with no file path

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

Error: Can't save buffer with no file path
    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1089:15)
    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1083:19)
    at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:660:26)
    at /Users/sommoyogurt/.atom/packages/tokamak/lib/utils.coffee:96:68
    at Array.map (native)
    at Function.module.exports.Utils.savePaneItems (/Users/sommoyogurt/.atom/packages/tokamak/lib/utils.coffee:96:35)
    at atom-workspace.subscriptions.add.atom.commands.add.tokamak:run (/Users/sommoyogurt/.atom/packages/tokamak/lib/tokamak.coffee:103:15)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at module.exports._executeCallback (/Users/sommoyogurt/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:71:23)
    at space-pen-button.<anonymous> (/Users/sommoyogurt/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:30:7)
    at space-pen-button.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at space-pen-button.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -0:01.3.0 tokamak:run (atom-text-editor.editor)

Config

{
  "core": {
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig",
        "BUCK.autodeps"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "atom-jsx-transform",
      "linter-jscs",
      "jscs-fixer",
      "linter-scss-lint",
      "nuclide",
      "jshint"
    ]
  },
  "tokamak": {
    "cargoBinPath": "/usr/local/Cellar/multirust/0.8.0/bin/cargo",
    "multirustBinPath": "/usr/local/Cellar/multirust/0.8.0/bin/multirust",
    "racerBinPath": "/Users/sommoyogurt/.multirust/toolchains/stable/cargo/bin/racer",
    "rustSrcPath": "/Users/sommoyogurt/workspace/source/rustc-1.8.0/src",
    "rustcBinPath": "/usr/local/Cellar/multirust/0.8.0/bin/rustc"
  }
}

Installed Packages

# User
angularjs, v0.3.4
atom-jade, v0.3.0
atom-jshint, v2.0.0
autoclose-html, v0.23.0
autocomplete-elixir, v1.5.13
autocomplete-python, v1.7.2
build, v0.61.0
build-cargo, v0.14.0
file-icon-supplement, v0.8.3
file-icons, v1.7.8
git-diff-details, v1.3.0
git-plus, vundefined
javascript-snippets, v1.2.1
language-babel, v2.18.5
language-cmake, v0.1.4
language-ejs, v0.2.0
language-elixir, v0.12.3
language-javascript-jsx, v0.3.7
language-rust, v0.4.6
linter, v1.11.4
linter-cpplint, v1.0.1
linter-eslint, v7.2.1
linter-ruby, v1.2.2
linter-rust, v0.4.5
merge-conflicts, v1.4.2
minimap, v4.23.2
node-debugger, v1.4.7
project-manager, v2.9.7
python-indent, v0.4.3
python-tools, v0.6.7
racer, v0.20.0
react, v0.15.0
react-snippets, v0.4.2
rust-api-docs-helper, v0.5.1
terminal-plus, v0.14.5
tokamak, v0.2.7
tokamak-terminal, v0.1.1
tool-bar, v0.4.0
tree-view-open-files, v0.3.0

# Dev
No dev packages

Multirust No Longer Maintained

I was trying to set up my tokamak, but found that multirust is no longer maintained and the author suggested rustup.rs. Although we can still use multirust, is there any plan for a switch?

Thanks.

Contextually hide and show Tokamak toolbar

I write a lot of Rust in Atom, but I also oftentimes use Atom for writing code in other languages as well. When editing files in non-Rust languages, all of Tokamak's Rust-specific toolbar icons are still shown. Since Atom exposes the language of the currently open file to plugins, it seems to me that the Tokamak toolbar icons could be contextually shown and hidden.

It would sure be nice if when I'm programming in, say, Scala, the buttons to run a Cargo build were to disappear...

The path autodetection procedure results contain extra endline symbols

The bug I was experienced with is connecting with incorrect path auto-detection procedure. It adds endline symbol (or something like that) to the end of a path field (so affected fields looks like memos). The workabout is -just remove endline symbols and turn off the autodetection feature at startup. Warning - If you execute the autodetection procedure (by pressing the toolbar button) the error appears again! Of course it must be repaired... Win10, Atom 1.8, Tokamak 0.27 , Rust 1.1 (was set with the rustup)

Uncaught TypeError: Bad argument.

[Enter steps to reproduce below:]

  1. ...Click Terminal button
  2. ...

Atom Version: 1.6.2
System: "Fedora release
Thrown From: tokamak package, v0.2.5

Stack Trace

Uncaught TypeError: Bad argument.

At /usr/share/atom/resources/app.asar/node_modules/nodegit/node_modules/fs-extra/node_modules/graceful-fs/polyfills.js:18

TypeError: Bad argument.
    at TypeError (native)
    at process.chdir (/usr/share/atom/resources/app.asar/node_modules/nodegit/node_modules/fs-extra/node_modules/graceful-fs/polyfills.js:18:9)
    at CargoView.module.exports.CargoView.cargoCmdRunner (/home/hemre/.atom/packages/tokamak/lib/cargo-view.coffee:73:13)
    at CargoView.module.exports.CargoView.attachCargo (/home/hemre/.atom/packages/tokamak/lib/cargo-view.coffee:49:6)
    at atom-workspace.commandSubscription.atom.commands.add.tokamak:clean (/home/hemre/.atom/packages/tokamak/lib/cargo-view.coffee:27:28)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app.asar/src/command-registry.js:160:19)
    at module.exports._executeCallback (/home/hemre/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:71:23)
    at space-pen-button.<anonymous> (/home/hemre/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:30:7)
    at space-pen-button.jQuery.event.dispatch (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at space-pen-button.elemData.handle (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -0:00.6.0 tokamak:clean (atom-text-editor.editor)

Config

{
  "tokamak": {
    "racerBinPath": "/home/hemre/.multirust/toolchains/stable/cargo/bin/racer"
  }
}

Installed Packages

# User
cursor-blink-interval, v0.3.1
language-rust, v0.4.6
linter, v1.11.4
linter-rust, v0.4.5
racer, v0.18.0
tokamak, v0.2.5
tool-bar, v0.4.0

# Dev
No dev packages

path problem

Famous cargo binary path problem.. "Uncaught TypeError: item.save is not a function"
Yes , I am aware of the discussion upon the topic.. but NONE of suggested workabouts is good for me.
The problem: The tokamak can not do anything with the cargo.exe commands.
The details:
The Racer atom's component does not work too even stand alone(without tokamak)- I suspect for the same reason . The linter atom's component works well (It implies on correctly set the rust environment). The Racer set up correctly and works well(out of the Atom). The autodetection results visually correct paths in the proper fields. Yet nasty autodetection toolchain problem presents at the atom's start - may be it prevents the tokamak from its regular workflow? Of course the cargo tool works just fine from a command line.
The Rust environment was set up with the rustup tool (default options for msvs(abi) of the stable channel ). OS Windows 10. atom v1.8.0. tokamak v 0.2.7

Uncaught TypeError: path must be a string

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.3
System: Mac OS X 10.11.4
Thrown From: tokamak package, v0.2.7

Stack Trace

Uncaught TypeError: path must be a string

At fs.js:196

TypeError: path must be a string
    at TypeError (native)
    at Object.fs.access (fs.js:196:11)
    at CargoView.module.exports.CargoView.cargoCmdRunner (/Users/jaredmackey/.atom/packages/tokamak/lib/cargo-view.coffee:78:8)
    at CargoView.module.exports.CargoView.attachCargo (/Users/jaredmackey/.atom/packages/tokamak/lib/cargo-view.coffee:55:6)
    at atom-workspace.commandSubscription.atom.commands.add.tokamak:clean (/Users/jaredmackey/.atom/packages/tokamak/lib/cargo-view.coffee:31:28)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at module.exports._executeCallback (/Users/jaredmackey/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:71:23)
    at space-pen-button.<anonymous> (/Users/jaredmackey/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:30:7)
    at space-pen-button.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at space-pen-button.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -0:40.6.0 tokamak:build (atom-text-editor.editor)
     -0:00.5.0 tokamak:clean (atom-text-editor.editor)

Config

{
  "core": {},
  "tokamak": {}
}

Installed Packages

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

# Dev
No dev packages

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

[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

Uncaught TypeError: Cannot read property 'save_buffers_before_run' of undefined

  1. Open a rust project.
  2. Click on run on the top toolbar.

Atom Version: 1.10.0
Electron Version: 0.37.8
System: "Fedora release
Thrown From: tokamak package, v0.3.1

Stack Trace

Uncaught TypeError: Cannot read property 'save_buffers_before_run' of undefined

At /Volumes/newhome/palm/.atom/packages/tokamak/lib/tokamak.coffee:116

TypeError: Cannot read property 'save_buffers_before_run' of undefined
    at atom-workspace.subscriptions.add.atom.commands.add.tokamak:run (/Volumes/newhome/palm/.atom/packages/tokamak/lib/tokamak.coffee:116:34)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/lumalocal/Atom/resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/lumalocal/Atom/resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/lumalocal/Atom/resources/app.asar/src/command-registry.js:160:19)
    at executeCallback (/Volumes/newhome/palm/.atom/packages/tool-bar/lib/tool-bar-button-view.js:105:19)
    at ToolBarButtonView._onClick (/Volumes/newhome/palm/.atom/packages/tool-bar/lib/tool-bar-button-view.js:69:7)

Commands

     -0:00.1.0 tokamak:run (atom-text-editor.editor)

Config

{
  "tokamak": {
    "cargoBinPath": "/Volumes/newhome/palm/.cargo/bin/cargo",
    "racerBinPath": "/Volumes/newhome/palm/.cargo/bin/racer",
    "rustSrcPath": "/Volumes/newhome/palm/repos/rust-1.11.0/src",
    "rustcBinPath": "/Volumes/newhome/palm/.cargo/bin/rustc",
    "toolBinPath": "/Volumes/newhome/palm/.cargo/bin/rustup"
  }
}

Installed Packages

# User
language-rust, v0.4.6 (active)
linter, v1.11.16 (active)
linter-rust, v0.5.6 (active)
racer, v0.20.0 (active)
tokamak, v0.3.1 (active)
tokamak-terminal, v0.1.2 (active)
tool-bar, v1.0.1 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.5.0 (active)
one-light-ui, v1.5.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.3 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
find-and-replace, v0.201.0 (inactive)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.2 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.65.0 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.241.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.100.2 (active)
timecop, v0.33.2 (active)
tree-view, v0.208.2 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Add rustup support

rustup is the official rust version manager.

Please remove multirust and support rustup.

Cargo run often starts with "Blocking waiting for file lock on build directory"

Hi there,
I'm using tokamak with rustup under Windows10 64 bit with atom. When I hit "run" I often see
Blocking waiting for file lock on build directory
The process then waits for approx 1 minute before the actual compile starts. Somebody on StackOverflow made the guess that my atom is using cargo in the background in order to check the syntax of my code at the same time so that effectively 2 instances of cargo are running by then.
Did anybody else encounter this behaivor? Is there anything I can change in the config to fix this?
Thx

Uncaught TypeError: item.save is not a function

I'm gettin an undefined is not a function error all of a sudden

  1. Opened Atom after switching multirust to use the beta (instead of nightly) by default
  2. Attempted a cargo build using the Tokamak button
  3. The error shows up

Atom Version: 1.7.1
System: Mac OS X 10.10.5
Thrown From: tokamak package, v0.2.7

Stack Trace

Uncaught TypeError: item.save is not a function

At ~/.atom/packages/tokamak/lib/utils.coffee:96

TypeError: item.save is not a function
    at ~/.atom/packages/tokamak/lib/utils.coffee:96:68
    at Array.map (native)
    at Function.module.exports.Utils.savePaneItems (~/.atom/packages/tokamak/lib/utils.coffee:96:35)
    at atom-workspace.commandSubscription.atom.commands.add.tokamak:build (~/.atom/packages/tokamak/lib/cargo-view.coffee:29:15)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at module.exports._executeCallback (~/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:71:23)
    at space-pen-button.<anonymous> (~/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:30:7)
    at space-pen-button.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at space-pen-button.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

  2x -0:45 tokamak:multirust-select-toolchain (atom-text-editor.editor)
     -0:40.1.0 tokamak:build (atom-text-editor.editor)
     -0:32.4.0 pane:show-item-1 (atom-text-editor.editor.is-focused)
     -0:31.5.0 core:save (atom-text-editor.editor.is-focused)
     -0:31.1.0 pane:show-item-2 (atom-text-editor.editor.is-focused)
     -0:30.7.0 core:save (atom-text-editor.editor.is-focused)
     -0:29.7.0 find-and-replace:show (atom-text-editor.editor.is-focused)
     -0:29 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:29 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:26.4.0 tokamak:build (atom-text-editor.editor)
     -0:14.8.0 tokamak:clean (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:12.9.0 tokamak:build (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:10 tokamak:run (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:00.7.0 tokamak:build (atom-text-editor.editor)

Toolchain detection doesn't work under Windows.

When searching for toolchains, tokamak will issue a multirust list-toolchains command that seemingly drops its arguments somewhere along the way. This line here will report that multirust returned "This is the currently installed multirust binary." and will not exit until user interaction is done. This aligns with this issue issue created under the multirust-rs project, and entering only "multirust" in the command prompt shows the same message.

For reference, I'm on Windows 7.

option to set and remove overrides

EDITED

tokamak currently sets the default toolchain. However this has no effect if there are overrides.

I suggest

  • tokamak should set overrides instead of the default toolchain
  • you should be able to remove the override by selecting something like default (xxx)

Tokamak: Multirust Set Toolchain Override

  • default (stable)
  • beta
  • nightly
  • stable

What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.