[Enter steps to reproduce:]
Terminal input does not work, nor do any commands sent to the terminal through the API. So therefore platformio core update and other built in features do not work. I just get the assert failed VC++ error from winpty.x64.dll every time terminal opens up.

Atom: 1.17.2 x64
Electron: 1.3.15
OS: Microsoft Windows 10 Enterprise Insider Preview
Thrown From: platformio-ide-terminal package 2.5.1
Uncaught Error: channel closed
At events.js:160
Error: channel closed
at ChildProcess.target.send (internal/child_process.js:540:16)
at Task.module.exports.Task.send (~/AppData/Local/atom/app-1.17.2/resources/app/src/task.js:119:1)
at PlatformIOTerminalView.module.exports.PlatformIOTerminalView.input (/packages/platformio-ide-terminal/lib/view.coffee:264:17)
at /packages/platformio-ide-terminal/lib/view.coffee:142:8)
at Terminal.EventEmitter.emit (/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:109:12)
at Terminal.handler (/packages/platformio-ide-terminal/node_modules/term.js/src/term.js:3493:8)
at /packages/platformio-ide-terminal/node_modules/term.js/src/term.js:3253:12
-8:06.2.0 build:toggle-panel (atom-pane.pane)
-7:46.5.0 terminal-plus:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-7:01.8.0 core:backspace (input.hidden-input)
-4:32.3.0 platformio-ide-terminal:toggle (div.package-detail.panels-item)
autocomplete-clang 0.11.3
build 0.68.0
busy 0.7.0
file-icons 2.1.7
intentions 1.1.2
language-ini 1.19.0
linter 2.1.4
linter-gcc 0.7.1
linter-ui-default 1.6.0
minimap 4.28.2
platformio-aia 0.0.5
platformio-ide 2.0.0-beta.6
platformio-ide-debugger 1.2.2
platformio-ide-terminal 2.5.1
tool-bar 1.1.0
I am having the same problem. Have you figured out how to solve this?
I got the same error and suspected the issue was caused by the Atom x64 version. I re-installed the Atom x32 with AtomSetup.exe and now it works fine.
from issue #297 I found removing C:Usersusername.atompackagesplatformio-ide-terminalnode_modulespty.jsbuildReleasepty.node and restarting Atom to solve the problem.
Another user has reported that installing the VS2015 x64 redistributable package fixes this. I haven't tried myself.
Link: https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145
Thanks @jasonc0 installing VS2015 x64 redistributable package worked for me.
Link: https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145
Thanks to @jasonc0!
small fix of outdated links:
https://support.microsoft.com/ru-ru/help/2977003/the-latest-supported-visual-c-downloads
I have tried all this and nothing works:
ThIs is still an issue? You should probably use VS Code. If you do want to use Atom the person above said that the Visual C++ 2015 redistributable fixed it, NOT 2017. Use the x64 version of both Atom and the redist.
https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145
2015 didn't allow me to install it, said another version was already installed.
@ManuelZ
I rushed to conclusions: all vc-redist links were useless. And I abandoned this venture.
Today I install atom v1.34.0-beta0 and YES! Terminal working!
@Kogoruhn That's great, but did it continue working flawlessly? Because from time to time the terminal starts working for me (using v1.33) and then out of nowhere it stops opening and throws the same error.
duplicate of #604 #584 please post at#604
Most helpful comment
Another user has reported that installing the VS2015 x64 redistributable package fixes this. I haven't tried myself.
Link: https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145