Fusion Reactor for Rust - Atom Rust IDE

Overview

токамак

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

Comments
  • Failed to activate the tokamak package

    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
    
    opened by vertexclique 9
  • Uncaught TypeError: item.save is not a function

    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)
    
    opened by mhintz 7
  • path problem

    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

    opened by dizergin 5
  • Contextually hide and show Tokamak toolbar

    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...

    opened by hawkw 5
  • Success window for dependency tool keeps appearing

    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?

    opened by davisein 5
  • Tokamak enforces two space indents

    Tokamak enforces two space indents

    With this extension enabled, Rust source code will be forced to use two space indents -- completely ignoring the global value. Happened with the latest update.

    opened by mmstick 4
  • Deprecated selector in `tokamak/styles/tokamak.less`

    Deprecated selector in `tokamak/styles/tokamak.less`

    In tokamak/styles/tokamak.less:

    Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

    • atom-text-editor::shadow .meta.attribute.rust => atom-text-editor.editor .syntax--meta.syntax--attribute.syntax--rust

    • atom-text-editor::shadow .storage.modifier.lifetime.rust, atom-text-editor::shadow .entity.name.lifetime.rust => atom-text-editor.editor .syntax--storage.syntax--modifier.syntax--lifetime.syntax--rust, atom-text-editor.editor .syntax--entity.syntax--name.syntax--lifetime.syntax--rust

    • atom-text-editor::shadow .keyword.unsafe.rust => atom-text-editor.editor .syntax--keyword.syntax--unsafe.syntax--rust

    Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

    opened by khinch 3
  • Uncaught Error: Can't save buffer with no file path

    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
    
    opened by roccotr 3
  • Don’t add spacers at the start/end

    Don’t add spacers at the start/end

    There’s no reason to have one that isn’t between toolbar buttons, and it breaks material-ui.

    Spacers between toolbars should be added by the tool-bar package or by the theme via CSS

    opened by flying-sheep 3
  • Added a run button

    Added a run button

    I have implemented a "Run" button. This simply calls cargo run with no settings and outputs the result as a notification since a terminal is missing. As this is my first contribution ever to an Atom package, feedback is highly welcome :)

    opened by teekaay 3
  • Clicking on Terminal runs

    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.

    bug 
    opened by teekaay 3
  • Uncaught The

    Uncaught The "path" argument must be one of type string, Buffer, or URL. Received type undefined

    [Enter steps to reproduce:]

    1. ...
    2. ...

    Atom: 1.44.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Pro Thrown From: tokamak package 0.4.1

    Stack Trace

    Uncaught The "path" argument must be one of type string, Buffer, or URL. Received type undefined

    At internal/fs/utils.js:453
    
    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type undefined
        at Object.access (fs.js:174:3)
        at Object.fs.access (ELECTRON_ASAR.js:448:34)
        at CargoView.module.exports.CargoView.cargoCmdRunner (/packages/tokamak/lib/cargo-view.coffee:87:8)
        at CargoView.module.exports.CargoView.attachCargo (/packages/tokamak/lib/cargo-view.coffee:64:6)
        at /packages/tokamak/lib/cargo-view.coffee:37:28)
        at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.44.0/resources/app/static/<embedded>:11:349290)
        at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.44.0/resources/app/static/<embedded>:11:347765)
        at ToolBarButtonView.executeCallback (/packages/tool-bar/lib/tool-bar-button-view.js:139:23)
        at ToolBarButtonView._onClick (/packages/tool-bar/lib/tool-bar-button-view.js:113:12)
    

    Commands

         -0:13.3.0 tokamak:clean (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
    

    Non-Core Packages

    atom-ide-ui 0.13.0 
    atom-language-rust 0.14.1 
    build 0.70.0 
    build-cargo 2.0.0 
    busy-signal 2.0.1 
    ftp-remote-edit 0.18.0 
    intentions 1.1.5 
    language-rust 0.4.12 
    tokamak 0.4.1 
    tokamak-terminal 10.0.1 
    tool-bar 1.2.0 
    
    opened by iamenvision 0
  • Tokamak is looking for maintainers!

    Tokamak is looking for maintainers!

    Since 2016 tokamak is a living project!

    Tokamak environment (including tokamak-terminal) has +31000 downloads on APM.

    This bundle is used by a lot of people, they are continuously submitting issues and their PRs. Currently, I don't have time to take a look at Tokamak bundle. So I am looking to move whole Tokamak packages inside an organization and properly maintain them all.

    Atom is a good editor and this bundle erases a lot of friction to get going for Rust.

    Looking forward to hearing from future maintainers soon!

    opened by vertexclique 0
  • Uncaught The

    Uncaught The "file" argument must be of type string. Received type undefined

    [Enter steps to reproduce:]

    1. ...
    2. ...

    Atom: 1.40.1 x64 Electron: 3.1.10 OS: Mac OS X 10.14.6 Thrown From: tokamak package 0.4.1

    Stack Trace

    Uncaught The "file" argument must be of type string. Received type undefined

    At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:14
    
    TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type undefined
        at normalizeSpawnArguments (child_process.js:409:11)
        at Object.spawn (child_process.js:534:38)
        at BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1128800)
        at BufferedProcess.start (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1126975)
        at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1126771)
        at ToolchainView.module.exports.ToolchainView.runCommandOut (/packages/tokamak/lib/toolchain-view.coffee:99:5)
        at ToolchainView.module.exports.ToolchainView.getToolchainList (/packages/tokamak/lib/toolchain-view.coffee:64:8)
        at ToolchainView.module.exports.ToolchainView.initialize (/packages/tokamak/lib/toolchain-view.coffee:20:6)
        at /packages/julia-client/node_modules/space-pen/lib/space-pen.js:184:25)
        at /packages/julia-client/node_modules/atom-space-pen-views/lib/select-list-view.js:18:51)
        at /packages/tokamak/lib/toolchain-view.coffee:14:5)
        at Tokamak.launchActivation (/packages/tokamak/lib/tokamak.js:186:26)
        at Tokamak.tokamakProjectConfigLaunch (/packages/tokamak/lib/tokamak.js:175:10)
        at Tokamak.activate (/packages/tokamak/lib/tokamak.js:159:21)
        at /packages/tokamak/lib/tokamak.js:118:13)
        at /packages/tokamak/lib/tokamak.js:391:18)
        at /packages/tokamak/lib/tokamak.js:392:3)
        at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
        at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150977)
        at Module.load (internal/modules/cjs/loader.js:620:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
        at Function.Module._load (internal/modules/cjs/loader.js:551:3)
        at Module.require (/app.asar/static/index.js:72:46)
        at require (internal/modules/cjs/helpers.js:20:18)
        at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:688158)
        at Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3307234)
        at Package.activateNow (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3295218)
        at measure (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3294996)
        at Package.measure (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3292606)
        at activationPromise.activationPromise.Promise (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3294856)
        at /packages/git-plus/node_modules/core-js/modules/es6.promise.js:177:7)
        at Package.activate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3294799)
        at PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:382285)
        at config.transactAsync (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:381901)
        at Config.transactAsync (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:331549)
        at PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:381851)
        at PackageManager.activate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:381401)
        at t.loadState.then (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:710323)
    

    Commands

    Non-Core Packages

    atom-beautify 0.33.4 
    atom-icons 0.2.2 
    atom-ide-ui 0.13.0 
    busy-signal 2.0.1 
    file-icons 2.1.35 
    git-plus 8.7.1 
    Hydrogen 2.12.0 
    icon-fonts 3.2.0 
    ink 0.11.0 
    intentions 1.1.5 
    julia-client 0.10.1 
    language-julia 0.19.1 
    language-rust 0.4.12 
    linter 2.3.1 
    linter-ui-default 1.8.0 
    tokamak 0.4.1 
    tokamak-terminal 10.0.1 
    tool-bar 1.1.12 
    
    opened by Anselmoo 0
  • Object.dirname is deprecated.

    Object.dirname is deprecated.

    Argument to path.dirname must be a string

    Object.dirname (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:9:10)
    getCargoPath (/Users/richardpringle/.atom/packages/tokamak/lib/rls.js:12:28)
    Promise (/Users/richardpringle/.atom/packages/tokamak/lib/rls.js:27:46)
    Promise (null:null:null)
    exec (/Users/richardpringle/.atom/packages/tokamak/lib/rls.js:25:10)
    Promise (/Users/richardpringle/.atom/packages/tokamak/lib/rls.js:72:5)
    
    opened by richardpringle 0
  • Uncaught Error: spawn EACCES

    Uncaught Error: spawn EACCES

    [Enter steps to reproduce:]

    1. ...
    2. ...

    Atom: 1.34.0 x64 Electron: 2.0.16 OS: "Fedora release Thrown From: tokamak package 0.4.1

    Stack Trace

    Uncaught Error: spawn EACCES

    At /usr/share/atom/resources/app/static/<embedded>:14
    
    Error: spawn EACCES
        at _errnoException (util.js:1024:11)
        at ChildProcess.spawn (internal/child_process.js:323:11)
        at Object.exports.spawn (child_process.js:514:9)
        at BufferedProcess.spawn (/usr/share/atom/resources/app/static/<embedded>:14:1037552)
        at BufferedProcess.start (/usr/share/atom/resources/app/static/<embedded>:14:1035727)
        at new BufferedProcess (/usr/share/atom/resources/app/static/<embedded>:14:1035523)
        at CargoView.module.exports.CargoView.runCommandOut (/packages/tokamak/lib/cargo-view.coffee:172:5)
        at CargoView.module.exports.CargoView.runCargo (/packages/tokamak/lib/cargo-view.coffee:76:6)
        at /packages/tokamak/lib/cargo-view.coffee:92:14
        at FSReqWrap.oncomplete (fs.js:135:15)
    

    Commands

     10x -2:54.2.0 core:backspace (input.hidden-input)
      3x -2:42.4.0 core:move-right (input.hidden-input)
         -2:41.5.0 core:move-left (input.hidden-input)
      2x -2:41 core:move-right (input.hidden-input)
      5x -2:40.3.0 core:backspace (input.hidden-input)
         -2:28.8.0 core:cut (input.hidden-input)
      5x -2:28 core:backspace (input.hidden-input)
         -2:09.4.0 core:paste (input.hidden-input)
         -2:03.8.0 core:copy (input.hidden-input)
         -1:59.6.0 core:paste (input.hidden-input)
     12x -1:52.8.0 core:backspace (input.hidden-input)
         -1:40 core:select-all (input.hidden-input)
      2x -1:39.3.0 core:paste (input.hidden-input)
         -1:14.9.0 tokamak:build (div.package-detail.panels-item)
         -1:00.5.0 core:backspace (input.hidden-input)
      2x -0:44.4.0 tokamak:build (div.package-detail.panels-item)
    

    Non-Core Packages

    atom-ide-ui 0.13.0 
    busy-signal 2.0.0 
    intentions 1.1.5 
    language-rust 0.4.12 
    tokamak 0.4.1 
    tokamak-terminal 10.0.1 
    tool-bar 1.1.11 
    
    opened by anak10thn 0
  • RLS install failing, existing RLS not found

    RLS install failing, existing RLS not found

    So it seems the way RLS is supposed to be installed has changed recently. In Tokamak 0.4.1 I was getting console errors when trying to install the RLS:

    Uncaught (in promise) Error: Command failed: /Users/leavengood/.cargo/bin/rustup component add rls --toolchain nightly
    error: toolchain 'nightly-x86_64-apple-darwin' does not contain component 'rls' for target 'x86_64-apple-darwin'
    

    I then followed the instructions on https://github.com/rust-lang-nursery/rls to manually install RLS using rustup, but not on nightly, on the stable channel. Therefore since Tokamak is trying to run the RLS with the nightly toolchain, it could not run:

    https://github.com/vertexclique/tokamak/blob/master/lib/rls.js#L153

    I got the RLS working in Tokamak by commenting out the contents of checkRLS() and just returning a resolved Promise, and changing the above nightly cargo parameter to stable.

    I am not sure of the proper solution, otherwise I might consider a PR.

    Otherwise I found hacking on Tokamak pretty easy!

    opened by leavengood 1
Owner
Theo M. Bulut
λx.λy.y → λx.λz.z | compiler opt, @rust-lang, and ML | 0xD20F2F5E6DFD6F11 – Different barb, same wire
Theo M. Bulut
A terminal-based text editor written in Rust

Iota Iota is a terminal-based text-editor written in Rust. Here's what it looks like right now, editing itself. Motivation Iota was born out of my fru

Greg Chapple 1.6k Jan 8, 2023
A text editor in ≤1024 lines of code, written in Rust

Kibi: A text editor in ≤1024 lines of code, written in Rust A configurable text editor with UTF-8 support, incremental search, syntax highlighting, li

Ilaï Deutel 881 Dec 29, 2022
An independent Rust text editor that runs in your terminal!

Ox editor Ox is a code editor that runs in your terminal. About The Project Ox is a code editor. It was written in Rust using ANSI escape sequences. I

null 2.9k Jan 2, 2023
Rust :heart: Emacs

Rust ❤️ Emacs A community-driven port of Emacs to Rust. Table of Contents Why Emacs? Why Rust? Why A Fork? Getting Started Requirements Dockerized dev

Remacs 4.5k Jan 2, 2023
A modern editor with a backend written in Rust.

Xi Editor (pronounced "Zigh") A modern editor with a backend written in Rust. Maintenance status: The xi-editor project is not currently under active

null 19.7k Jan 5, 2023
Web base text editor written in rust

Ultron Ultron is a web based monospace text-editor with syntax highlighting, completely written in rust. I wrote this code editor for my very specific

Jovansonlee Cesar 59 Aug 8, 2022
syntect is a syntax highlighting library for Rust that uses Sublime Text syntax definitions.

syntect is a syntax highlighting library for Rust that uses Sublime Text syntax definitions. It aims to be a good solution for any Rust project that needs syntax highlighting, including deep integration with text editors written in Rust.

Tristan Hume 1.5k Jan 8, 2023
A fast and small Rust library to make Electron apps more secure.

electron-hardener A Rust library and command line tool to harden Electron binaries against runtime behavior modifications. This provides a way to hard

1Password 364 Dec 23, 2022
Rust-based traffic editor for RMF

Traffic Editor III Welcome to Traffic Editor III. install stuff Unfortunately we need a newer Rust than what comes with Ubuntu 20.04. First make sure

null 2 Oct 20, 2022
My own personal code editor built with Rust + OpenGL

Glyph This is my personal code editor that I am building for fun and to get more familiar with OpenGL. Glyph currently supports Vim keybinds, syntax h

Zack Radisic 83 Dec 23, 2022
Lightning-fast and Powerful Code Editor written in Rust

Lapce Lightning-fast and Powerful Code Editor written in Rust About Lapce is written in pure Rust, with UI in Druid. It's using Xi-Editor's Rope Scien

Lapce 22.1k Jan 8, 2023
A simple terminal-based editor made in rust!

ELuna Editor The terminal-based editor for europa lang. Goals Be as minimal as possible, but retain conveniences found in other editors. Do not add fe

Junhao 3 May 25, 2022
Ginkgo is a text editor built entirely in Rust

Ginkgo is a text editor built entirely in Rust. It supports cursor movements, CTRL commands, select vim commands, insert vs. normal modes, and more. Ginkgo is based on my text editor JED, which itself was based on the popular online editor Kilo.

James Asbury 12 Oct 15, 2022
a shiny test framework for rust

Ooh, shiny! Shiny makes you less distracted with copying over initialization code in test cases. It also has a fancy syntax similar to Ruby's RSpec or

Vladimir Pouzanov 95 Apr 8, 2022
Dip editor: Multi-platform Text editor purely written in Rust

dip editor Multi-platform Text editor purely written in Rust, supercharged by Bevy game engine and Dioxus UI framework. heavily in development Why Gam

Junichi Sugiura 270 Jan 4, 2023
A collision editor for Guilty Gear -Strive-, written in Rust

ggst_collision_editor_rs A collision editor for Guilty Gear -Strive- and other Team Red Arc System Works games, written in Rust. Uses a customized ver

null 4 May 3, 2022
Wealthy Rich ported to Rust! This aims to be a crate for rich text and beautiful formatting in the terminal

Wealthy Rich ported to Rust! This aims to be a crate for rich text and beautiful formatting in the terminal

Sourajyoti Basak 20 Dec 29, 2022
Helix - A kakoune / neovim inspired editor, written in Rust

A kakoune / neovim inspired editor, written in Rust. The editing model is very heavily based on kakoune; during development I found myself agree

null 17.9k Jan 10, 2023
A pathtracer written in rust - runs in the web and includes an editor

Webtracer A pathtracer written in rust - runs in the web and includes an editor Rendering is parallelized and utilizes all cpu cores You can easily ed

Shapur 5 Oct 7, 2022