Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text disappears when typing in emacs for commit message when using default bash task #1511

Open
darrenfoley opened this Issue Apr 12, 2018 · 6 comments

Comments

2 participants
@darrenfoley
Copy link

commented Apr 12, 2018

Versions

ConEmu build: 180411 (preview) x64
OS version: Windows 10 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): wsl bash

Problem description

When typing a git commit message into emacs using wsl bash in conemu, the cursor is on the wrong line and text disappears when hitting enter. I've had some other issues when hitting space and sometimes when deleting with backspace, but let's see if we can solve this one first.

Note: I've tested using emacs for a git commit message in the standalone wsl ubuntu bash terminal and it works perfectly for me, so I don't believe this is a third party problem.

Steps to reproduce

  1. Open bash task tab
  2. set core.editor to 'emacs' in ~/.gitconfig
  3. Add some code to a git repo and stage it
  4. Type 'git commit'
  5. Type 'hello'
  6. Press
  7. Type 'goodbye my friend'
  8. Save with and quit with

Actual results

  1. emacs opens in console, but the cursor is on the second line (which has commented out text on it) and can't move up to the first. It can be moved down to the third and then back up to the 2nd, but never the first.
  2. 'hello' is typed over the commented out text
    image
  3. The cursor moves to the third line, but the second line now appears blank
    image
  4. 'goodbye my friend' is entered onto the third line
  5. emacs is closed and the commit message is saved as

hello
goodbye my friend

Expected results

  1. emacs opens in console with the cursor on the first line
  2. 'hello' is typed on the (previously blank) first line
  3. The cursor moves to the second line, and 'hello' remains on the first line
  4. 'goodbye my friend' is entered onto the third line
  5. emacs is closed and the commit message is saved as

hello
goodbye my friend

Other files

partialgitconfig.txt (removed aliases and sensitive info)

@Maximus5 Maximus5 added this to To Do in Inspection via automation Apr 12, 2018

@Maximus5 Maximus5 added the ansi label Apr 12, 2018

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Apr 12, 2018

Contents of your bash task? Connector?

@darrenfoley

This comment has been minimized.

Copy link
Author

commented Apr 12, 2018

@Maximus5
bash task:
image

I'm using wslbridge.exe 64 bit

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Apr 12, 2018

Try to open some file in emacs directly. I just have checked and saw no problem...

@darrenfoley

This comment has been minimized.

Copy link
Author

commented Apr 12, 2018

launching emacs by typing "emacs" works perfectly. But when I use it as an editor for another program such as git it does not. This only happens in conemu. It works fine in the wsl ubuntu prompt

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Apr 15, 2018

It somewhat related to Microsoft/WSL#1668

@Maximus5 Maximus5 removed this from To Do in Inspection Apr 15, 2018

@Maximus5 Maximus5 added this to To Do in ANSI via automation Apr 15, 2018

@Maximus5 Maximus5 moved this from To Do to In progress in ANSI Apr 15, 2018

@Maximus5 Maximus5 moved this from In progress to Ready for Testing in ANSI Apr 15, 2018

@Maximus5

This comment has been minimized.

Copy link
Owner

commented Apr 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.