Code Monkey home page Code Monkey logo

Comments (13)

jacobdufault avatar jacobdufault commented on May 30, 2024 1

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.

agauniyal avatar agauniyal commented on May 30, 2024

Haha I could've filed it here instead 😛

from cquery.

MaskRay avatar MaskRay commented on May 30, 2024

echo clang++ > .cquery ?

from cquery.

agauniyal avatar agauniyal commented on May 30, 2024

why not have it as default if no .cquery is found?

from cquery.

MaskRay avatar MaskRay commented on May 30, 2024

Do you mean assume there is a .cquery for a single-file project?

from cquery.

agauniyal avatar agauniyal commented on May 30, 2024

@MaskRay yes! The official plugin of c/c++ does the same and I really like that behavior 😄

from cquery.

MaskRay avatar MaskRay commented on May 30, 2024

There will have to be a global configuration file if non-project file is to be supported.

from cquery.

jacobdufault avatar jacobdufault commented on May 30, 2024

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.

MaskRay avatar MaskRay commented on May 30, 2024

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.

jacobdufault avatar jacobdufault commented on May 30, 2024

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.

MaskRay avatar MaskRay commented on May 30, 2024

Is there initializationOptions w.r.t non-project files?

from cquery.

jacobdufault avatar jacobdufault commented on May 30, 2024

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.

MaskRay avatar MaskRay commented on May 30, 2024

I think it now works without .cquery or compile_commands.json

from cquery.

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.