Comments (9)
It seems that disabling linting on-the-fly solves the problem, though I don't have any auto-saving packages (I uninstalled gpp-compiler), as is warned in the setting's description.
Thanks for the help, again.
from linter-gcc.
I've cloned the repo and it works fine for me. I think it's just a path issue. This is my linter-gcc config:
{
"execPath": "g++",
"gccIncludePaths": "./include",
"gccSuppressWarnings": false,
"gccDefaultCFlags": "-c -Wall",
"gccDefaultCppFlags": "-c -Wall -Wextra -Wpedantic -std=c++14 -o /dev/null",
"gccErrorLimit": -1,
"gccErrorString": "error",
"gccWarningString": "warning",
"gccNoteString": "note"
}
Could you please try using the same config and seeing if it works. The most important option here is gccIncludePaths
.
from linter-gcc.
I tried using that config, but I'm still getting the same errors. I updated Atom to the latest version and the number of issues went down from ~250 to 56. Adding "./*" to the include path made the "File not found" error in my .cc file go away, but there are still some other seemingly erroneous "File not found" errors (for instance "tools/vector.h" is never found).
from linter-gcc.
Sorry for the late response.. I've been a bit busy. If you're still having the problem of missing files, could you do the following:
- Enable linter-gcc's debugging messages in the configuration page
- Open the developer console by pressing
Ctrl+Shift+I
- Lint a C/C++ file by saving it/using lint on-the-fly.
- Report the linter-gcc command that is printed to the console. Also paste the command into the terminal to check the output,
from linter-gcc.
Hello. Have you managed to get the problem fixed? If not, could you please follow the instructions above and report the linter-gcc command?
from linter-gcc.
Hello. Any updates on the errors?
from linter-gcc.
Sorry for the delay in getting back to you - I've been traveling. It looks like it's working now. The update must have fixed it. Thanks!
from linter-gcc.
I now have a similar problem. I have two files, List.h and test.cpp, in the same folder. The linter is reporting, for the test.cpp file, the error "List.h: No such file or directory", though it compiles just fine with g++ through command lines and through gpp-compiler in Atom.
I'm not a very experienced programmer, but I really like Atom and would appreciate to continue using it, but I see these errors might be getting in my way, because they prevent the package from linting the rest of my code, for some reason.
I'd appreciate some help! Thanks.
from linter-gcc.
Adding -I (uppercase i, not lowercase L) to the compile flags tells the compiler where to find the header files and solves the "No such file or directory" problem.
from linter-gcc.
Related Issues (20)
- Linter isn't showing issues (c/c++) HOT 2
- it stops working since the 1.34.0 atom update HOT 2
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 2
- linter-gcc doesn't work HOT 4
- consider this project dead if this issue is not removed (latest commit was on 2017 jan) HOT 3
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 2
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 2
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Object.dirname is deprecated.
- Uncaught TypeError: Cannot read property 'binary' of undefined
- Relative paths are relative to Atom's $PWD, not the project root
- string variables not highlighted
- Colors in the linter panel
- I cant install atom linter gcc.its shows"npm WARN deprecated [email protected]: No longer maintained - Use lodash probably npm ERR! Unexpected end of JSON input while parsing near '...MGZNbL9YcGBJl4MH4nrxH' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\stark siv\.atom\.apm\_logs\2020-12-26T17_25_37_936Z-debug.log" A little help is appreciated,♥ HOT 2
- Just want my GCH address for open sea? HOT 1
- Cannot find module 'tempfile'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter-gcc.