niosus / EasyClangComplete

:boom: Robust C/C++ code completion for Sublime Text 3/4
https://niosus.github.io/EasyClangComplete/
MIT License
575 stars 79 forks source link

WSL support #445

Open Mrkol opened 6 years ago

Mrkol commented 6 years ago

Is it possible to painlessly add support for the Windows Subsystem for Linux (previously known as bash on ubuntu on windows)? Due to specific circumstances I have to compile my project through the WSL cmake and clang, but autocomplete via the windows binaries, therefore having to duplicate each library for both platforms. Visual studio code has recently implemented it, implying that it is theoretically possible and might not even be that hard.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/56185885-wsl-support?utm_campaign=plugin&utm_content=tracker%2F32731927&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F32731927&utm_medium=issues&utm_source=github).
niosus commented 6 years ago

That sounds good and would be cool to have, but I definitely won't have time to dive into that. Also, I am by far not an expert in Windows. If anybody would want to look into that and do a nice PR, I will look into it.

niosus commented 5 years ago

I will close this but keep it in the backlog. If someone wants to contribute to this, just reopen it.

kiwec commented 4 years ago

Workaround for the lazy (like me) :

{
    "use_libclang": false,
    "clang_binary": "clang-wsl"
}
llan-ml commented 2 years ago

Hi @kiwec , does this still work for you? I tried this but no completion results show.

kiwec commented 2 years ago

Hi @kiwec , does this still work for you? I tried this but no completion results show.

Sorry, I dropped windows permanently :smile: Can't help you :yum:

niosus commented 2 years ago

I'm lazily working on this now. Basically, we will have to add another setting like "use WSL" or smth. This way, sublime text installed on Windows would be able to use all the tools installed on WSL, like clang, cmake etc. This essentially requires only the following things to be implemented: