AtomLinter / linter-cpplint

Linter plugin for c++, using cpplint
https://atom.io/packages/linter-cpplint
MIT License
6 stars 5 forks source link

linter-cpplint is not linting #21

Closed maasha closed 9 years ago

maasha commented 9 years ago

I have a fresh install of Atom 1.0.5, linter 1.3.4 and linter-cpplint 0.1.4 on Mac OSX 10.10.4. Linter-rubocop works just fine. The .atom/packages/linter-cpplint/bin/cpplint.py script works fine if run manually. I did start Atom from the command line. The developer console says:

/Users/maasha/.atom/packages/linter-cpplint/lib/init.coffee:22 activate linter-cpplint

But that looks like a simple message and not an error or warning.

Config contains this:

"*":
  "exception-reporting":
    userId: "65626e6c-164c-7b09-5a00-cdd9e20054a1"
  welcome:
    showOnStartup: false
  "linter-cpplint": {}
  minimap:
    plugins:
      "git-diff": true
      selection: true
      linter: true
      "find-and-replace": true
  core:
    themes: [
      "atom-dark-ui"
      "atom-dark-syntax"
    ]
    disabledPackages: [
      "symbols-view"
    ]
  editor:
    invisibles: {}

What to do?

neumannrf commented 9 years ago

You have to downgrade the linter package to an older version with apm uninstall linterand then apm install linter@1.2.4.

That's a workaround, though, not a solution. :cry:

maasha commented 9 years ago

OK - it is now linting! What is the problem?

neumannrf commented 9 years ago

The linter-cpplint package is still using the deprecated API, which has been removed from linter. Read more: https://github.com/atom-community/linter/issues/815 https://github.com/atom-community/linter/issues/801

maasha commented 9 years ago

I assume that this has been reported to linter-cpplint ...

Thanks for the explanation and work-around.