Comments (7)
I just disabled rmv and and used a custom rubocop_command:
{
"check_for_rvm": false,
"rubocop_command": "/home/kadu/.asdf/shims/rubocop"
}
from asdf-ruby.
I am not sure if this will help, run into similar issue, and here's how I solved it.
I added a user setting file with the following (Sublime Text > Preferences > Package Settings > Rubocop > User - Settings)
{
// Note: If check_for_rvm and check_for_rbenv are both enabled,
// the plugin will use RVM.
"check_for_rvm": false,
"check_for_rbenv": true,
// The path to rbenv's binary
"rbenv_path": "~/.asdf/shims/rubocop",
}
from asdf-ruby.
What happens if you run asdf reshim ruby
? I'm not sure what the issue is, but make sure you have the right Ruby version installed with asdf (asdf install ruby <version>
) and also make sure your project directory is set to use that same version.
from asdf-ruby.
Same thing with reshim. I have corrects ruby versions, setting a global ruby it works, but without global i think it's not looking for correct project path for get ruby version.
from asdf-ruby.
Yeah that's possible. asdf relies on the current working directory to set the version, so if SublimeLinter is running from some other directory then the version may not be set.
I'm not sure what OS you are on, but you should be able to find some details on the SublimeLinter process, including the directory in which it was started.
from asdf-ruby.
Closing this since I don't think there is anything asdf-ruby can do to fix this.
from asdf-ruby.
This only works if your sublime text plugin does it's thing in the root of your project where your .tool-versions
are.
If it's making assumptions about where its cwd
is (like where ever it is that you executed subl
then your shims still won't work because they rely on looking at $(cwd)/.tool-versions
from asdf-ruby.
Related Issues (20)
- Version not found for Ruby 3.2.2 HOT 1
- Failed to install ruby 3.2.2 on M2 Pro with macOS Ventura 13.3 HOT 20
- Failed to install ruby 3.1.2 on Mac OS 13.3.1 M1 Pro HOT 6
- Can't compile 3.1.2 on macos 13.4 (x86) due to errors in ephemeral C source/header files
- Can't install truffleruby+graalvm on AlpineLinux HOT 1
- Failed to install Ruby 3.1.4 on Ubuntu 22.04
- Issue installing ruby 3.2.X HOT 1
- Failed to install ruby 3.2.1 on M1 Pro with macOS Ventura 13.3 and macOS 14.0
- Observe ASDF_CONCURRENCY HOT 3
- rbenv install faild with whitespace in `$ASDF_DATA_DIR`
- Getting BUILD FAILED (macOS 13.2.1 on arm64 using ruby-build 20231114) using M2 Macbook on Ventura 13.2.1 HOT 2
- Failed to upgrade Ruby version from 3.2.2 to 3.3.0 using asdf HOT 2
- build fail for ruby 3.3.0 on Apple M2 Max silicone and sonoma 14.2.1 (23C71) HOT 2
- Add Ruby 3.2.3 HOT 2
- asdf does not seem to be picking up on ruby gem executables in the GEM_PATH HOT 7
- "Downloaded files will not be preserved." HOT 1
- Ruby 3.2.3 cannot be installed on Ubuntu 22.04 HOT 2
- Build failed: `psych` Could not be configured. It will not be installed. HOT 3
- Truffle Ruby Latest? HOT 1
- The same OS and asdf version on 2 different machines shows different recent ruby versions to install HOT 4
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 asdf-ruby.