Skip to content

Error with Vim when trying to bump to a new version #691

@bitterteriyaki

Description

@bitterteriyaki

Description

When trying to bump to a new version, an error related to NeoVim (which is my OS editor) occurs:

Vim: Error reading input, exiting...

Vim: Finished.
error: There was a problem with the editor '/usr/bin/nvim'.
Please supply the message using either -m or -F option.

Steps to reproduce

Used command and full output:

$ cz bump -ch

bump: version 0.5.0 → 0.6.0
tag to create: 0.6.0
increment detected: MINOR

[develop c82b2a2] bump: version 0.5.0 → 0.6.0
 2 files changed, 15 insertions(+), 2 deletions(-)

trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check for added large files..............................................Passed
black................................................(no files to check)Skipped
isort (python).......................................(no files to check)Skipped
flake8...............................................(no files to check)Skipped
mypy.................................................(no files to check)Skipped
check yaml...........................................(no files to check)Skipped
commitizen check.........................................................Passed
black................................................(no files to check)Skipped
isort (python).......................................(no files to check)Skipped
flake8...............................................(no files to check)Skipped
mypy.................................................(no files to check)Skipped

Vim: Error reading input, exiting...

Vim: Finished.
error: There was a problem with the editor '/usr/bin/nvim'.
Please supply the message using either -m or -F option.

Current behavior

The commit runs despite the error (I want to change the commit message anyway).

Desired behavior

It was expected to open the Vim editor to customize the commit message.

Screenshots

No response

Environment

  • commitizen version: 2.40.0
  • python version: Python 3.11.1
  • operating system: Linux
Commitizen Version: 2.40.0
Python Version: 3.11.1 (main, Jan 27 2023, 13:24:11) [GCC 12.2.1 20230111]
Operating System: Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions