platformio 保存工程偶尔会出错,右侧会出现一堆红色报错打印:
linter-gcc: Executable not found
"/usr/bin/g++" not found
然后一堆js什么巴拉巴拉。gg了好久,有说改js的,也有改 MinGW 的,但是都不是问题的重点。
最后发现问题发生在这个文件里: .gcc-flags.json 具体可以参考 linter-gcc 仓库 readme 中对该文件的描述。
https://github.com/hebaishi/linter-gcc
"/usr/bin/g++" not found
本文探讨了PlatformIO在保存工程时出现的错误提示“linter-gcc:Executable not found”及“/usr/bin/g++ not found”的解决方法。通过定位问题到.gcc-flags.json文件,并参考linter-gcc仓库的说明,最终解决了该问题。
4527

被折叠的 条评论
为什么被折叠?



