Comments (7)
Um, you're welcome? :)
from linter-clang.
Um, you're welcome? :)
@Max-Hollywood Whoops, I tagged the wrong person and never came back here. Here I am two years later. Lol, thanks for your help with whatever this was about :)
from linter-clang.
If you open up a file you are expecting an error message on and run Linter: Debug
from the Command Palette, what information are you given?
from linter-clang.
@Arcanemagus , I've been using Atom for ages now, and I had no idea what a Command Palette (CTRL SHIFT P)
was until I just Googled it. @TheShark27 is "totally new to Atom". I also am having trouble getting any C++ linting/clang-ing working. I got an error saying clang failed to spawn, so I did sudo apt-get install clang
, and made sure that all of linter's dependencies were installed when it asked for them.
my output from linter:debug is
Platform: linux
Atom Version: 1.35.1
Linter Version: 2.3.0
Opened file is ignored: No
Matching Linter Providers:
Disabled Linter Providers:
Standard Linter Providers:
Indie Linter Providers:
- GCC (after installing linter-gcc by tvincent056)
UI Providers:
- Linter
Ignore Glob: **/*.min.{js,css}
VCS Ignored Paths are excluded: true
Current File Scopes:
- *
- source.cpp
- punctuation.section.parens.end.bracket.round
Solution: On further investigation (this is the second night I've spent doing this):
- linter-gcc by hebaishi doesn't work
- linter-gcc2 by tvincent056 seems to work
- atom-clang by joeroback won't even install
I could run lint by going into the command palette and doing "linter lint".
After a moment the "on the fly" option started working.
EDIT: after crashing Atom with a file too large... I restarted, and using the command palette linter didn't work, and said nothing was there. So I opened the preferences and had a look at the linter settings, and went back to the file and lint returned - so I think it just takes a short time for it to "start" after atom starts, or after the file is opened.
Hope this helps.
EDIT # 2.5: I was curious as to why sometimes it didn't "lint". Turns out, either linter or linter-gcc2 doesn't check inside #ifdef #endif
s. My assignment I just submitted was all about conditional compilation, so most of the cpp files are inside #ifdefs, so it didn't lint at all.
from linter-clang.
Matching Linter Providers:
Disabled Linter Providers:
Standard Linter Providers:
Indie Linter Providers:
- GCC (after installing linter-gcc by tvincent056)
This is saying that either you don't have linter-clang
installed when you ran that, or you have the package disabled.
linter-gcc by hebaishi doesn't work
linter-gcc2 by tvincent056 seems to work
This is a known issue with linter-gcc
, which is why it was forked to linter-gcc2
.
atom-clang by joeroback won't even install
This repo has been archived so I'm not surprised it's broken.
I could run lint by going into the command palette and doing "linter lint". After a moment the "on the fly" option started working.
I was curious as to why sometimes it didn't "lint". Turns out, either linter or linter-gcc2 doesn't check inside #ifdef #endifs. My assignment I just submitted was all about conditional compilation, so most of the cpp files are inside #ifdefs, so it didn't lint at all.
It sounds like the scope ("language") of the code was changed inside those #ifdef
blocks to something not recognised.
from linter-clang.
Linter: Debug
Just like @Arcanemagus us I didn't know what command palette was, but here's the information it gave me:
Platform: win32
Atom Version: 1.35.1
Linter Version: 2.3.0
Opened file is ignored: No
Matching Linter Providers:
Disabled Linter Providers:
Standard Linter Providers:
Indie Linter Providers:
UI Providers:
- Linter
Ignore Glob: **/*.min.{js,css}
VCS Ignored Paths are excluded: true
Current File Scopes:
- *
- source.cpp
Sorry for the late response.
from linter-clang.
Hey @Arcanemagus, thanks a lot! linter-gcc2 by tvincent056 works indeed, I'll be using it if we can't find a solution.
from linter-clang.
Related Issues (20)
- Linter constantly crashing HOT 2
- Error running clang HOT 1
- Why doesn't linter report errors while using #include <bits/stdc++.h> ?
- Linter sees error although it compiles all right | template function
- [Linter] Error running clang Error: Process execution timed out HOT 9
- An in-range update of eslint is breaking the build 🚨 HOT 7
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 7
- no member named 'forward' in namespace 'std' error
- An in-range update of atom-package-deps is breaking the build 🚨 HOT 1
- error running clang HOT 3
- Linter-clang not working with SYSTEM include directories
- Enhancement request - automatically add to PATH HOT 2
- Linter-Clang 'Fix' Recommendations Applying Faulty Corrections
- linter does not work when Tree Sitter Parsers are enabled HOT 1
- Error when declaring a function with a custom (typedef or struct) parameter
- Failed to spawn command 'clang' HOT 2
- Does not highlight errors when file includes circular dependency
- [SOLVED] Error running clang HOT 1
- Dependency Dashboard
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-clang.