Open pradiptlx opened 6 years ago
I think after i install platformio, its breaks the linter, but i dont understand why
This bug still present if i create a new file and set to C or C++ and then type something, the error appears. Before install platformio, it didn't happen
EDIT: the error is not present if i save file to .c or .cpp.
This is console log when i didn't save file before but change language to C directly.
<embedded>:1 Uncaught Error: Cannot find module '.gcc-flags.json' at Module._resolveFilename (module.js:470:15) at Module._resolveFilename (/usr/share/atom/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.get_Module._resolveFilename (/usr/share/atom/resources/app/src/module-cache.js:354:58) at Module.require (file:///usr/share/atom/resources/app.asar/static/index.js:40:43) at require (/usr/share/atom/resources/app/src/native-compile-cache.js:66:33) at Object.module.exports.settings (/home/prdpt/.atom/packages/linter-gcc/lib/config.js:49:25) at Object.buildCommand (/home/prdpt/.atom/packages/linter-gcc/lib/utility.js:127:23) at Object.lint (/home/prdpt/.atom/packages/linter-gcc/lib/main.js:110:36) at /home/prdpt/.atom/packages/linter-gcc/lib/main.js:180:26 Module._resolveFilename @ module.js:470 Module._resolveFilename @ /usr/share/atom/resources/electron.asar/common/reset-search-paths.js:35 get_Module._resolveFilename @ <embedded>:12240 Module.require @ index.js:40 require @ <embedded>:11585 module.exports.settings @ /home/prdpt/.atom/packages/linter-gcc/lib/config.js:49 buildCommand @ /home/prdpt/.atom/packages/linter-gcc/lib/utility.js:127 lint @ main.js [sm]:110 (anonymous) @ main.js [sm]:180 setTimeout (async) lintOnTheFly @ main.js [sm]:173 module.exports.Emitter.simpleDispatch @ <embedded>:65891 module.exports.Emitter.emit @ <embedded>:66007 module.exports.TextBuffer.emitDidStopChangingEvent @ <embedded>:34317 later @ <embedded>:78443 setTimeout (async) (anonymous) @ <embedded>:78449 module.exports.TextBuffer.emitDidChangeTextEvent @ <embedded>:34294 module.exports.TextBuffer.transact @ <embedded>:33582 transact @ <embedded>:4142 mergeIntersectingSelections @ <embedded>:3689 mergeSelections @ <embedded>:5525 mergeIntersectingSelections @ <embedded>:5496 mutateSelectedText @ <embedded>:3688 insertText @ <embedded>:3654 object.(anonymous function) @ <embedded>:17476 didTextInput @ <embedded>:8573
And this is when i save first then edit something.
/home/prdpt/.atom/packages/linter-gcc/lib/config.js:43 linter-gcc: Using configuration page settings
Atom: 1.23.1 x64 Electron: 1.6.15 OS: Ubuntu 16.04.3 Thrown From: linter-gcc package 0.7.1
Stack Trace
Uncaught Error: Cannot find module '.gcc-flags.json'
Commands
Non-Core Packages