[MacPorts] #47643: vim 7.4 reports 7.3 version once installed
#47643: vim 7.4 reports 7.3 version once installed -------------------------------+-------------------------------- Reporter: eliseo.martinez@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: -------------------------------+-------------------------------- I'm installing vim 7.4 port: ``` ~ ❯❯❯ sudo port install vim ---> Computing dependencies for vim ---> Fetching archive for vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/vim ---> Installing vim @7.4.258_1+huge ---> Activating vim @7.4.258_1+huge ---> Cleaning vim ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. ``` Everything seems to go ok, but when I enter vim: ``` YouCompleteMe unavailable: requires Vim 7.3.584+ The EnhancedDiff Plugin needs at least a Vim version 7.4 Press ENTER or type command to continue ``` In fact, version reported within vim is: ``` :version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 5 2014 21:00:28) Compiled by root@apple.com Normal version without GUI. Features included (+) or not (-): -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments -conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn -python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses ``` Weird... Thanks, Eliseo. -- Ticket URL: <https://trac.macports.org/ticket/47643> MacPorts <https://www.macports.org/> Ports system for OS X
#47643: vim 7.4 reports 7.3 version once installed --------------------------------+-------------------------------- Reporter: eliseo.martinez@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: | --------------------------------+-------------------------------- Comment (by eliseo.martinez@…): Sorry, I messed up indentation, and didn't find a way to edit above message. Trying again: I'm installing vim 7.4: {{{ ~ ❯❯❯ sudo port install vim ---> Computing dependencies for vim ---> Fetching archive for vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/vim ---> Installing vim @7.4.258_1+huge ---> Activating vim @7.4.258_1+huge ---> Cleaning vim ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. }}} Everything seems to go ok, but when I enter vim: {{{ YouCompleteMe unavailable: requires Vim 7.3.584+ The EnhancedDiff Plugin needs at least a Vim version 7.4 Press ENTER or type command to continue }}} In fact, version reported within vim is: {{{ :version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 5 2014 21:00:28) Compiled by root@apple.com Normal version without GUI. Features included (+) or not (-): -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments -conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn -python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses }}} Weird... -- Ticket URL: <https://trac.macports.org/ticket/47643#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47643: vim 7.4 reports 7.3 version once installed --------------------------------+---------------------- Reporter: eliseo.martinez@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: vim | --------------------------------+---------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => raimue@… * port: => vim Old description:
I'm installing vim 7.4 port: ``` ~ ❯❯❯ sudo port install vim ---> Computing dependencies for vim ---> Fetching archive for vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/vim ---> Installing vim @7.4.258_1+huge ---> Activating vim @7.4.258_1+huge ---> Cleaning vim ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. ```
Everything seems to go ok, but when I enter vim: ``` YouCompleteMe unavailable: requires Vim 7.3.584+ The EnhancedDiff Plugin needs at least a Vim version 7.4 Press ENTER or type command to continue ```
In fact, version reported within vim is: ``` :version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 5 2014 21:00:28) Compiled by root@apple.com Normal version without GUI. Features included (+) or not (-): -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments -conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn -python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses ```
Weird...
Thanks, Eliseo.
New description: I'm installing vim 7.4 port: {{{ ~ ❯❯❯ sudo port install vim ---> Computing dependencies for vim ---> Fetching archive for vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/vim ---> Attempting to fetch vim-7.4.258_1+huge.darwin_14.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/vim ---> Installing vim @7.4.258_1+huge ---> Activating vim @7.4.258_1+huge ---> Cleaning vim ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. }}} Everything seems to go ok, but when I enter vim: {{{ YouCompleteMe unavailable: requires Vim 7.3.584+ The EnhancedDiff Plugin needs at least a Vim version 7.4 Press ENTER or type command to continue }}} In fact, version reported within vim is: {{{ :version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 5 2014 21:00:28) Compiled by root@apple.com Normal version without GUI. Features included (+) or not (-): -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments -conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn -python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses }}} Weird... Thanks, Eliseo. -- -- Ticket URL: <https://trac.macports.org/ticket/47643#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47643: vim 7.4 reports 7.3 version once installed --------------------------------+---------------------- Reporter: eliseo.martinez@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: vim | --------------------------------+---------------------- Comment (by ryandesign@…): It looks like you have successfully installed the MacPorts version of vim, but are still running the Apple version of vim. -- Ticket URL: <https://trac.macports.org/ticket/47643#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47643: vim 7.4 reports 7.3 version once installed --------------------------------+---------------------- Reporter: eliseo.martinez@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: vim | --------------------------------+---------------------- Comment (by ryandesign@…): Have you already tried running `hash -r`, or closing the terminal window and making a new one? If yes, what is the value of your `PATH` environment variable? Does /opt/local/bin come first in it, or at least before /usr/bin? -- Ticket URL: <https://trac.macports.org/ticket/47643#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47643: vim 7.4 reports 7.3 version once installed --------------------------------+---------------------- Reporter: eliseo.martinez@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: vim | --------------------------------+---------------------- Comment (by eliseo.martinez@…): Gosh. I'm really sorry about this. I tried again now and it worked perfectly (probably because I opened a new terminal window). But that shouldn't be necessary, should it? I mean, my $PATH is correct (/opt/local/bin before /usr/bin and others). So, once sudo port install finishes, it should locate the macports one first... I don't really know what happened here. This can be closed. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/47643#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47643: vim 7.4 reports 7.3 version once installed --------------------------------+---------------------- Reporter: eliseo.martinez@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: vim | --------------------------------+---------------------- Changes (by raimue@…): * status: new => closed * resolution: => invalid Comment: You ran 'vim' before installing the vim port and it found the binary at `/usr/bin/vim`. Your shell remembers the path where it found the binary for a command and it will just use the same path if you type the same command again. The shell will not notice any new binary in `PATH`. To clear this cache of your shell you need to run `hash -r` or simply start a new shell. -- Ticket URL: <https://trac.macports.org/ticket/47643#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts