Comments (6)
Try
echo split(system('env PATH='.shellescape($PATH).' '.'ruby -rubygems -e "print Gem.path.join(%(:))"'), ':\|;')
And see what it spits back.
from vim-bundler.
It returns
E484: Can't open file /var/folders/cg/zwfpx2h14sxdy7qym06td_rc0000gn/T/v9n6BfV/3
[]
running just echo(system('ruby -rubygems -e "print Gem.path.join(%(:))"'))
will fail with
E484: Can't open file /var/folders/cg/zwfpx2h14sxdy7qym06td_rc0000gn/T/vaor7Rj/4
even though running just the ruby ruby -rubygems -e "print Gem.path.join(%(:))"
seems to work
/Users/darth/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1:/Users/darth/.gem/ruby/1.9.1
from vim-bundler.
Interesting that if I run
:!ruby -rubygems -e "print Gem.path.join(%(:))"
it will work and display the path, but if I run
echo(system('ruby -rubygems -e "print Gem.path.join(%(:))"'))
it fails with the same error E484: Can't open file /var/folders/cg/zwfpx2h14sxdy7qym06td_rc0000gn/T/vrXmObe/2
from vim-bundler.
I just found that this happens only inside of the fish shell. If i chsh -s /bin/zsh
and try this in a new terminal, it will work just fine. But it breaks when fish
is the default. Any idea why that might be?
from vim-bundler.
Fixed by doing set shell=/bin/sh
, since fish
is not playing nicely with VIM.
from vim-bundler.
Yep, that's the correct solution. Vim and fish do not play well together.
from vim-bundler.
Related Issues (20)
- Support for rubygems 2.2 directory structure HOT 2
- traversing gems HOT 3
- vim-bundler slows down vim startuptime significantly HOT 34
- Limitations on BUNDLE_PATH? HOT 2
- Support new filenames HOT 4
- gems.rb syntax highlighting not working
- Unable to open gems managed by rbenv HOT 5
- Tag in a project listed twice HOT 2
- absolute path value for BUNDLE_PATH in .bundle/config not supported
- Add support for Ruby 2.5.0 HOT 2
- Cannot find gems installed with direnv HOT 9
- `Ctrl+p` autocomplete has become slower after updating from 72d5dd2 to 7372295 HOT 2
- Jump to tag not work in gems HOT 3
- need a file to be opened to works(no command recognized if not)... and all the time errors happen. [resolved] HOT 3
- Git merge conflicts can break lockfile parsing HOT 3
- Gemfile.lock syntax not working HOT 2
- neovim 0.8.0 filetype.lua Unknown function HOT 3
- Cannot `:Bundle open` or `:Bopen` gem HOT 4
- Strange Characters on Startup with Projectionist HOT 1
- bundler return paths incorrectly 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 vim-bundler.