macvim-dev / macvim-dev/macvim
:py3 command does not work in macvim launching from dock
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
:py3 command works correctly in mvim which launches from terminal, but does not work in mvim launching from dock.
To Reproduce
Detailed steps to reproduce the behavior:
- launch macvim from dock
- :py3 import subprocess
- :py3 print( subprocess.Popen('rg ""', shell=True, stdout=subprocess.PIPE).stdout.read() )
- show nothing
Expected behavior
- launch macvim from terminal
- :py3 import subprocess
- :py3 print( subprocess.Popen('rg ""', shell=True, stdout=subprocess.PIPE).stdout.read() )
- show the rg output lines
Screenshots
The wrong one:

The correct one:

Environment (please complete the following information):
Vim version:

- OS: [e.g. Ubuntu 18.04, Windows 10 1809, macOS 10.14]

Additional context
I installed macvim by brew cask install macvim
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the environment available to :py3 subprocess calls when MacVim is launched from the Dock versus from a terminal, using the reported rg command as the reproducer. Confirm completion when the Dock-launched app produces the same rg output as the terminal-launched app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, vim
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100