by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ben Jackson
    @puremourning
    ( flaky behaviour ( which makes sense ) ) <== ben diagram
    Ben Jackson
    @puremourning
    Ok the vimspector thing is a vim bug vim/vim#7035
    kadir ├žetinkaya
    @kadircet
    VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 19 2019 14:03:20)
    Included patches: 1-2269
    i can try with the legacy api to see if the issue still comes up
    and i liked your diagram
    it is always nice to see things that makes sense
    Enrico Maria De Angelis
    @Aster89
    Good evening :)
    Concerning my attempts to have Haskell command completion working, given how it works for me and what someonelse sees (that is not ycm, it's vim-lsp + set omnifunc=lsp#complete), I suspect I haven't set things up the right way. Any suggestions?
    NGUYEN Chi Thanh
    @ctnguyen
    Hi everyone
    I am working mainly on C++ and python source code, I like vim a lot to edit text. But still need tools to analyse code. It seems YCM is the best choice for that
    I just need the similar functionality in IDE, i.e I can 'go to declaration' or 'go to definition' for any symbol. Those symbols can be in standard and third party libraries, somewhere in my local machine
    It seems the default behavior of YCM can only lookup for file inside the same source directory. I guess there are a way to config YCM so it can lookup files outside of the source directory
    Enrico Maria De Angelis
    @Aster89
    As far as I know, you need the compile_commands.json file for your build
    NGUYEN Chi Thanh
    @ctnguyen
    I did tried to config the file ycm_global_ycm_extra_conf.py using option 'sys_path', but it seems not working.
    that , problem is I am on windows
    so won't have this compile_commands.json
    Enrico Maria De Angelis
    @Aster89
    If you have that JSON file, then YCM can take advantage of that to know where to look for files
    Oh...
    Ok
    Sorry, I don't know how to help you then, but probably the YCM GitHub page has something on it, no?
    Ben Jackson
    @puremourning
    @ctnguyen don't use an extra_conf file for C++, just generate a compile_commands.json and put it in the root of your project. that will give you project-wide index
    NGUYEN Chi Thanh
    @ctnguyen
    I've seen that YCM can parse the solution file for microsoft visual studio, but it is available only for C#
    Ben Jackson
    @puremourning
    make sure you're using clangd install.py --clangd-completer
    NGUYEN Chi Thanh
    @ctnguyen
    I did install.py --all
    Ben Jackson
    @puremourning
    documentation in the README in the section "C-family semantic completion"
    ok --all will be clangd
    so you just need to not use an extra conf file, and use a compilation database instead
    NGUYEN Chi Thanh
    @ctnguyen
    ok
    how can I generate that compilation database if I'm on windows?
    or there are no way?
    Ben Jackson
    @puremourning
    i take it you're not using cmake ?
    NGUYEN Chi Thanh
    @ctnguyen
    yes I do use cmake
    Ben Jackson
    @puremourning
    then instructions in teh README
    NGUYEN Chi Thanh
    @ctnguyen
    but the compilation database is only for Linux Make file
    Ben Jackson
    @puremourning
    -DEXPORT_COMPILE_COMMANDS=ON
    NGUYEN Chi Thanh
    @ctnguyen
    https://cmake.org/cmake/help/v3.5/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html
    This option is only for Linux using Makefile generator.
    Ben Jackson
    @puremourning
    any reason you can't just specify -G "Unix Makefiles" just to create the compilation database ?
    you haven't said which generator you're using
    NGUYEN Chi Thanh
    @ctnguyen
    the reason is I am on Windows
    And I have to use the generator -G"Visual Studio 16 2019" -A x64. That is the only way the cmake command works, and it need to lookup for std header files in Visual Studio as well
    Ben Jackson
    @puremourning
    try googling
    i've used this in the past but don't know if it works for visual studio https://github.com/nickdiego/compiledb
    NGUYEN Chi Thanh
    @ctnguyen
    ok, thanks
    Maybe I'll find a way to export the compilation database from visual studio files
    maybe
    i would be surprised if it wasn't possilbe
    NGUYEN Chi Thanh
    @ctnguyen
    sure, I will be possible. I just wonder if someone had already this experience that can make it quicker
    Ben Jackson
    @puremourning
    almost certainly
    NGUYEN Chi Thanh
    @ctnguyen
    worst case brute force, I can write my own script to parse all MVSC files and export the compilation database format
    thanks for the link, it seems what I need