Giter VIP home page Giter VIP logo

Comments (5)

MaskRay avatar MaskRay commented on July 29, 2024

Do you mean Windows + MSYS2-MinGW64 GCC8 + MSYS2 clang/llvm ?

Suppose your build directory is ccls/Release. Run ccls/Release/ccls -help in a shell and see if it exits normally.

from emacs-ccls.

kenkangxgwe avatar kenkangxgwe commented on July 29, 2024

Yes, it is Windows + MSYS2-MinGW64 GCC 8.2.0 + MSYS2 clang/llvm 6.0.1.
It does exit without any error. It gives me:

PS D:\Projects\ccls\release> .\ccls.exe -help
OVERVIEW: C/C++/Objective-C language server

See more on https://github.com/MaskRay/ccls/wiki
USAGE: ccls.exe [options] extra

OPTIONS:

General options:

  -h                          - Alias for -help
  -init=<string>              - extra initialization options
  -log-file=<filename>        - log
  -log-file-append=<filename> - log
  -test-index=<string>        - run index tests
  -v=<int>                    - verbosity

Generic Options:

  -help                       - Display available options (-help-hidden for more)
  -help-list                  - Display list of available options (-help-list-hidden for more)
  -version                    - Display the version of this program

from emacs-ccls.

MaskRay avatar MaskRay commented on July 29, 2024

Make sure to use the correct -DLLVM_ENABLE_RTTI=on (or off) option.

See recommended configure options for various systems here https://github.com/MaskRay/ccls/wiki/Getting-started

Once you get Windows build working, could you please put some instructions there?

from emacs-ccls.

kenkangxgwe avatar kenkangxgwe commented on July 29, 2024

Ok, I will try.


Update:
I finally manage to enable the ccls server by replacing every \\ in the compile_commands.json to /.
Is it able to support \\ as the seperator of path?

from emacs-ccls.

MaskRay avatar MaskRay commented on July 29, 2024

This might be some Windows path normalization issue that @Riatre knows about.

LSP uses file:// style path names. So although JSONCompilationDatabase::getCompileCommands returns \-style (llvm::sys::path::native) paths, it might be better to change that back to /.

https://github.com/llvm-mirror/clang/tree/master/lib/Tooling/JSONCompilationDatabase.cpp#L220
https://github.com/llvm-mirror/llvm/tree/master/lib/Support/Path.cpp#L557

from emacs-ccls.

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.