Home Download Buy Blog Forum Support

Linter for C++ not working for me

Linter for C++ not working for me

Postby dmccracken42 on Mon Feb 11, 2013 9:35 pm

I've added linter through package control but it isn't working. I have installed cppcheck from source forge and restarted my system. I see this in the console.

Writing file /M/dmccracken.sbx2/orca/cpx/lib/src/TEST/CpxSipTrunkGroupUnitTest.cpp with encoding UTF-8
Traceback (most recent call last):
File ".\sublime_plugin.py", line 190, in on_post_save
File ".\sublime_plugin.py", line 154, in run_timed_function
File ".\sublime_plugin.py", line 189, in <lambda>
File ".\SublimeLinter.py", line 745, in on_post_save
File ".\SublimeLinter.py", line 364, in select_linter
KeyError: u'c'

Any ideas what I'm doing wrong?

-Dennis-
dmccracken42
 
Posts: 3
Joined: Fri Feb 08, 2013 12:26 pm
Location: Just north of Boston MA

Re: Linter for C++ not working for me

Postby dmccracken42 on Thu Feb 14, 2013 11:38 am

Ok, I've been messing with this all week and still haven't gotten anywhere. I've tried installing both cppcheck and cpplint.py without success.

"sublimelinter_executable_map":
{
"c_cpplint": "/c/php/cpplint.py"
},
"sublimelinter_syntax_map":
{
"Python Django": "python",
"Ruby on Rails": "ruby",
"C++": "c_cpplint",
"C": "c_cpplint"
},

I put cpplint.py into php because that folder is in my path. Still no dice.

Traceback (most recent call last):
File ".\sublime_plugin.py", line 195, in on_modified
File ".\sublime_plugin.py", line 154, in run_timed_function
File ".\sublime_plugin.py", line 194, in <lambda>
File ".\SublimeLinter.py", line 720, in on_modified
File ".\SublimeLinter.py", line 364, in select_linter
KeyError: u'c_cpplint'

Is there a way to get more debug info out of SublimeLinter.py here?

-Dennis-
dmccracken42
 
Posts: 3
Joined: Fri Feb 08, 2013 12:26 pm
Location: Just north of Boston MA


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 23 guests