Code Monkey home page Code Monkey logo

Comments (7)

kdiogenes avatar kdiogenes commented on August 16, 2024 6

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.

gilbertek avatar gilbertek commented on August 16, 2024 2

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.

Stratus3D avatar Stratus3D commented on August 16, 2024

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.

gabpaladino avatar gabpaladino commented on August 16, 2024

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.

image

from asdf-ruby.

Stratus3D avatar Stratus3D commented on August 16, 2024

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.

Stratus3D avatar Stratus3D commented on August 16, 2024

Closing this since I don't think there is anything asdf-ruby can do to fix this.

from asdf-ruby.

airtonix avatar airtonix commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.