Closed mandeep closed 6 years ago
SublimeLinter-gcc
could work with both SL3 and SL4.
From the code in your error log (if persist.get_syntax(self.view) in ['c', 'c improved']:
), I am sure that you are using a very old version of SublimeLinter-contrib-gcc
. SublimeLinter-contrib-gcc
should auto-update to SublimeLinter-gcc
. If that did not happen somehow, you may remove SublimeLinter-contrib-gcc
and install SublimeLinter-gcc
manually.
I am using the most recent version of SublimeLinter-gcc. The changelog states I'm using 1.3.7.
No way. From your error log, File "/home/mandeep/.config/sublime-text-3/Packages/SublimeLinter-contrib-gcc/linter.py", line 88, in cmd
states that you are using SublimeLinter-contrib-gcc
rather than SublimeLinter-gcc
.
And if persist.get_syntax(self.view) in ['c', 'c improved']:
is not in 1.3.7's code.
I saw the Package Control auto update message for this plugin just a few days ago. I'm assuming I'm getting the update messages but not the actual updates due to the name change?
Could you remove SublimeLinter-contrib-gcc
via package control?
And does SublimeLinter-gcc
work after removing SublimeLinter-contrib-gcc
?
I was able to remove SublimeLinter-contrib-gcc via PackageControl. SublimeLinter-gcc did not work afterwards, so I removed it and reinstalled it. It still does not work.
Did you update your SL's settings after upgrade to SL4? Or, could you paste your SL's settings here if you dont mind?
I did not update my settings so I'm using the default SL4 settings.
In that case, I am afraid that there is no settings at all for all your linters.
SL4 auto-backups your old settings file because it's a BC break, but SL4 won't generate a new settings file and you have to do that manually. You may read the how to upgrade
section (the last section) in https://git.io/vA9ei.
Here's my SL4 settings for your reference.
{
"debug": false,
"delay": 0.3,
"gutter_theme": "none",
"lint_mode": "background",
"linters": {
"gcc": {
"disable": false,
"args": [],
"c++_executable": "g++",
"c++_extra_flags": "-std=c++17",
"c_executable": "gcc",
"c_extra_flags": "-std=c90",
"excludes": [],
"include_dirs": [
"${project_folder}/include",
"C:\\boost\\include\\boost-1_66",
"/usr/local/include",
"/usr/local/halide/include",
"/usr/local/systemc-2.3.1/include"
]
},
},
}
Thanks. I'll give that a try. SL4 broke too many things so I reverted back to SL3 for now.
Please report back if you try again later and it still doesn't work.
@mandeep Ping. I wonder if you still using SL3 now?
@jfcherng I'm still on SL3 since it works fine for me and some of the linter plugins I use are still on SL3. I'll let you know when I upgrade though.
SublimeLinter recently upgraded to version 4. I'm now seeing the plugin crash. I've pasted the output from the Sublime Text debug console below: