GLIBC 2.18 dependency
This was copied from the reviews on the extension page. Not sure if it is a language service issue, or a debugger issue.
Workaround described in https://github.com/Microsoft/vscode-cpptools/issues/19#issuecomment-266168029 still works, but now you have to edit the file /out/src/LanguageServer/client.js instead of C_Cpp.js
@s-martin, there were actually only about 40 machines affected. However, the effect on these machines was so severe that it warranted an emergency patch. Thanks for the reminder about the change in file name. I updated the comment above with the correct file name.
I'm sorry for your frustration, but you must not have noticed that I added this to the December 2017 milestone. Keep calm 👑 Support is coming! 😉
@bobbrow Appreciate it! Thanks!
We have an 0.14.4-insider release that works on CentOS7 (64-bit, not 32-bit): ~~[link removed, this is fixed in mainline builds as of 0.14.4]~~. VS Code itself doesn't expose a way for extensions to publish "insider" releases, so you just need to download the .vsix and run the "Install from VSIX" command. If you hit bugs, please file a new issue (or upvote an existing one) and mention you're on 0.14.4-insider, and we might be able to fix the bugs before releasing the non-insider build. The release also fixes additional bugs listed in our December milestone: https://github.com/Microsoft/vscode-cpptools/milestone/7 , except for the 32-bit issue which we're still working on.
Confirm that the 0.14.4-insider is working nicely on Red Hat EL 7.4.
Works fine on Centos 7.3. Good job!
Visual Studio Code still needs libraries: libXss.so.1 that is available in libXScrnSaver
If you get, code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory try, $ yum install libXScrnSaver
$ ldd Microsoft.VSCode.CPP.Extension.linux linux-vdso.so.1 => (0x00007ffe155fa000) libm.so.6 => /lib64/libm.so.6 (0x00007f459e4dd000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f459e2c1000) libc.so.6 => /lib64/libc.so.6 (0x00007f459deff000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f459dcfb000) librt.so.1 => /lib64/librt.so.1 (0x00007f459daf3000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f459d8dc000) /lib64/ld-linux-x86-64.so.2 (0x00007f459e7fa000) $ cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
@Ebiroll What do you mean by "Code still needs libraries"? Is this something our extension should fix? I didn't see that error on my CentOS7 and I didn't run the "yum install libXScrnSaver".
Thanks. I'll check it out!
@sean-mcmanus Sorry, to be more specific there exist a not so obvious dependency from Visual Studio Code to libXss.so.1 that is available in libXScrnSaver. This should probably not be a problem if you install from the rpm. The extension seems to work fine under redhat/centos.
CentOS 7.4:
I had first to deinstall the 0.14.3 extension and then after a restart install the 0.14.4.-insider, but now it works seamless.
I want to say thank you to finally fixing this, even if RHEL/CentOS was not your targeted audience.
I tried installing using
code --install-extension cpptools-linux.vsix
It reported installation was successful. Then when I opened Code, it auto-downloaded an older version, installed that one, and promptly displayed "The language server crashed 5 times..."
As others have mentioned, the 0.14.3 version needs to be uninstalled or VS Code will continue to use the old one instead.
@GabeAl I'm not observing that behavior on my CentOS machine? What OS are you using? For me, the 0.14.4-insider stays installed...did you have the 0.14.3 version installed previously?
@s-martin Thanks to everyone who complained. We try to use user feedback to help prioritize our work.
works perfectly now.
On Mon, Dec 4, 2017 at 12:56 PM, Sean McManus [email protected] wrote:
Ah, yeah -- as others have mentioned, the 0.14.3 version needs to be uninstalled or VS Code will continue to use the old one instead.
@GabeAl https://github.com/gabeal I'm not observing that behavior on my CentOS machine? What OS are you using? For me, the 0.14.4-insider stays installed...did you have the 0.14.3 version installed previously?
@s-martin https://github.com/s-martin Thanks to everyone who complained. We try to use user feedback to help prioritize our work.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vscode-cpptools/issues/19#issuecomment-349102461, or mute the thread https://github.com/notifications/unsubscribe-auth/AKW214IDM9-RX6jBs3ZT6wei01u3bPmPks5s9FxlgaJpZM4ILN70 .
thank you so much!!!!
On Mon, Dec 4, 2017 at 2:51 PM, Carl Hua [email protected] wrote:
works perfectly now.
On Mon, Dec 4, 2017 at 12:56 PM, Sean McManus [email protected] wrote:
Ah, yeah -- as others have mentioned, the 0.14.3 version needs to be uninstalled or VS Code will continue to use the old one instead.
@GabeAl https://github.com/gabeal I'm not observing that behavior on my CentOS machine? What OS are you using? For me, the 0.14.4-insider stays installed...did you have the 0.14.3 version installed previously?
@s-martin https://github.com/s-martin Thanks to everyone who complained. We try to use user feedback to help prioritize our work.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vscode-cpptools/issues/19#issuecomment-349102461, or mute the thread https://github.com/notifications/unsubscribe-auth/AKW214IDM9-RX6jBs3ZT6wei01u3bPmPks5s9FxlgaJpZM4ILN70 .
Thanks for pointing that out -- no, I had a version earlier than 0.14.3 installed when I tried the 0.14.4 preview. I tried uninstalling and re-installing. I'm on CentOS 7.4.

It seems this is the correct version but still crashes.
Thinking back, I had used one of the earlier workarounds before which could be causing trouble now. I had forgotten about this because even though the workaround worked at the time, the plugin kept auto-updating and I ignored it since then, thinking all of the workaround had been un-done.
Is there a way to completely purge VS-code and re-install anew? I can try yum remove, but I think there might be some lingering config files/directories in the system along with the workaround's hacked execution scripts.
Removing and re-installing code with yum, and clearing ~/.vscode did the trick. I saw cpptools roar triumphantly to life. :hamburger:
Now I'm off to excitedly explore how to use it. Currently it chokes when it sees the #include for immintrin.h (the x86 assembly intrinsics), which seems to be keeping other declarations from showing up (no tooltips for malloc, etc until I comment it out). I have a feeling this is a different issue (something about includePaths), but thought I'd post just for completeness!
Thanks again!
Thanks for addressing this issue.
I can confirm, it works great on CentOS 7.4, glibc 2.17. In fact, it's running faster than when I was using the workaround.
Thanks for fixing this! It makes my job easier...