-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacVim: Run into error after new formula #15741
Comments
Ridiculous question but I'll ask anyway: did you try rebooting? |
I just tried rebooting. It is the same. This all happens after I updated Python and MacVim. It seems the version bump for MacVim w.r.t. the Python PR of shadowing system executive did not work on my side. I tried switching to previous version of MacVim, and it works although without Python support. |
Sorry for being unclear. I meant my suggestion was ridiculous not your question.
Yes that could be it! Try
|
I should say sorry too for misunderstanding the sentence. Thanks for the clearing up. I have already tried adjusting the PATH variable. Still the same error message. BTW, the other formula for terminal based Vim works fine. |
Can you try rebuilding using master?
|
Thanks for the quick reply. But still the same error. |
how to reset to the previous MacVim version using Homebrew? |
for now, this reverts me python + macvim versions to older ones:
|
It looks like something is causing Vim to be linked against both the system Python framework and the homebrew built Python framework:
Specifically:
Both can't be loaded at the same time... |
Work-around:
Now MacVim works again. |
Having a similar problem, I've realized that in my case, when I install
In the formula I get
All this can be fixed by changing |
@chuanconggao please try this:
And see if that works. Also, please post the |
@apuignav ditto for you. |
I reinstall macvim, but it doesn't work yet. |
Can you please elaborate? |
Actually you need to do
|
@chuanconggao I don't see your gist-logs for macvim. |
when open macvim:
|
can you please post your gist-logs |
@ilovezfs The problem is that MacVim is being linked against both the system Python and the Homebrew provided Python. You can't link against both. |
@bertjwregeer ok, but I have yet to be able to reproduce any of these issues locally. Things seem fine. Feel free to open a PR if you know what the problem is. |
@ilovezfs |
https://github.com/Homebrew/homebrew-core/blob/master/Formula/macvim.rb#L73 This will run |
But |
@bertjwregeer if you build from master, then
is prepended to the PATH, which will point to brew's python's
|
|
Right, so macvim knows to look for python2, which is nice. Also, python and python2 will point to the same file, and python-config and python2-config will point to the same file, so I'm not seeing the problem yet. |
@apuiganv homebrew won't install |
It will install |
Okay, printing out the ENV after that python-config call:
Here's the binaries that are in the Python binpath:
|
|
@bertjwregeer I think that commit may not be working as expected. |
@ilovezfs I would agree. Sadly my Ruby is not nearly strong enough to fix it. |
@bertjwregeer no worries. There should be a proper fix in the next day or so. |
For now the simplest workaround is probably
|
@ilovezfs: Posted that here: #15741 (comment) |
@bertjwregeer cool :) |
You do need to make sure to compile from source, the poured keg is broken too... |
Still not sure why I cannot actually reproduce the breakage. |
If any/some/all of you can test Homebrew/brew#2917, that would be great. |
The bottles are now fixed.
If you use Homebrew/brew's master, --build-from-source builds should be fixed, too. |
i have the same issue, which is caused by brew uninstall --ignore-dependencies python
brew uninstall macvim
brew install --build-from-source macvim
ycm build: ./install.py --clang-completer --system-libclang
brew install python
HOMEBREW_VERSION: 1.2.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: b5529084906af89827f6d9befd613457a1615918
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 71cce046a95a00f51857b679c21b3f546d189c7e
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: http://7xkcej.dl1.z0.glb.clouddn.com
CPU: octa-core 64-bit ivybridge
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.13.3 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/Gatspy/.rbenv/shims/ruby => /Users/Gatspy
Java: 1.8.0_101, 1.8.0_92, 1.7.0_80
macOS: 10.11.5-x86_64
Xcode: 8.2
CLT: 8.2.0.0.1.1480973914
X11: N/A |
@ilovezfs now a regular thank you very much ⭐️ 👍 |
Please always follow these steps:
brew install
ing one, specific formula (not cask) and not every time you runbrew
? If it's a generalbrew
problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/caskroom/homebrew-cask/newbrew update
and retried your prior step?brew doctor
, fixed all issues and retried your prior step?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?Hi, I updated Homebrew and MacVim. Immediately, I see error message after running
mvim
on terminal:The standalone version of MacVim also stopped working, with similar message.
I have attached my
brew config
output:My
brew doctor
output is clean.The text was updated successfully, but these errors were encountered: