Comments (4)
Oh, the problem was caused by my move from Vim to Neovim. Neovim doesn't use ~/.vimrc
for its configuration (unlike Vim), but rather Neovim configurations are put in here: ~/.config/nvim/init.vim
. After I made that discovery, I could easily figure out how to get CommandT to work. At least in the sense that :checkhealth wincent.commandt
in nvim produces the following output:
wincent.commandt: require("wincent.commandt.health").check()
========================================================================
- INFO: Command-T version: 6.0.0-a.4
## Checking that C library has been built
- INFO: Build directory is:
/home/amab/.vim/plugged/command-t/lua/wincent/commandt/lib
- OK: library can be `require`-ed and functions called
## Checking for optional external dependencies
- OK: (optional) `find` binary found
- OK: (optional) `rg` binary found
- OK: (optional) `git` binary found
- WARNING: (optional) `watchman` binary is not in $PATH
- ADVICE:
- commandt.watchman_finder requires `watchman`
Thanks for your help!
from command-t.
Hi @amab8901. Yeah, it's a bit tricky, and the docs are a bit of a work-in-progress.
What if I don't have such a directory?
If you have Command-T, you have the directory, but I can't know where you have it so I can't really put that in the docs... like, did you clone the Git repo? Did you use a plug-in manager? If so, which one? How is it configured?
A few lines up from there, it says:
Run
:checkhealth wincent.commandt
to confirm that the C library has been built, and check for the presence of the optional executable helpers.
If you put Command-T in "the right place" (usually the case if you used a plug-in manager to do so), then that will print out the exact path. For example, this is what it prints on my system:
wincent.commandt: require("wincent.commandt.health").check()
========================================================================
- INFO: Command-T version: 6.0.0-a.4
## Checking that C library has been built
- INFO: Build directory is:
/Users/wincent/.config/nvim/pack/bundle/opt/command-t/lua/wincent/commandt/lib
- OK: library can be `require`-ed and functions called
## Checking for optional external dependencies
- OK: (optional) `git` binary found
- OK: (optional) `rg` binary found
- OK: (optional) `find` binary found
- OK: (optional) `watchman` binary found
So, for me that means I have to cd /Users/wincent/.config/nvim/pack/bundle/opt/command-t/lua/wincent/commandt/lib
before running make
.
I probably need to add a section listing a few common plug-in managers and installation locations, and put the prompt to run :checkhealth
front and center in the docs.
That section apparently doesn't exist. Or at least I couldn't find it.
It's here. But if you're using the Lua implementation, you probably won't have much need for the Ruby implementation. You can still run the build commands mentioned there though if you want.
from command-t.
I'm using vim-plug. I'm totally new to this stuff and I'm just today starting to learn how this vim-plug works.
Based on this (https://github.com/junegunn/vim-plug), I get the impression that I should be writing like this:
call plug#begin('~/.config/nvim')
Plug 'wincent/command-t'
" (...)
call plug#end()
in the ~/.vimrc
file. And so that's exactly what I've done. Now I open some arbitrary file in nvim
, for example nvim hi
, and I run :checkhealth wincent.commandt
in the nvim, and here is the output I get:
wincent-commandt:
========================================================================
- ERROR: No healthcheck found for "wincent-commandt" plugin.
I have also cloned the github repository (I realize I'm supposed to clone the github repository and that the URI refers to a location within that cloned repository). Running the make
command works now.
So I think I successfully passed the installation phase. However, for some reason :checkhealth wincent.commandt
doesn't produce the right output.
EDIT:
I tried troubleshooting by following the instructions on this page:
If a problem occurs the first thing you should do is inspect the output of:
ruby extconf.rb
make
So I run ruby extconf.rb
, and here is the output:
ruby: No such file or directory -- extconf.rb (LoadError)
EDIT 2:
Oh, I found the location of extconf.rb
by running find -type f -name "*extconf*"
. Now the below runs successfully:
ruby extconf.rb
make
... but running checkhealth wincent.commandt
still doesn't work
EDIT 3:
So according to the troubleshooting instructions (https://github.com/wincent/command-t/blob/f6a6cf7fb17cee08ca0ca84ffce6aabccc3d8476/doc/command-t-ruby.txt), I'm supposed to compare the two outputs below:
~/src/command-t/ruby/command-t/ext/command-t $
ruby extconf.rb
make
checking for float.h... yes
checking for ruby.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for fcntl.h... yes
checking for stdint.h... yes
checking for sys/errno.h... yes
checking for sys/socket.h... yes
checking for ruby/st.h... yes
checking for st.h... no
checking for pthread_create() in -lpthread... yes
creating Makefile
linking shared-object ext.so
~/src/command-t/ruby/command-t/ext/command-t $
nvim --version
NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
I'm not sure how I'm supposed to compare them? They don't seem comparable since they provide info of different nature. I think you should clarify in the instruction/documentation how exactly the comparison should be made.
from command-t.
I've not used vim-plug myself but this bit looks about right:
Plug 'wincent/command-t'
(Not sure you need to pass a path to call plug#begin()
though — the docs say that a presumably reasonable default will be used if you don't.)
Did you actually run :PlugInstall
to install the plugin though? After that, I would expect :checkhealth wincent.commandt
to work.
from command-t.
Related Issues (20)
- Strange interaction with vim-gitgutter HOT 2
- [Question] why does RubyGems version of this package contains '../..' in the gem data path? HOT 4
- Error on Compiling Command-T Plugin (clang) HOT 17
- use `watch-project` rather than deprecated `watch` HOT 3
- Release plan for Lua rewrite HOT 1
- 🆕 Command-T 6.0.0 release — compendium issue HOT 42
- 💡 Ideas for improvements — compendium issue HOT 7
- Getting aborted when running CommnadT in lua version HOT 7
- Deal with filenames containing carriage returns 🤦
- Use Lua Version with Vim Plug HOT 1
- Can only type one letter in Popup window HOT 5
- Missing documentation about the initial usage HOT 2
- Backspace key closes Command-T and enters insert mode HOT 5
- bug: `invalid option '%-100' to 'format'` HOT 2
- Implement Lua equivalent of `g:CommandTTraverseSCM` setting HOT 5
- Upgrade issues - MacOS Ventura - command-t.vim could not load the C extension HOT 2
- Opening multiple files from command-line `:CommandTBuffer` only sees the first HOT 2
- Trouble getting command-t to work HOT 4
- Add timeout during long filesystem traversal HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from command-t.