Code Monkey home page Code Monkey logo

Comments (2)

Pilooz avatar Pilooz commented on July 29, 2024

Hi,
I think this is not due to relative path settings. I have only absolute path and I'm experiencing the same issue.
Here is my plugin config :

{
  "rubocop_command": "bundle exec /usr/local/bin/rubocop --auto-correct --format simple -D"",
  "check_for_rvm": false,
  "rvm_auto_ruby_path":  "",
  "check_for_rbenv": false,
  "rbenv_path":  "",
  "mark_issues_in_view": false,
  "show_auto_correct_warning": true,
  "rubocop_config_file": ""
}

Am I missing something in plugin config ?

traceback is the same :

Running / u s r / l o c a l / b i n / r u b o c o p   / U s e r s / p g l / d e v e l o p p e m e n t / p u b l i p o s t a g e / l i b / p u b l i p o s t a g e . r b
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 533, in run_
    return self.run(**args)
  File "exec in /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package", line 200, in run
FileNotFoundError: [Errno 2] No such file or directory: 'foldername'

I noticed that the foldernamein trackback above had nothing to see with the folder I am working in.
So I clean up folder list, restarted SublimeText, and all is working fine now.
I had to add absloute path for rubucop executable in config (rubocop_command) to be sure that bundle will find the exec.

HTH

from sublime_rubocop.

nhinds avatar nhinds commented on July 29, 2024

This bug is about relative paths in the .sublime-project file, which you did not include in your comment.

Based off your description I suspect you did have a relative path in your sublime project, but when you cleaned up your folder list it may have been removed

from sublime_rubocop.

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.