Code Monkey home page Code Monkey logo

platformio-atom-ide-terminal's Introduction

PlatformIO IDE Terminal

A terminal package for Atom, complete with themes, API and more for PlatformIO IDE.

demo

Nucleus Dark UI with Atom Material Syntax and our Homebrew theme.

Install

Ready to install?

You can install via apm: apm install platformio-ide-terminal

Or navigate to the install tab in Atom’s settings view, and search for platformio-ide-terminal.

Caveats

flatpak

Some Atom installations via flatpak may have incompatibilites, including an inability to find host system binaries from select directories, such as /usr/*. If you encounter issues using platformio-ide-terminal with flatpak, such as missing binaries, that are normally accessible from the path you have set in your shell of choice, or if you are not able to change directory into some directories, you may be affected. You can confirm this by looking for the nfsnobody permissions from the root of your disk. You can workaround this by installing another version of atom that is not inside a sandbox container. See here for full details.

Usage

platformio-ide-terminal stays in the bottom of your editor while you work.

Click on a status icon to toggle that terminal (or ctrl-` ). Right click the status icon for a list of available commands. From the right-click menu you can color code the status icon as well as hide or close the terminal instance.

Terminal

You can open the last active terminal with the platformio-ide-terminal:toggle command (Default:ctrl-`). If no terminal instances are available, then a new one will be created. The same toggle command is used to hide the currently active terminal.

From there you can begin typing into the terminal. By default the terminal will change directory into the project folder if possible. The default working directory can be changed in the settings to the home directory or to the active file directory.

See available commands below.

Features

Full Terminal

Every terminal is loaded with your system’s default initialization files. This ensures that you have access to the same commands and aliases as you would in your standard terminal.

Themes

The terminal is preloaded with several themes that you can choose from. Not satisfied?
Use the following template in your stylesheet:

.platformio-ide-terminal .xterm {
  background-color: ;
  color: ;

  ::selection {
    background-color: ;
  }

  .terminal-cursor {
    background-color: ;
  }
}

Process Titles

By hovering over the terminal status icon, you can see which command process is currently running in the terminal.

Terminal Naming

Need a faster way to figure out which terminal is which? Name your status icons!

Available via the status icon context menu.

Color Coding

Color code your status icons!

The colors are customizable in the settings, however the color names remain the same in the context menu.

Sorting

Organize your open terminal instances by dragging and dropping them.

Resizable

You can resize the view vertically, or just maximize it with the maximize button.

Working Directory

You can set the default working directory for new terminals. By default this will be the project folder.

File Dropping

Dropping a file on the terminal will insert the file path into the input. This works with external files, tabs from the Atom tab-view, and entries from the Atom tree-view.

Insert Selected Text

Insert and run selected text from your text editor by running the platformio-ide-terminal:insert-selected-text command (ctrl-enter).

If you have text selected, it will insert your selected text into the active terminal and run it.
If you don't have text selected it, will run the text on the line where your cursor is then proceed to the next line.

Quick Command Insert

Quickly insert a command to your active terminal by executing the platformio-ide-terminal:insert-text command.

A dialog will pop up asking for the input to insert. If you have the Run Inserted Text option enabled in the settings (default is false), platformio-ide-terminal will automatically run the command for you.

Support for Special Keys

Support for IME, dead keys and other key combinations via the Insert Text dialog box. Just click the keyboard button in the top left of the terminal or set up a keymap to the platformio-ide-terminal:insert-text command.

Note: Make sure you have the Run Inserted Command toggle off otherwise it will run your inserted text.

Map Terminal To

Map your terminals to each file or folder you are working on for automatic terminal switching.

File

Folder

Toggling the Auto Open a New Terminal (For Terminal Mapping) option will have the mapping create a new terminal automatically for files and folders that don't have a terminal. The toggle is located right under the Map Terminals To option.

Commands

Command Action Default Keybind
platformio-ide-terminal:new Create a new terminal instance. ctrl-shift-t
or
cmd-shift-t
platformio-ide-terminal:toggle Toggle the last active terminal instance.
Note: This will create a new terminal if it needs to.
ctrl-`
(Control + Backtick)
platformio-ide-terminal:prev Switch to the terminal left of the last active terminal. ctrl-shift-j
or
cmd-shift-j
platformio-ide-terminal:next Switch to the terminal right of the last active terminal. ctrl-shift-k
or
cmd-shift-k
platformio-ide-terminal:insert-selected-text Run the selected text as a command in the active terminal. ctrl-enter
platformio-ide-terminal:insert-text Bring up an input box for using IME and special keys. ––––––––––––
platformio-ide-terminal:fullscreen Toggle fullscreen for active terminal. ––––––––––––
platformio-ide-terminal:close Close the active terminal. ctrl-shift-x
or
cmd-shift-x
platformio-ide-terminal:close-all Close all terminals. ––––––––––––
platformio-ide-terminal:rename Rename the active terminal. ––––––––––––

A fork of jeremyramin/terminal-plus.

platformio-atom-ide-terminal's People

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

platformio-atom-ide-terminal's Issues

Terminal error: execvp(3) failed.: No such file or directory

Hi,
I am using PlatformIO on mac os x El-Capitan, when I click on the + for open a new terminal session I get error execvp(3) failed.: No such file or directory. I have searched online and it says that I need to install java and I've verified java exists by java --version, would appreciate help.

I have tried build and upload to Arduino and they worked perfectly.

screen shot 2016-03-11 at 9 54 06 pm

##

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Resizing currently active terminal doesn't resize them all

If I have multiple terminals open, I'd expect resizing the terminal area to resize all terminals. Instead the height of terminals seems to be on a per-terminal basis.

I can see this is probably a feature, but it's weird from a usability point of view. All the terminals are inside the terminal area, I wouldn't expect individual terminals to set the height of that area.

As I'm guessing this is a feature of terminal-plus, so can an option be added to allow resizing all terminals at once?

Also, thanks for forking and keeping terminal-plus going. Now terminal-plus is slightly broken in the latest Atom versions this fork is very valuable.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

path undefined on Windows, if Atom opened from bash shell

Hi guys,

I realize this is something of a niche scenario, but let me log it anyway:

This is on Windows 10.
When I open atom from the (MINGW64) bash shell that comes with the Docker toolbox (and is required by it, apparently), this package no longer gets the right value for a path and thus panics, yelling TypeError: Path must be a string. Received undefined:

image

Now I think it's even more worth mentioning, given how the bash shell is coming to Windows 10 in a few months, and developers will start flocking back to Windows land... I imagine!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

text selection cursor fails to appear when opening file using "atom filename.txt" command

When I open a new file (or an existing file) in the Atom editor using the "atom filename.txt" command, there is no cursor in the atom text editing pane after I hide the terminal with the ctrl-command. This is not an issue once I have the file open and use the ctrl- command to toggle, only immediately after opening a new or existing file with the "atom filename.txt" command from the patformio-atom-ide-terminal. This is very annoying as I have to click in the atom window (or toggle the finder) to get a cursor to show up so I can type in my newly opened file. I do not experience this issue when using the "atom filename.txt" command from the OSX standalone terminal (i.e. the new file shows up with a cursor ready for me to type with and I do not have to click in the window). Thanks.

Close button next to open terminals

My close button is - unlike the printscreens in the readme - right next to the buttons for open terminals. It's too close. From time to time I close all my terminals by accident and that's extremely annoying. Would be cool if this button is elsewhere or prompts a 'are you sure?'.

Auto-match terminal colors with syntax theme

I have an idea to match the terminal's colors with Atom's syntax theme. I'm not sure where to get started, but I know the current way of setting color is slow and unflexible. Maybe setting a "overwrite colors wtih syntax theme" checkbox?

I don't mind helping make a PR, I'm just not sure where to get started.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Better keybinding

Hey guys,

I just wanted to show you my keybinding.

'.platform-darwin atom-workspace':
  'cmd-t cmd-j': 'platformio-ide-terminal:next'
  'cmd-t cmd-k': 'platformio-ide-terminal:prev'
  'cmd-t cmd-t': 'platformio-ide-terminal:toggle'
  'cmd-t cmd-f': 'platformio-ide-terminal:fullscreen'
  'cmd-t cmd-x': 'platformio-ide-terminal:close'
  'cmd-t cmd-i': 'platformio-ide-terminal:insert-selected-text'
  'cmd-t cmd-n': 'platformio-ide-terminal:new'
  'cmd-t cmd-r': 'platformio-ide-terminal:rename'

I find it a lot more intuitive and gives you a sort of emacs/vim style with the keybinding style.

Not sure it should be change by default, but I thought you guys would like to see it!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

NPM can't see any of my global modules while using this terminal

Using git bash for this package, running npm list -g gives me an empty list:

Here it is again using PowerShell:

Outside of Atom it works fine (notice how it's looking in the same exact directory):

This might be related to #15 since I did notice the NODE_ENV variable being overwritten by Atom, though I have no idea if that is the problem.

But for the record, running just npm list works fine for seeing local node packages.

Question: Is it possible to specify terminal names, colours and working directories when launching Atom?

Hi,

I would like to be able to launch the following Atom command:

atom $GHUBM/*-installer

which for me would open $GHUBM/atom-installer, $GHUBM/brackets-installer, $GHUBM/komodo-installer, $GHUBM/lighttable-installer and $GHUBM/vscode-installer. I would like this package to open up terminals for each of these folders (i.e., terminals who's current working directory is the folder in question), with each terminal having a colouring scheme I can specify in the atom $GHUBM/*-installer command and having a name equal to the folder's name, minus the -installer suffix. Is there any way for me to manage this with this package?

If what I am asking is confusing here is a screenshot showing what I want. The only difference is that while this Atom window was customized by me right-clicking each terminal tab and choosing the respective option to change the colour or name of the tab and opening each terminal to the folder I want it at, this question is whether I can open an Atom window with these settings (i.e., these terminal colours, terminal names and each terminal opened to the respective $GHUBM/*-installer folder in question) from the command-line using this package?

Thanks for your time,
Brenton

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Feature Fixes

Could you please fix the following in your package?

  1. Place the close all icon away from the opened windows
  2. The terminal won't start until I open a folder in atom. Let it start even if no folder is open.
  3. When I adjust the height of one terminal, all other opened instances should update their height

These things had been addressed in the original terminal-plus and I am missing them in your fork.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

terminal does not catch the active pane

Hi!

When i activate platformio-atom-ide-terminal it takes always the whole space at the bottom of the atom window and does not take care on panes.

I's it possible to change this behaviour?
Or is it possible to launch Term3 as default?

Robert

Uncaught TypeError: Cannot read property 'element' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.4
System: Mac OS X 10.11.3
Thrown From: platformio-ide-terminal package, v2.0.10

Stack Trace

Uncaught TypeError: Cannot read property 'element' of undefined

At /Users/deichhor/.atom/packages/platformio-ide-terminal/lib/view.coffee:395

TypeError: Cannot read property 'element' of undefined
    at PlatformIOTerminalView.module.exports.PlatformIOTerminalView.adjustHeight (/Users/deichhor/.atom/packages/platformio-ide-terminal/lib/view.coffee:395:16)
    at PlatformIOTerminalView.module.exports.PlatformIOTerminalView.maximize (/Users/deichhor/.atom/packages/platformio-ide-terminal/lib/view.coffee:195:8)
    at HTMLButtonElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:220:36)
    at HTMLButtonElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLButtonElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -2:33.3.0 core:move-right (atom-text-editor.editor.is-focused.autocomplete-active)
     -2:31.5.0 core:save (atom-text-editor.editor.is-focused)
     -2:21 platformio-ide:target:upload (atom-text-editor.editor)
     -2:21 platformio-ide:target:upload-/Users/deichhor/git/esp8266-nfc (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-light-theme.theme-one-light-ui)
     -2:03.3.0 platformio-ide:target:upload (atom-text-editor.editor)
     -2:03.3.0 platformio-ide:target:upload-/Users/deichhor/git/esp8266-nfc (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-light-theme.theme-one-light-ui)
     -0:44.9.0 core:copy (atom-text-editor.editor.is-focused)
     -0:43.4.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:43 core:paste (atom-text-editor.editor.is-focused)
     -0:37.6.0 core:cut (atom-text-editor.editor.is-focused)
     -0:36.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:36.1.0 core:paste (atom-text-editor.editor.is-focused)
  7x -0:34.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:18 core:move-up (atom-text-editor.editor.is-focused)
  3x -0:17.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:09.1.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "base16-tomorrow-light-theme"
    ]
  },
  "platformio-ide-terminal": {
    "core": {},
    "style": {}
  }
}

Installed Packages

# User
autocomplete-clang, v0.9.3
build, v0.64.0
language-ini, v1.16.0
linter, v1.11.4
linter-gcc, v0.6.14
platformio-ide, v1.2.2
platformio-ide-terminal, v2.0.10
tool-bar, v0.4.0

# Dev
No dev packages

Actually the core problem is that serial consoles keep dying and stacking up until they consume much of the space. When clicking on the fullscreen icon the above error appears. Here is a picture of the consoles which cannot be removed anymore. Only closing the window helps...
screenshot 2016-05-31 15 14 14

Uncaught Error: channel closed

Enter steps to reproduce below: 1. ... 2. ... Atom Version: 1.5.3 System: Ubuntu 14.04.4 Thrown From: platformio-ide-terminal https://github.com/platformio/platformio-atom-ide-terminal package, v2.0.2 ### Stack Trace Uncaught Error: channel closed At events.js:141 Error: channel closed at ChildProcess.target.send internal/child_process.js:509:16 at Task.module.exports.Task.send /usr/share/atom/resources/app.asar/src/task.js:117:27 at PlatformIOTerminalView.module.exports.PlatformIOTerminalView.input /home//.atom/packages/platformio-ide-terminal/lib/view.coffee:262:17 at Terminal. anonymous> /home//.atom/packages/platformio-ide-terminal/lib/view.coffee:141:8 at Terminal.EventEmitter.emit /home//.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:109:12 at Terminal.handler /home//.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:3493:8 at Terminal.keyPress /home//.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:3243:8 at HTMLDocument. anonymous> /home//.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:608:29 ### Commands -0:05.4.0 platformio-ide:maintenance.update-platformio atom-text-editor.editor.is-focused ### Config json {} ### Installed Packages coffee # User autocomplete-clang, v0.8.9 build, v0.55.0 language-ini, v1.14.0 linter, v1.11.3 linter-gcc, v0.6.7 platformio-ide, v1.0.4 platformio-ide-terminal, v2.0.2 tool-bar, v0.2.1 # Dev No dev packages

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Uncaught TypeError: Cannot set property '0' of undefined

[Enter steps to reproduce below:]

  1. open tmux
  2. scroll up
  3. resize the terminal window

Atom Version: 1.7.3
System: Mac OS X 10.11.4
Thrown From: platformio-ide-terminal package, v2.0.9

Stack Trace

Uncaught TypeError: Cannot set property '0' of undefined

At /Users/davidgodfrey/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:3436

TypeError: Cannot set property '0' of undefined
    at Terminal.eraseRight (/Users/davidgodfrey/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:3436:13)
    at Terminal.eraseInLine (/Users/davidgodfrey/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:3677:12)
    at Terminal.write (/Users/davidgodfrey/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:2348:18)
    at /Users/davidgodfrey/.atom/packages/platformio-ide-terminal/lib/view.coffee:133:17
    at /Applications/Atom.app/Contents/Resources/app.asar/src/task.js:126:25
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at ChildProcess.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/task.js:78:34)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at handleMessage (internal/child_process.js:686:10)
    at Pipe.channel.onread (internal/child_process.js:440:11)

Commands

  2x -0:26.4.0 editor:select-to-end-of-word (atom-text-editor.editor.power-mode.is-focused)
     -0:24.2.0 autocomplete-plus:confirm (atom-text-editor.editor.power-mode.is-focused.autocomplete-active)
     -0:23.5.0 core:move-right (atom-text-editor.editor.power-mode.is-focused)
     -0:23.3.0 editor:select-to-end-of-line (atom-text-editor.editor.power-mode.is-focused)
     -0:23 core:backspace (atom-text-editor.editor.power-mode.is-focused)
     -0:19.8.0 editor:delete-to-beginning-of-word (atom-text-editor.editor.power-mode.is-focused.autocomplete-active)
  2x -0:16.4.0 core:backspace (atom-text-editor.editor.power-mode.is-focused)
     -0:14 autocomplete-plus:cancel (atom-text-editor.editor.power-mode.is-focused.autocomplete-active)
     -0:13.7.0 editor:select-to-first-character-of-line (atom-text-editor.editor.power-mode.is-focused)
     -0:13.6.0 core:move-left (atom-text-editor.editor.power-mode.is-focused)
  4x -0:13.3.0 editor:move-to-end-of-word (atom-text-editor.editor.power-mode.is-focused)
     -0:12.3.0 editor:select-to-end-of-word (atom-text-editor.editor.power-mode.is-focused)
     -0:11.6.0 core:backspace (atom-text-editor.editor.power-mode.is-focused)
     -0:10.3.0 editor:select-to-end-of-line (atom-text-editor.editor.power-mode.is-focused.autocomplete-active)
     -0:10.2.0 core:move-right (atom-text-editor.editor.power-mode.is-focused)
     -0:09.8.0 core:save (atom-text-editor.editor.power-mode.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      ".bin",
      "coverage-gutter",
      "git-time-machine",
      "terminal-plus"
    ],
    "ignoredNames": [
      ".git",
      ".DS_Store"
    ],
    "packagesWithKeymapsDisabled": [
      "git-time-machine"
    ]
  },
  "platformio-ide-terminal": {
    "style": {
      "fontSize": "12"
    }
  }
}

Installed Packages

# User
activate-power-mode, v0.5.2
api-docs, v0.0.4
atom-beautify, v0.29.7
atom-ternjs, v0.14.1
atom-typescript, v8.9.1
file-icons, v1.7.11
git-diff-details, v1.3.0
highlight-selected, v0.11.2
imdone-atom, v1.3.29
linter, v1.11.4
linter-json-lint, v0.1.1
php-twig, v4.0.0
platformio-ide-terminal, v2.0.9
pretty-json, v1.0.3
project-switcher2, v1.3.1
react, v0.15.0

# Dev
No dev packages

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Bash on windows error

When using power shell separately running bash.exe gives you the ubuntu bash (to clarify I'm using the early access windows 10 so I have the official bash on windows.) when I run it on atom (as an autocommand or manually) It gives me this error:

bash.exe : The term 'bash.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1

  • bash.exe
  • - CategoryInfo          : ObjectNotFound: (bash.exe:String) [], CommandNotFoundException
    - FullyQualifiedErrorId : CommandNotFoundException
    
    

I added enviroment variables and system variables to bash and it still didn't work inside atom (It works fine on an independent powershell)

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Uncaught TypeError: Cannot read property 'focus' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.3
System: Ubuntu 16.04
Thrown From: platformio-ide-terminal package, v2.0.9

Stack Trace

Uncaught TypeError: Cannot read property 'focus' of null

At /home/cxy229/.atom/packages/platformio-ide-terminal/lib/status-bar.coffee:93

TypeError: Cannot read property 'focus' of null
    at /home/cxy229/.atom/packages/platformio-ide-terminal/lib/status-bar.coffee:93:23

Commands

     -9:35.6.0 application:add-project-folder (atom-text-editor.editor.is-focused)
     -9:16.3.0 tabs:close-all-tabs (li.texteditor.tab.sortable.active.right-clicked)
     -9:03.2.0 platformio-ide-terminal:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
platformio-ide-terminal, v2.0.9

# Dev
No dev packages

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Terminal doesn't start. Maybe Xorg related

Recently, I've Installed Atom and Platformio-ide. Everything seems to work fine. However, when I try to start the terminal (+), I get the following message:

/usr/lib/xorg-server/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console

I've already tried to create the /etc/X11/Xwrapper.config file with the "allowed_users=anybody" line. But still, the terminal doesn't launch. When I try with the Xwrapper.config file, seems like the startx command being executed, and a new session of xorg starts.

I'm not sure if it is a platformio or my system problem. Anyway, any help would be appreciated.

[Enter steps to reproduce below:]

...
...
Atom Version: 1.7.1-1
System: linux 4.4.5-1-ARCH
Thrown From: platformio-ide package, v1.1.2

Terminal hangs on open with Atom 1.7.0

Environment is Windows 10 Home en-US. After upgrading to Atom 1.7.0, the Terminal window no longer functions as expected. Prior to the upgrade, I could open the terminal view from the PlatformIO dropdown or the icon in the toolbar. Now, the view opens and displays a bg color, but does not run a terminal and the Windows "wait cursor" appears whenever the mouse is over the terminal view.

Terminal inherits NODE_ENV set by Atom. Causes npm install to work incorrectly. (Windows)

This is an old issue I submitted to terminal-plus which I think was never resolved. On a side note, thank you for forking terminal-plus and working on this, after the 1.7.1 update it broke and luckily this version of the package worked.


When I type npm install it does literally nothing, no errors are logged.
After a long search I've read that the NODE_ENV variable within Atom itself is leaking into terminal plugins, this is always set to production therefore directly affecting the npm install command and preventing me from installing devDependencies.

Link to other Atom package that seems to have solved this

[FR] scrollbar

I really like your implementation and would like to use it with the atom-build package.
Now there is some little things i miss. One of them is the scrollbar.
When launching a build i might have a lot of lines!
Showing the scrollbar would be amazing!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Uncaught TypeError: Cannot set property 'innerHTML' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.5.4
System: Ubuntu 15.10
Thrown From: platformio-ide-terminal package, v2.0.3

Stack Trace

Uncaught TypeError: Cannot set property 'innerHTML' of undefined

At /home/roman/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:1704

TypeError: Cannot set property 'innerHTML' of undefined
    at Terminal.refresh (/home/roman/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:1704:32)
    at Terminal.blur (/home/roman/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:519:8)
    at HTMLDocument.<anonymous> (/home/roman/.atom/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:626:20)

Commands

  2x -1:35 core:backspace (atom-text-editor#platformio-ide-terminal.style.fontFamily.editor.mini.is-focused)
     -1:25.3.0 core:move-right (atom-text-editor#platformio-ide-terminal.style.fontSize.editor.mini.is-focused)
  4x -1:20 core:backspace (atom-text-editor#platformio-ide-terminal.style.fontSize.editor.mini.is-focused)
     -1:04.8.0 core:move-up (atom-text-editor#platformio-ide-terminal.style.fontSize.editor.mini.is-focused)
     -0:50 core:backspace (atom-text-editor#platformio-ide-terminal.style.fontSize.editor.mini.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "vim-mode",
      "terminal-plus",
      "atom-terminal-panel"
    ]
  },
  "platformio-ide-terminal": {
    "core": {},
    "style": {
      "fontFamily": "monospace",
      "fontSize": "10"
    },
    "toggles": {
      "autoClose": true
    }
  }
}

Installed Packages

# User
color-picker, v2.1.1
minimap, v4.21.0
pigments, v0.24.5
platformio-ide-terminal, v2.0.3
terminal-panel, v1.14.1

# Dev
No dev packages

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Failed to activate the platformio-ide-terminal package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.2
System: Microsoft Windows 10 Pro
Thrown From: platformio-ide-terminal package, v2.0.9

Stack Trace

Failed to activate the platformio-ide-terminal package

At Path must be a string. Received undefined

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:8:11)
    at Object.win32.resolve (path.js:130:5)
    at file:///C:/Users/willd/.atom/packages/platformio-ide-terminal/lib/platformio-ide-terminal.coffee:71:20
    at Object.<anonymous> (file:///C:/Users/willd/.atom/packages/platformio-ide-terminal/lib/platformio-ide-terminal.coffee:68:20)
    at Object.<anonymous> (file:///C:/Users/willd/.atom/packages/platformio-ide-terminal/lib/platformio-ide-terminal.coffee:1:1)
    at Module._compile (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:715:27)
    at Package.module.exports.Package.activateNow (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:173:16)
    at C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:156:32
    at Package.module.exports.Package.measure (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:92:15)
    at C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:149:26
    at Package.module.exports.Package.activate (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package.js:146:34)
    at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package-manager.js:538:21)
    at C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package-manager.js:519:29
    at Config.module.exports.Config.transactAsync (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\config.js:337:18)
    at PackageManager.module.exports.PackageManager.activatePackages (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package-manager.js:514:19)
    at PackageManager.module.exports.PackageManager.activate (C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\package-manager.js:497:46)
    at C:\Users\willd\AppData\Local\atom\app-1.7.2\resources\app.asar\src\atom-environment.js:754:28

Commands

Config

{
  "core": {}
}

Installed Packages

# User
autocomplete-go, v1.0.6
builder-go, v1.0.0
environment, v1.2.0
file-icons, v1.7.7
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
imdone-atom, v1.3.29
imdone-atom-github, v0.1.11
linter, v1.11.4
merge-conflicts, v1.4.2
minimap, v4.23.0
navigator-godef, v1.0.3
platformio-ide-terminal, v2.0.9
project-manager, v2.9.7
tester-go, v1.0.4

# Dev
No dev packages

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Feature Requests: Add Split View and Highlighting terminals with new unseen output

Hi,

I would like to request two new features for this plugin:

  1. Split view, where you can split the terminal in half, so you can see two terminal windows opened and running side-by-side.
  2. Highlighting terminal icon and name upon new unseen output. This is where the terminal icon/name of an embedded terminal is highlighted when it has new unseen output.

Thanks for your time,
Brenton

Insert Text, lost focus

When using the Insert Text function and you click with the mouse outside the small input window,
you can't close it with ESC because you lost the focus. You must click on to the textfield! again to get the focus back.
It will be better when you can close the Insert Text window without having a focus on the textfield.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

[FR] select with scroll then copy

I really like your implementation and would like to use it with the atom-build package.
Now there is some little things i miss.
The biggest thing i miss is the way of selecting text beyond the view area.
Either by selecting, moving the mouse up or down to start scrolling, or by clicking at one place, scroll, then use shift-click to select.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Use with iTerm2

  • Mac OS X 10.11.5
  • Atom and PlatformIO latest version.

Hello there, I don't use the default Mac Terminal, I use iTerm2, is there any way I can use platform-ode-terminal with iTerm2 instead of the default mac terminal?

Thanks,
Tiago

command error output not shown

The most recent example was rails g scaffold car make color year:integer where a gem was missing cause my machine to freeze up.

Other commands just hang the terminal but I can control-C out of them. From an ordinary terminal, I can see there are error messages output.

System is Ubuntu Linux with Bash terminal

When I type the command 'exit' terminal does not close.

(Atom 1.7.1 on Windows 7, using Windows PowerShell)

I used to be able to close the terminal using the exit command (when I was still using terminal-plus). Now it does not work, the terminal stays open and it does not allow my to type any other commands.

Uncaught Error: Cannot find module 'atom-space-pen-views'

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.8.0
System: Unknown Windows Version
Thrown From: platformio-ide-terminal package, v2.1.0

Stack Trace

Uncaught Error: Cannot find module 'atom-space-pen-views'

At module.js:340

Error: Cannot find module 'atom-space-pen-views'
    at Module._resolveFilename (module.js:338:15)
    at Function.Module._resolveFilename (C:\Users\C3646531\AppData\Local\atom\app-1.8.0\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (C:\Users\C3646531\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (file:///C:/Users/C3646531/.atom/packages/platformio-atom-ide-terminal-2.1.0/lib/status-bar.coffee:2:13)
    at Object.<anonymous> (file:///C:/Users/C3646531/.atom/packages/platformio-atom-ide-terminal-2.1.0/lib/status-bar.coffee:1:1)
    at Module._compile (C:\Users\C3646531\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (C:\Users\C3646531\AppData\Local\atom\app-1.8.0\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (C:\Users\C3646531\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.module.exports.consumeStatusBar (file:///C:/Users/C3646531/.atom/packages/platformio-atom-ide-terminal-2.1.0/lib/platformio-ide-terminal.coffee:17:27)
    at Provider.module.exports.Provider.provide (C:\Users\C3646531\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\service-hub\lib\provider.js:30:52)
    at C:\Users\C3646531\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\service-hub\lib\service-hub.js:55:26
    at doNTCallback0 (node.js:443:9)
    at process._tickCallback (node.js:372:13)

Commands

Config

{
  "core": {
    "autoHideMenuBar": true,
    "disabledPackages": [
      "metrics",
      "emmet-simplified"
    ],
    "excludeVcsIgnoredPaths": false,
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [],
    "themes": [
      "atom-material-ui",
      "monokai-seti"
    ],
    "useReactEditor": true
  }
}

Installed Packages

# User
aligner, v0.22.0
aligner-css, v1.2.0
aligner-scss, v1.1.0
atom-alignment, v0.12.1
atom-html-preview, v0.1.19
atom-material-ui, v1.2.13
Atom-Syntax-highlighting-for-Sass, v0.5.0
atom-wordpress, v0.3.0
autocomplete-ionic-framework, v0.2.2
autocomplete-sass, v0.1.0
autocomplete-wordpress-hooks, v0.2.0
color-picker, v2.1.1
css-snippets, v0.9.0
csslint, v1.1.5
docblockr, v0.7.3
editor-background, v1.2.17
emmet, v2.4.3
file-icons, v1.7.15
filesize, v0.4.2
git-diff-details, v1.3.0
git-log, v0.4.1
highlight-line, v0.11.1
highlight-selected, v0.11.2
html-entities, v0.4.0
htmlhint, v1.1.4
indentation-indicator, v0.6.0
jquery-snippets, v11.0.0
jsformat, v0.9.3
jshint, v1.8.5
linter, v1.11.11
linter-stylint, v2.1.3
merge-conflicts, v1.4.4
minimap, v4.24.6
minimap-highlight-selected, v4.4.0
minimap-pigments, v0.2.1
monokai-seti, v0.7.0
pigments, v0.29.2
platformio-ide-terminal, vundefined
pretty-json, v1.4.1
project-colorize, v0.2.0
project-manager, v2.9.7
sync-settings, v0.7.2
terminal-plus, vundefined
travis-ci-status, v1.1.1
w3c-validation, v0.4.0
wordpress, v0.2.0
wordpress-dictionary, v4.4.0

# Dev
No dev packages

Own status bar for terminal

I've seen on the screenshots that the terminal has its own status bar, but on my Atom version (1.7.4 and Windows 7) it's integrated with the status bar of Atom.

This is a problem for me, because when using with other packages, and when I open a file with a large path, the terminal icons are hidden, and it would be nice to have its own status bar, over the Atom status bar like the screenshots. In fact, when I had terminal-plus, it had their own status bar.

Thanks.

Add menu commands

Thanks for forking and fixing/improving! Hopefully terminal plus guy will come back or your can inherit his repo & continue development.

Enhancement Request:

  1. Add "toggle fullscreen" as menu command. There is an existing pr from @iammarkoradak for terminal-plus: jeremyramin#229
  2. Add "send terminal to tab" as menu command

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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.