jimhester / SublimeLinter-contrib-lintr

MIT License
14 stars 8 forks source link

intr: Defining 'cls.syntax' has no effect anymore #20

Open Oceanflo opened 4 years ago

Oceanflo commented 4 years ago

Hi, I'm getting an error during lintr installation

`SublimeLinter: ERROR:

lintr: Defining 'cls.syntax' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.

SublimeLinter: ERROR:

lintr: Defining 'cls.selectors' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.

SublimeLinter: ERROR:

lintr disabled. 'selector' is mandatory in 'cls.defaults'. See http://www.sublimelinter.com/en/stable/linter_settings.html#selector`

Is it a solution for that ? Thank you

TomasW-Inn commented 2 years ago

Hi! I am trying to use lintr plugin for sublime but get the error as shown above:

"lintr disabled. 'selector' is mandatory in 'cls.defaults'." " See http://www.sublimelinter.com/en/stable/linter_setting"

Trying to fix this by adding the following lines in "SublimeLinter Settings - User"

"linters": { "lintr": { "selector": "source.r"

    },

But doesn't help.

Thus, following the instructions on https://cloud.r-project.org/web/packages/lintr/vignettes/editors.html don´t work.

I have Sublime version 4126 and use package control. I have R 4.05 and installed lintr by install_github('jimhester/lintr')

Have I missed something or do we have to wait for an upgrade of the sublime lintr plugin?

blex-max commented 1 year ago

FWIW I also have this issue. I might take a look at the source. Has this project been abandoned?

zhsh006 commented 1 year ago
  1. Preference > Browse Packages > Installed Packages > SublimeLinter-contrib-lintr.sublime-pacakage
  2. Change its extension to .zip (SublimeLinter-contrib-lintr.zip) and unzip it.
  3. Eidt the "Linter.py" file.
  4. Set the value of the 'selector' parameter to 'source.r'. (selectors = {'source.r'})