This repository was archived by the owner on Aug 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,21 @@ const regex = /(.+):(\d+):(\d+):(?:{(\d+):(\d+)-(\d+):(\d+)}.*:)? ([\w \\-]+): (
11
11
export default {
12
12
activate ( ) {
13
13
require ( 'atom-package-deps' ) . install ( 'linter-clang' ) ;
14
+
15
+ // FIXME: Remove backwards compatibility in a future minor version
16
+ const oldPath = atom . config . get ( 'linter-clang.execPath' ) ;
17
+ if ( oldPath !== undefined ) {
18
+ atom . config . unset ( 'linter-clang.execPath' ) ;
19
+ if ( oldPath !== 'clang' ) {
20
+ // If the old config wasn't set to the default migrate it over
21
+ atom . config . set ( 'linter-pylint.executablePath' , oldPath ) ;
22
+ }
23
+ }
24
+
14
25
this . subscriptions = new CompositeDisposable ( ) ;
15
26
this . subscriptions . add (
16
- atom . config . observe ( 'linter-clang.execPath ' , ( value ) => {
17
- this . execPath = value ;
27
+ atom . config . observe ( 'linter-clang.executablePath ' , ( value ) => {
28
+ this . executablePath = value ;
18
29
} ) ,
19
30
) ;
20
31
this . subscriptions . add (
@@ -150,7 +161,7 @@ export default {
150
161
cwd : projectPath ,
151
162
} ;
152
163
153
- const output = await helpers . exec ( this . execPath , args , execOpts ) ;
164
+ const output = await helpers . exec ( this . executablePath , args , execOpts ) ;
154
165
155
166
if ( editor . getText ( ) !== fileText ) {
156
167
// Editor contents have changed, tell Linter not to update results
Original file line number Diff line number Diff line change 12
12
"atom" : " >=1.4.0 <2.0.0"
13
13
},
14
14
"configSchema" : {
15
- "execPath " : {
15
+ "executablePath " : {
16
16
"type" : " string" ,
17
17
"default" : " clang"
18
18
},
You can’t perform that action at this time.
0 commit comments