question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot execute magit.status because there is no active text editor.

See original GitHub issue

Currently, if one opens a folder and runs “> Magit Status” without opening a text editor, the command will silently no-op, and the message Cannot execute magit.status because there is no active text editor. will appear in the Extension Host output window.

The command should still work in this situation, or, if that’s not possible for some reason, show a user-visible warning that an editor needs to be open before running the command.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
oo6commented, Jul 7, 2020

@kahole I’m glad that issue is solved, thank you!

Can allow magit.dispatch from anywhere? And remove the when clause of magit.status and magit.dispatch in commandPalette? I’d be happy to contribute.

0reactions
kaholecommented, Jul 7, 2020

Yes, those changes should be made as well. @oo6

Read more comments on GitHub >

github_iconTop Results From Across the Web

magit-status' reports failed to provide feature 'with-editor' #86
After this, when I ran package-install for magit, there is the same error in the Compile-Log buffer. And the issue still exists. Leaving...
Read more >
Magit: Is it possible to edit text directly in "Unstaged changes"?
You can not edit text directly in the Magit buffer, but when your cursor is on the changes you want to edit you...
Read more >
magit/magit - Gitter
This isn't magit per se, but I'm trying to construct my own major-mode similar to magit's status buffer, where there's a bunch of...
Read more >
1.2 - Magit User Manual
When magit-repo-dirs is not nil, it is treated as a list of directory names, and magit-status will find all Git repositories in those...
Read more >
Magit User Manual
Magit User Manual. Magit is an interface to the version control system Git, implemented as an Emacs package. Magit aspires to be a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found