Error unable to start editor vi

GIT описание ошибок В статье описываются типичные ошибки или уведомления, которые возникают в GIT при работе через консоль. Эта статья будет дополняться по мере того, как я буду встречать новые заголовки, для которых сочту, что нужны дополнительные пояснения. Your branch is ahead of ‘origin/любая_ветка’ by 12 commits. В гите локально хранится копия репозитория. И […]

Содержание

  1. GIT описание ошибок
  2. Your branch is ahead of ‘origin/любая_ветка’ by 12 commits.
  3. hint: Waiting for your editor to close the file… error: There was a problem with the editor ‘/usr/bin/vim’.
  4. Читайте также
  5. Комментарии к статье “ GIT описание ошибок ” (2)
  6. [GeomEditorTimeOut:DMAddin] Unable to start the geometry editor.
  7. ANSYS 13,14 or 14.5 unable to start mechanical editor
  8. Launching TextEdit from git #6
  9. Comments

GIT описание ошибок

В статье описываются типичные ошибки или уведомления, которые возникают в GIT при работе через консоль. Эта статья будет дополняться по мере того, как я буду встречать новые заголовки, для которых сочту, что нужны дополнительные пояснения.

Your branch is ahead of ‘origin/любая_ветка’ by 12 commits.

В гите локально хранится копия репозитория. И сначала изменения происходят в ней. Для этого используется команда commit.

Сообщение выше говорит о том, что изменения в локальной копии опережают изменение я удаленной на кол-во раз. И эти изменения не отправлены в удаленный репозиторий.

Для передачи этих изменений в удаленный репозиторий используется команда push. После чего все сделанные изменения будут доступны удаленно, в том числе и для других пользователей.

hint: Waiting for your editor to close the file… error: There was a problem with the editor ‘/usr/bin/vim’.

Ошибка появляется в PhpStorm после команды git merge.

Если никакие команды не позволяют исправить редактор VIM, то можно заменить его на другой. Скажем на редактор nano.

Установка на Mac OS через Homebrew

После установки Homebrew ввести команду:

А затем поменять в PhpStorm редактор на nano:

Если редактор не установлен, то при смене будет ошибка:

error: unable to start editor ‘“nano”’

Читайте также

У сайта нет цели самоокупаться, поэтому на сайте нет рекламы. Но если вам пригодилась информация, можете лайкнуть страницу, оставить комментарий или отправить мне подарок на чашечку кофе.

Комментарии к статье “ GIT описание ошибок ” (2)

добрый день, а если выдает такую ошибку:
git commit
hint: Waiting for your editor to close the file… [program]: [program]: command not found
error: There was a problem with the editor ‘[program]’.
Please supply the message using either -m or -F option.

Похоже на то что нужно выйти из редактора в консоли.

Источник

[GeomEditorTimeOut:DMAddin] Unable to start the geometry editor.

CFD Online Discussion Forums > General Forums > General Forums [GeomEditorTimeOut:DMAddin] Unable to start the geometry editor.

—>

New Today
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Last Week
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Updated Today
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Last Week
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Search Forums
Tag Search
Advanced Search
Search Blogs
Tag Search
Advanced Search

we have been struggling with an error trying to open DesignModeller from the Workbench (via Static Structural) double clicking on the «Geometry» tab.
The machine runs on SL65 (identical to RHEL 65).
The following error message appear in the .ansys/. log-files
[GeomEditorTimeOutMAddin] Unable to start the geometry editor.
It takes about 5 minutes, until the error popps up.
We are in contact with ANSYS support which has redirected me to CADFEM without finding a solution. We have checked many possibilities regarding licensing issues. It works on Opensuse 13.1 and on Win7, so I don’t think it’s a license issue (which is administred organisation wide).
Did anyone experience the same error or issue? Any suggestions?
We have had this error on that machine as of Nov. 6 2014. Before (last working date Oct. 23), it worked fine. We newly installed 15.0.7 to no avail.
Something that is striking is that on Nov. 4th, more than 50 graphics-related packages had been updated (I can supply the lengthy list if needed).

Thanks for your pennies,
Christian

browsing through the ANSYS forums, we found the following hint, which works now:

Knowledge Resources: Solutions

#2037921
Problem Description: Any Mechanical application — Mechanical, Meshing, Design-Modeler & FEModeler will not run after a Red Hat 6.x update: RHSA-2014:1436. Starting Design Modeler from WorkBench simply hangs for two to three minutes and then presents an error: «Unable to start the geometry editor.» Mechanical also fails to start. Platform — Redhat6.x or derivatives

Product Family: Installation, Licensing & Systems
Product: ANSYS Mechanical
Version: 15.0
Area: Installation Process
SubArea: Other
Last Updated: Nov 14 2014

The fix is a simple rename of a folder. In the path below rename the X11 folder to Old-X11

Источник

ANSYS 13,14 or 14.5 unable to start mechanical editor

CFD Online Discussion Forums > Software User Forums > Software User Forums ANSYS 13,14 or 14.5 unable to start mechanical editor

—>

New Today
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Last Week
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Updated Today
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Last Week
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Search Forums
Tag Search
Advanced Search
Search Blogs
Tag Search
Advanced Search

Hi Everybody,
I researched a lot of forums to solve this problem. But they don’t help me.
Ansys licences are works very well. Workbench is opened normally.
But if I want to start to geometry editor. Opss error: Ansyswbu.exe encountered a problem. I can not open the mechanical editor.

I tried below before installation;
-diasble antivirus
-Vga card update
-disable firewall
-delete old versions
-add «a system environment» ANS_OLD_ATTACH=1

I did not manage to solve it.
Please help

System: win7 64bit

We had the same situation (same symptoms, same attempts to remedy) and found that by doing a repair reinstall of Windows 7 (it rolls the Windows 7 files back to their original versions but keeps all your program info and data intact) the summary that displayed when it finished identified some core Windows files that had been changed, files that were associated with our VPN software client. It replaced these files and ANSYS then worked. This may not solve the issue for you but, as you found (and we also found), there aren’t a lot of solutions for this particular problem; this approach may reveal a problem and has the advantage of being simple to try and non-destructive.

There’s a useful summary of the possible Windows 7 repair reinstall options here:

I am having the same problem as fesat181. I have tried uninstalling/reinstalling ANSYS 14 and 14.5 to get rid of the problem, to no avail.

I have tried the following typically recommended fixes:

  • ATI A.I. and 3D settings
  • ANS_OLD_ATTACH = 1
  • Disable firewall
  • Renaming ANSYS folders in %temp% and %AppData%

Anyone have any suggestions other than a Win7 reinstall?

I’m running Win7 64-bit

How you ever checked your third party software. I have had the same problems. I had a laptop and pc and altough I installed on both of them one of them work correctly and the other one does not work As soon as I clicked on gemetry on laptop it told me unable to start geometry editor while it works well on pc.
It is worth mentioing that In installation on My PC I also did not disable firewall and antivirus but it works well. I thought it is third party software problem. I checked the program and features and I understand that by the help of installing Micorsoft Visual C++ 2005 to 2010 all of them which compatible with your windows (depends on 64 bit or 32 bit windows which you have) it will remove.Maybe your problem also be removed by the help of Installing whole the packeage of microsoftvisuial C++ redistributor from 2005 to 2010.

please tell me if it works or not. Maybe I have another suggestion for you guys.

Источник

Launching TextEdit from git #6

git is giving me an error when it tries to launch TextEdit, and I’m wondering if someone might be able to help me out with it:

First I tried the simple command that was in the walkthrough to make TextEdit the editor:
git config —global core.editor «TextEdit -w»

So I got a little more specific:

git config —global core.editor «/Applications/TextEdit.app -w»

and if I try a commit without a message, it returns the error message:

(As long as I include a message with -m , it doesn’t bother with TextEdit and everything works just fine)

On a whim, I tried without the -w , and got

And I think that’s where I’m at. any ideas?

Thanks in advance!

The text was updated successfully, but these errors were encountered:

That is definitely my bad! Try it all lowercase and let me know if that fixes it.

git config —global core.editor «textedit -w»

I’ll update the webpage now!

Unfortunately, still not working. What’s odd is that if I leave git out of it:
$ open «/Applications/TextEdit.app»
works fine.

with or without git, I get the «command not found» unless I specify to look in the /Applications folder.

$ open textedit or $ open textedit.app or $open TextEdit.app . or even just $ textedit all return command not found .

Updated 5:00pm: So, how deep down the rabbit hole do you want to go on here, and/or would it be easier to skip TextEdit entirely and remind myself how to use emacs?

If I’m very explicit:
git config —global core.editor «/Applications/TextEdit.app/Contents/MacOS/TextEdit -w»
I can get TextEdit to start up in the background, but it doesn’t actually give me a window to enter a commit message. Might need to play with more flags to make that happen.

I can get TextEdit to open and give me a window with: git config —global core.editor open (uses the default system application for plain text, which in my case is TextEdit). Success!

. but, as soon as TextEdit opens, before I have a chance to type and save a commit message, I get

because git isn’t waiting for it. If I try to add the -w flag, bash gets mad because open doesn’t accept that flag.

What happens when you include a commit message? E.g.,

By default, git requires a commit message to enforce best practices in using version control. Commit messages should be concise but meaningful; generally a brief explanation of why a change was made, rather than what was done since you can just look at the change directly.

The real test of whether the TextEdit business will work will be when we have to do a merge commit.

I like knowing about the core.editor open option! I’ll add that to the list.

As long as I give it a message, it works just fine- it’s just when it tries to open an external text editor to do a longer commit message.

It also works fine with emacs:

when I commit, launches emacs, where I can enter a message, save it, and quit emacs and come back to this:

Also, open works best for me if I use it with -W -n as options:

it seems to only give me trouble if I try to refer to text edit explicitly, which is weird, and I’d like to know what’s causing it. but I’m OK with either using open or emacs, so I think I’m good for now!

I wonder if this has something to do with opening a text editor external to the shell? This is why emacs or nano or somesuch works normally.

I was curious about that as well. but it does strike me as odd that it works with open but not with calling TextEdit explicitly, even if I use the -W -n flags.

What is TextEdit? Did I miss the class when this was covered? Oops.

I think we went over it pretty quickly. I wouldn’t worry about this too much for now, as long as you include a message in your commits ( git commit -m «I made my commit for some reason that I describe here» ).

But, if you’re curious: TextEdit is a simple, plain text editing program. The context of this issue is that git won’t let you make a commit without a message explaining why. If you don’t include one with the -m flag, you can tell git to open a small message file in a text editor, where you can leave a longer, more detailed message. TextEdit is the built-in text editor on Macs, which has a nice simple graphical user interface. There are lots of other alternatives that are on the command line, but those can be a bit trickier to use.

Источник

GIT описание ошибок

В статье описываются типичные ошибки или уведомления, которые возникают в GIT при работе через консоль. Эта статья будет дополняться по мере того, как я буду встречать новые заголовки, для которых сочту, что нужны дополнительные пояснения.

Your branch is ahead of ‘origin/любая_ветка’ by 12 commits.

В гите локально хранится копия репозитория. И сначала изменения происходят в ней. Для этого используется команда commit.

Сообщение выше говорит о том, что изменения в локальной копии опережают изменение я удаленной на кол-во раз. И эти изменения не отправлены в удаленный репозиторий.

Для передачи этих изменений в удаленный репозиторий используется команда push. После чего все сделанные изменения будут доступны удаленно, в том числе и для других пользователей.

hint: Waiting for your editor to close the file… error: There was a problem with the editor ‘/usr/bin/vim’.

Ошибка появляется в PhpStorm после команды git merge.

Если никакие команды не позволяют исправить редактор VIM, то можно заменить его на другой. Скажем на редактор nano.

Установка на Mac OS через Homebrew

После установки Homebrew ввести команду:

А затем поменять в PhpStorm редактор на nano:

Если редактор не установлен, то при смене будет ошибка:

error: unable to start editor ‘“nano”’

Читайте также

У сайта нет цели самоокупаться, поэтому на сайте нет рекламы. Но если вам пригодилась информация, можете лайкнуть страницу, оставить комментарий или отправить мне подарок на чашечку кофе.

Комментарии к статье “ GIT описание ошибок ” (2)

добрый день, а если выдает такую ошибку:
git commit
hint: Waiting for your editor to close the file… [program]: [program]: command not found
error: There was a problem with the editor ‘[program]’.
Please supply the message using either -m or -F option.

Похоже на то что нужно выйти из редактора в консоли.

Источник

Error launching editor: unable to launch the editor «vim» #7318

Comments

tasinet commented Jul 24, 2019 •

1. What kops version are you running? The command kops version , will display
this information.

Version 1.11.1 (git-cb8143c)
Installed via snap on a 5.1.16 kernel Ubuntu

2. What Kubernetes version are you running? kubectl version will print the
version if a cluster is running or provide the Kubernetes version specified as
a kops flag.

Client: v1.15.1
Server: v1.9.3

3. What cloud provider are you using?

4. What commands did you run? What is the simplest way to reproduce this issue?

When I attempt to edit anything:

5. What happened after the commands executed?

6. What did you expect to happen?

7. Please provide your cluster manifest. Execute
kops get —name my.example.com -o yaml to display your cluster manifest.
You may want to remove your cluster name and other sensitive information.

8. Please run the commands with most verbose logging by adding the -v 10 flag.
Paste the logs into this report, or in a gist and provide the gist link here.

9. Anything else do we need to know?

Fails with other $EDITOR values as well:

absolute paths in $EDITOR didn’t have any effect:

which vim and which nano return /usr/bin/vim and /bin/nano , which are in $PATH and executable.

Probably unrelated, but my own machine (not part of this or any cluster) is somewhy running Kubelet, which is in a spawn loop. Removed it; no change.

The text was updated successfully, but these errors were encountered:

Источник

Launching TextEdit from git #6

Comments

bseitz234 commented Sep 11, 2015

git is giving me an error when it tries to launch TextEdit, and I’m wondering if someone might be able to help me out with it:

First I tried the simple command that was in the walkthrough to make TextEdit the editor:
git config —global core.editor «TextEdit -w»

So I got a little more specific:

git config —global core.editor «/Applications/TextEdit.app -w»

and if I try a commit without a message, it returns the error message:

(As long as I include a message with -m , it doesn’t bother with TextEdit and everything works just fine)

On a whim, I tried without the -w , and got

And I think that’s where I’m at. any ideas?

Thanks in advance!

The text was updated successfully, but these errors were encountered:

jdunic commented Sep 11, 2015

That is definitely my bad! Try it all lowercase and let me know if that fixes it.

git config —global core.editor «textedit -w»

I’ll update the webpage now!

bseitz234 commented Sep 11, 2015

Unfortunately, still not working. What’s odd is that if I leave git out of it:
$ open «/Applications/TextEdit.app»
works fine.

with or without git, I get the «command not found» unless I specify to look in the /Applications folder.

$ open textedit or $ open textedit.app or $open TextEdit.app . or even just $ textedit all return command not found .

bseitz234 commented Sep 11, 2015

Updated 5:00pm: So, how deep down the rabbit hole do you want to go on here, and/or would it be easier to skip TextEdit entirely and remind myself how to use emacs?

If I’m very explicit:
git config —global core.editor «/Applications/TextEdit.app/Contents/MacOS/TextEdit -w»
I can get TextEdit to start up in the background, but it doesn’t actually give me a window to enter a commit message. Might need to play with more flags to make that happen.

I can get TextEdit to open and give me a window with: git config —global core.editor open (uses the default system application for plain text, which in my case is TextEdit). Success!

. but, as soon as TextEdit opens, before I have a chance to type and save a commit message, I get

because git isn’t waiting for it. If I try to add the -w flag, bash gets mad because open doesn’t accept that flag.

jdunic commented Sep 11, 2015

What happens when you include a commit message? E.g.,

By default, git requires a commit message to enforce best practices in using version control. Commit messages should be concise but meaningful; generally a brief explanation of why a change was made, rather than what was done since you can just look at the change directly.

The real test of whether the TextEdit business will work will be when we have to do a merge commit.

I like knowing about the core.editor open option! I’ll add that to the list.

bseitz234 commented Sep 11, 2015

As long as I give it a message, it works just fine- it’s just when it tries to open an external text editor to do a longer commit message.

It also works fine with emacs:

when I commit, launches emacs, where I can enter a message, save it, and quit emacs and come back to this:

Also, open works best for me if I use it with -W -n as options:

it seems to only give me trouble if I try to refer to text edit explicitly, which is weird, and I’d like to know what’s causing it. but I’m OK with either using open or emacs, so I think I’m good for now!

jebyrnes commented Sep 12, 2015

I wonder if this has something to do with opening a text editor external to the shell? This is why emacs or nano or somesuch works normally.

bseitz234 commented Sep 14, 2015

I was curious about that as well. but it does strike me as odd that it works with open but not with calling TextEdit explicitly, even if I use the -W -n flags.

klarraga commented Sep 16, 2015

What is TextEdit? Did I miss the class when this was covered? Oops.

bseitz234 commented Sep 16, 2015

I think we went over it pretty quickly. I wouldn’t worry about this too much for now, as long as you include a message in your commits ( git commit -m «I made my commit for some reason that I describe here» ).

But, if you’re curious: TextEdit is a simple, plain text editing program. The context of this issue is that git won’t let you make a commit without a message explaining why. If you don’t include one with the -m flag, you can tell git to open a small message file in a text editor, where you can leave a longer, more detailed message. TextEdit is the built-in text editor on Macs, which has a nice simple graphical user interface. There are lots of other alternatives that are on the command line, but those can be a bit trickier to use.

Источник

[GeomEditorTimeOut:DMAddin] Unable to start the geometry editor.

CFD Online Discussion Forums > General Forums > General Forums [GeomEditorTimeOut:DMAddin] Unable to start the geometry editor.

—>

New Today
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Last Week
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Updated Today
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Last Week
All Forums
Main CFD Forum
ANSYS — CFX
ANSYS — FLUENT
ANSYS — Meshing
Siemens
OpenFOAM
SU2
Search Forums
Tag Search
Advanced Search
Search Blogs
Tag Search
Advanced Search

we have been struggling with an error trying to open DesignModeller from the Workbench (via Static Structural) double clicking on the «Geometry» tab.
The machine runs on SL65 (identical to RHEL 65).
The following error message appear in the .ansys/. log-files
[GeomEditorTimeOutMAddin] Unable to start the geometry editor.
It takes about 5 minutes, until the error popps up.
We are in contact with ANSYS support which has redirected me to CADFEM without finding a solution. We have checked many possibilities regarding licensing issues. It works on Opensuse 13.1 and on Win7, so I don’t think it’s a license issue (which is administred organisation wide).
Did anyone experience the same error or issue? Any suggestions?
We have had this error on that machine as of Nov. 6 2014. Before (last working date Oct. 23), it worked fine. We newly installed 15.0.7 to no avail.
Something that is striking is that on Nov. 4th, more than 50 graphics-related packages had been updated (I can supply the lengthy list if needed).

Thanks for your pennies,
Christian

browsing through the ANSYS forums, we found the following hint, which works now:

Knowledge Resources: Solutions

#2037921
Problem Description: Any Mechanical application — Mechanical, Meshing, Design-Modeler & FEModeler will not run after a Red Hat 6.x update: RHSA-2014:1436. Starting Design Modeler from WorkBench simply hangs for two to three minutes and then presents an error: «Unable to start the geometry editor.» Mechanical also fails to start. Platform — Redhat6.x or derivatives

Product Family: Installation, Licensing & Systems
Product: ANSYS Mechanical
Version: 15.0
Area: Installation Process
SubArea: Other
Last Updated: Nov 14 2014

The fix is a simple rename of a folder. In the path below rename the X11 folder to Old-X11

Источник

Launching TextEdit from git #6

Comments

bseitz234 commented Sep 11, 2015

git is giving me an error when it tries to launch TextEdit, and I’m wondering if someone might be able to help me out with it:

First I tried the simple command that was in the walkthrough to make TextEdit the editor:
git config —global core.editor «TextEdit -w»

So I got a little more specific:

git config —global core.editor «/Applications/TextEdit.app -w»

and if I try a commit without a message, it returns the error message:

(As long as I include a message with -m , it doesn’t bother with TextEdit and everything works just fine)

On a whim, I tried without the -w , and got

And I think that’s where I’m at. any ideas?

Thanks in advance!

The text was updated successfully, but these errors were encountered:

jdunic commented Sep 11, 2015

That is definitely my bad! Try it all lowercase and let me know if that fixes it.

git config —global core.editor «textedit -w»

I’ll update the webpage now!

bseitz234 commented Sep 11, 2015

Unfortunately, still not working. What’s odd is that if I leave git out of it:
$ open «/Applications/TextEdit.app»
works fine.

with or without git, I get the «command not found» unless I specify to look in the /Applications folder.

$ open textedit or $ open textedit.app or $open TextEdit.app . or even just $ textedit all return command not found .

bseitz234 commented Sep 11, 2015

Updated 5:00pm: So, how deep down the rabbit hole do you want to go on here, and/or would it be easier to skip TextEdit entirely and remind myself how to use emacs?

If I’m very explicit:
git config —global core.editor «/Applications/TextEdit.app/Contents/MacOS/TextEdit -w»
I can get TextEdit to start up in the background, but it doesn’t actually give me a window to enter a commit message. Might need to play with more flags to make that happen.

I can get TextEdit to open and give me a window with: git config —global core.editor open (uses the default system application for plain text, which in my case is TextEdit). Success!

. but, as soon as TextEdit opens, before I have a chance to type and save a commit message, I get

because git isn’t waiting for it. If I try to add the -w flag, bash gets mad because open doesn’t accept that flag.

jdunic commented Sep 11, 2015

What happens when you include a commit message? E.g.,

By default, git requires a commit message to enforce best practices in using version control. Commit messages should be concise but meaningful; generally a brief explanation of why a change was made, rather than what was done since you can just look at the change directly.

The real test of whether the TextEdit business will work will be when we have to do a merge commit.

I like knowing about the core.editor open option! I’ll add that to the list.

bseitz234 commented Sep 11, 2015

As long as I give it a message, it works just fine- it’s just when it tries to open an external text editor to do a longer commit message.

It also works fine with emacs:

when I commit, launches emacs, where I can enter a message, save it, and quit emacs and come back to this:

Also, open works best for me if I use it with -W -n as options:

it seems to only give me trouble if I try to refer to text edit explicitly, which is weird, and I’d like to know what’s causing it. but I’m OK with either using open or emacs, so I think I’m good for now!

jebyrnes commented Sep 12, 2015

I wonder if this has something to do with opening a text editor external to the shell? This is why emacs or nano or somesuch works normally.

bseitz234 commented Sep 14, 2015

I was curious about that as well. but it does strike me as odd that it works with open but not with calling TextEdit explicitly, even if I use the -W -n flags.

klarraga commented Sep 16, 2015

What is TextEdit? Did I miss the class when this was covered? Oops.

bseitz234 commented Sep 16, 2015

I think we went over it pretty quickly. I wouldn’t worry about this too much for now, as long as you include a message in your commits ( git commit -m «I made my commit for some reason that I describe here» ).

But, if you’re curious: TextEdit is a simple, plain text editing program. The context of this issue is that git won’t let you make a commit without a message explaining why. If you don’t include one with the -m flag, you can tell git to open a small message file in a text editor, where you can leave a longer, more detailed message. TextEdit is the built-in text editor on Macs, which has a nice simple graphical user interface. There are lots of other alternatives that are on the command line, but those can be a bit trickier to use.

Источник


У меня есть эта странная проблема с использованием viв качестве редактора для git commit -a.

Обычный поток: я печатаю git commit -a, viпоявляется, я ввожу свое сообщение о коммите, а затем :wqсохраняю и выхожу из него vi.

Это отлично работает. Тем не менее, иногда я делаю опечатку и вместо того, чтобы :wqпечатать :Wq(потому что я использую Shift для :). Затем, когда я исправляю себя и печатаю :wqснова, gitвыдает следующую ошибку:

error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.

Как я могу это исправить?



Ответы:


viсуществует с ненулевым статусом, хотя без дополнительных подробностей о вашей настройке трудно сказать, почему. Если вы используете много плагинов для vim, вы можете попробовать переместить .vimrcфайл в .vimrc.backи посмотреть, сможете ли вы воспроизвести. Есть несколько источников, которые обсуждают эту проблему, в том числе по крайней мере один с потенциальным решением:

git config --global core.editor /usr/bin/vim

Я бы попробовал удалить твою .vimrcпервую, однако. Кажется, это вызывает еще больший ужас.





Вы используете плагины golang vim? Эта строка вызывает у меня проблему со значением выхода vi:
filetype plugin indent off

Удаление целого блока плагинов golang .vimrcисправило проблему. Установить плагин golang с помощью fugitive можно так же просто, как:ln -s $GOROOT/misc/vim ~/.vim/bundle/vim-golang

(Я только что задокументировал проблему в этом выпуске на github vim-golang )


Я думаю, что-то не так с Git config.

Таким образом, решение состоит в том, чтобы сбросить конфиг Git, и он работал для меня:

git config --global core.editor $(which vim)

$(which vim)является более гибким, чем /usr/bin/vim(исполняемый файл vim может быть недоступен для некоторых людей)

Comments

@codyaray

cbeams

added a commit
to cbeams/dotfiles
that referenced
this issue

Jul 16, 2014

@cbeams

walkerlee

added a commit
to walkerlee/dotfiles
that referenced
this issue

Sep 22, 2014

@walkerlee

sandlerb

added a commit
to sandlerb/dotfiles
that referenced
this issue

Mar 15, 2015

@sandlerb

jacobsa

added a commit
to jacobsa/dotfiles
that referenced
this issue

May 14, 2015

@jacobsa

balintk

added a commit
to balintk/dotfiles
that referenced
this issue

Sep 6, 2015

@balintk

jackqt

added a commit
to jackqt/oh-my-zsh
that referenced
this issue

Nov 20, 2015

@jackqt

sukima

added a commit
to sukima/vimrc
that referenced
this issue

Dec 17, 2015

@sukima

cappert

added a commit
to cappert/test
that referenced
this issue

Feb 28, 2016

@cappert

yotsuba1022

referenced
this issue
in yotsuba1022/my-cmd-settings

Apr 21, 2017

@yotsuba1022

ahastudio

added a commit
to ahastudio/dotfiles
that referenced
this issue

Jan 28, 2021

@ahastudio

ahastudio

added a commit
to ahastudio/dotfiles
that referenced
this issue

Jan 28, 2021

@ahastudio

Sometimes git puts this message:

> hint: Waiting for your editor to close the file...
> error: There was a problem with the editor 'vi'.

Just do this!

> Git Commit Problem: "error: There was a problem with the editor 'vi'"
> VundleVim/Vundle.vim#167

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.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • 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.

  • Visualization

    Some thing interesting about visualization, use data art

  • 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.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Old

09-17-2008

91,
0

Member Information Avatar

Join Date: Jul 2007

Last Activity: 29 December 2008, 4:07 AM EST

Posts: 91

Thanks Given: 0

Thanked 0 Times in 0 Posts

getting error when open vi editor


helo
I install my product for koren language
I m uisng RHEL -4 operating system
now problem is whenever I open any file

vi filename

I got following error on the screen

E557: Cannot open termcap file
‘vt100’ not known. Available builtin terminals are:
builtin_ansi
builtin_xterm
builtin_iris-ansi
builtin_dumb
defaulting to ‘ansi’

Regards,
Amit

Old

09-17-2008

317,
0

Member Information Avatar

Join Date: Apr 2008

Last Activity: 22 May 2013, 8:38 AM EDT

Location: Calgary

Posts: 317

Thanks Given: 0

Thanked 0 Times in 0 Posts

Try:

Bash

Code:

export TERM=xterm    #or one of the other terminal options that works for you
vi filename

csh

Code:

setenv TERM xterm    #or one of the other terminal options that works for you
vi filename

Good luck


Last edited by avronius; 09-17-2008 at 11:49 AM..

Reason: fixing BAD typo

6 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to check if a file is open in editor?

Hi there! I’m developing a program that allows the user to open and edit files using both an editor and the terminal. Once the user has finished editing the file an update is sent to the logbook that compares the file before and after it was edited — this can only be done if the file is closed (I… (23 Replies)

Discussion started by: cherryTango

2. Shell Programming and Scripting

Not able to read .csv file until open in vi editor

Hi,

I am facing a problem regarding .csv file, my script does not read .csv file and if i open this file in vi editor and perform :wq option then only my script reads the .csv file.

Thanks (5 Replies)

Discussion started by: ranabhavish

3. UNIX for Dummies Questions & Answers

Vi editor will not open new to UNIX. help please.

vi: syntax error at line 1: `)’ unexpected

when I try to vi into the /etc/vfstab, the return gives me the above error.
how can resolve this so that I can have access into vi. (6 Replies)

Discussion started by: dovestar

4. UNIX for Dummies Questions & Answers

How to open file in VI Editor at a specific line?

i have following query

e.g i want the VI Editor cursor at line number N instead of 0 while opening the file from unix prompt.

vi filename ??????

Can anyone help? (4 Replies)

Discussion started by: skyineyes

5. Shell Programming and Scripting

How to give permissions to an open file in vi editor?

Hi all,

I have a shell script that i started editing, only in the midst of which i tried to save the changes i found that the file wasnt been provided with write/execute permissions.

I later have redone the changes and saved the file-

Just curious to know if there was any command wherein… (5 Replies)

Discussion started by: Pankajakshan

6. UNIX for Advanced & Expert Users

Unable to open files in VI editor

Hi,
I unable to open any file using Vi editor,constantly getting the following error,

vi log.log
*** glibc detected *** malloc(): memory corruption: 0x081af510 **

uname -a
Linux sekac092 2.6.5-7.244-bigsmp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686 athlon i386 GNU/Linux

Also Note
ls… (8 Replies)

Discussion started by: ennstate

Featured Tech Videos

Понравилась статья? Поделить с друзьями:
  • Error unable to send data to asr sent 0 of 131092 bytes
  • Error unable to load dependency hdf5 make sure hdf5 is installed properly
  • Error unable to select packages python
  • Error unable to load d2multires dll exiting diablo 2
  • Error unable to save resume file no such file or directory