Commit 256ce63
committed
Fix
This issue was detected on both Homebrew and Github released MacVim for
v8.1 on a fresh install of OS High Sierra with no .vim or .vimrc configuration
Basically, when starting vim from the command line, it produces the
following error:
```
objc[4513]: Class MMBackend is implemented in both /usr/local/Cellar/macvim/8.1-153/MacVim.app/Contents/bin/../MacOS/Vim (0x10b303f38) and /usr/local/Cellar/macvim/8.1-153/MacVim.app/Contents/MacOS/Vim (0x217f5bf38). One of the two will be used. Which one is undefined.
```
If launching graphical interface, the error shows up twice.
The issue was traced to the use of '/../' in the binary path for
launching the application which somehow pollutes the library path for
the executable, finding copies of the MMBackend class in both the
absolute path and the quazi-relative path.
To resolve this, the relative component was removed from the path
resolution of the actual Vim binary by actually dropping down a
directory from the script location. It also simplifies the
dereferencing of any link chains to that script.Class MMBackend duplication bug on launch1 parent 75ee1a5 commit 256ce63
1 file changed
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
| |||
0 commit comments