Giter VIP home page Giter VIP logo

Comments (9)

higorhi avatar higorhi commented on July 17, 2024 1

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.

hebaishi avatar hebaishi commented on July 17, 2024

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.

emilydolson avatar emilydolson commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

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:

  1. Enable linter-gcc's debugging messages in the configuration page
  2. Open the developer console by pressing Ctrl+Shift+I
  3. Lint a C/C++ file by saving it/using lint on-the-fly.
  4. 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.

hebaishi avatar hebaishi commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

Hello. Any updates on the errors?

from linter-gcc.

emilydolson avatar emilydolson commented on July 17, 2024

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.

higorhi avatar higorhi commented on July 17, 2024

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.

eencae avatar eencae commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.