-
Notifications
You must be signed in to change notification settings - Fork 162
Terminal does not open in project folder #178
Comments
The terminal opens at root folder. I am on Win 10 and msys2 bash. |
Is there any environment variable that can be specified as a command line parameter to bash? |
I fix the issue by adding 'process.platform isnt 'win32'' in the lib/process.coffee file:
The '--login' parameter is the source of the issue on Windows. |
Windows Powershell now opens at the project folder, but Cygwin still opens at the root folder. |
Have you got any shell arguments in the "platformio-ide-terminal" settings? |
No |
It's very strange. |
I'm not sure what you mean by 'bash.bat' in the root folder. I have tried
C:\cygwin\Cygwin.bat, and C:/cygwin/bin/bash.exe, both of them take me to
the root.
…On Fri, Mar 3, 2017 at 6:57 AM, Vasencheg ***@***.***> wrote:
It's very strange.
Do you launch "CYGWIN_FOLDER\bin\bash.exe" instead of using 'bash.bat'
from root folder.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHZjFJwp5A0vNV7JsWlHqLdBKEdq3giUks5riA5PgaJpZM4MMfb2>
.
|
I mean 'C:\cygwin\Cygwin.bat'. |
Try this workaround. Put this lines of code in the lib/process.coffee file:
https://gist.github.com/Vasencheg/0cc91bb12394f62e548d3292a86cc2ce |
Tried that and it did not work. There might be something deeper. I think it
is how I have cygwin configured, actually.
…On Fri, Mar 3, 2017 at 3:25 PM, Vasencheg ***@***.***> wrote:
Try this workaround. Put this lines of code in the lib/process.coffee file:
index = args.indexOf('--login')
if index != -1 and process.platform is 'win32'
args.splice(index, 1)
https://gist.github.com/Vasencheg/0cc91bb12394f62e548d3292a86cc2ce
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHZjFBt9KODHW5UimdghtSO4zlWwUOnfks5riIVPgaJpZM4MMfb2>
.
|
Maybe. I have tried Cygwin and Msys2 'bin/bash.exe' and it works. |
I am on Windows 10, Atom 1.14.3. The terminal opens at it's default root, not the project. I have tried powershell and cygwin. To be fair this is also happening on terminal-plus, but in terminal-plus the terminal is not even loading. It sounds like terminal-plus is broken on Win 10.
The text was updated successfully, but these errors were encountered: