macvim-dev / macvim-dev/macvim

:py3 command does not work in macvim launching from dock

Open
#1,003 23 comments 0 reactions 0 assignees View on GitHub

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:

  1. launch macvim from dock
  2. :py3 import subprocess
  3. :py3 print( subprocess.Popen('rg ""', shell=True, stdout=subprocess.PIPE).stdout.read() )
  4. show nothing

Expected behavior

  1. launch macvim from terminal
  2. :py3 import subprocess
  3. :py3 print( subprocess.Popen('rg ""', shell=True, stdout=subprocess.PIPE).stdout.read() )
  4. show the rg output lines

Screenshots
The wrong one:
image

The correct one:
image

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

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

Additional context
I installed macvim by brew cask install macvim

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.