Comments (13)
The end goal is to make cquery as easy as possible, ie, just install the extension and it mostly works. If an include is not found we give a diagnostic to add an -I directive (ideally almost automatically, ie, user just clicks "Yes"), etc. The best support is of course if you generate a compile_commands.json file, but most people will not want to spend the effort on that.
from cquery.
Haha I could've filed it here instead 😛
from cquery.
echo clang++ > .cquery
?
from cquery.
why not have it as default if no .cquery is found?
from cquery.
Do you mean assume there is a .cquery
for a single-file project?
from cquery.
@MaskRay yes! The official plugin of c/c++ does the same and I really like that behavior
from cquery.
There will have to be a global configuration file if non-project file is to be supported.
from cquery.
I think we can do a pretty good job with defaults outside of global config? I'm fine with adding a global config too
from cquery.
I think cquery --language-server
can run in a graceful degradation mode: no -I
, no cache, ... But how will language clients handle non-project files?
I don't like global config because it complicates code.
from cquery.
I think the only question w.r.t. non-project files is where to store them in the cache directory, and so long as we put them under the workspace directory the language server is initialized I think everything should mostly work fine.
I don't think global config will be too much complication but I don't see a reason to add it unless there is a specific need that cannot otherwise be solved.
from cquery.
Is there initializationOptions
w.r.t non-project files?
from cquery.
Is there initializationOptions w.r.t non-project files?
What do you mean? It should use the same instance of cquery as is already running in the editor session.
from cquery.
I think it now works without .cquery or compile_commands.json
from cquery.
Related Issues (20)
- Failed normalize path
- Is this project dead? HOT 17
- unterminated conditional directive
- build err on windows 10 HOT 1
- cquery build issue with CMAKE_INSTALL_PREFIX option HOT 1
- [Question] Is there any solution that cquery can work with makefile? HOT 2
- Allow multiple compile_commands.json HOT 1
- [LC] sending on a disconnected channel
- Could cquery listen on a port?
- Delete previously removed/currently broken wiki page
- Suggestion: apt repository
- Suggestion: cquery cannot parse `includePath` with space
- Why does cquery build download clang 7 when it is already installed? HOT 1
- Install on RPi tries to download and run x86_64 clang HOT 2
- build failed in mac 10.14.6
- Failed to parse --init as JSON: Missing a name for object member. (1) HOT 1
- Suggesting alternative projects due to development inactivity
- Two folders in the cache directory for the same project root
- Checksums fail on Fedora 30 HOT 1
- Demo link on readme page is not working
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 cquery.