-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLIBC 2.18 dependency #19
Comments
Maybe it is because of `GLIBC_2.18' dependency? ldd bin/Microsoft.VSCode.CPP.Extension.linux |
I verified that the Debugger works on CentOS. @sridmad , I think this is a language service issue. |
I'm using RHEL 7, but see the same thing. The debugger works as expected, but I don't have Go to Definition, etc. and .browse.VC.db never gets created. I also see the GLIBC_2.18 error with ldd on the extension (RHEL 7's GLIBC version is 2.17) |
Symbol searches or go to definition does not work at all. Language service is not working at all. I am using Centos 7.2 and latest version of VS Code downloaded today. Version of my glibc is 2.17 and I get same error as other user reported about glibc. If anyone worked around this issues please post it. |
I just saw that this issue is first opened on April 19, and there is no acknowledgement on this issue. I.e. NO HOPE of being resolved anytime soon. Will go back to eclipse. It is really shame that this is not tested on Centos 7 given it is announced on their website. This kind of false claims often wastes many people's time. |
@desimonk @sridmad, @greazer: it looks like users are having issues because the language service is linked against glibc 2.18. Is it possible to use a lower version? |
Same story here. Preventing me from really using on RHEL7.2 |
For those that would like to run vscode-cpptools on CentOs/RHEL 7 while we wait for devs to address this issue.
Change the following line from " extensionsProcessName += '.linux'; " to " extensionProcessName += '.linux.sh'; " |
Yes ampatel21 tip works on centos7. I did the following: Version 0.9.2 still have not fixed this issue but also works with step2 and the following contents.. /opt/glibc-2.18/lib/ld-linux-x86-64.so.2 --library-path /opt/glibc-2.18/lib:/lib64:/usr/local/lib64 ~/.vscode/extensions/ms-vscode.cpptools-0.9.2/bin/Microsoft.VSCode.CPP.Extension.linux |
Thanks, this workaround worked for me on Scientific Linux 7.2 (still ships with Glibc 2.17 for some reason). The only thing missing from your steps is to make sure to chmod +x the new script. |
Thanks, the workaround works for CentOS 7.2. At least I finally get the lightbulb and "Add include path to settings" for my includes. |
With the 0.9.3 it seems that both GLIBC_2.18 & GLIBC_2.17 is required.
|
Although the provided workarounds fix the issues, are there any plans to address the root cause of this issue? The workarounds have to be redone every time the cpptools extension is updated. |
v 0.9.3 still not working under Centos, unless you use the workaround. |
We have an 0.14.4-insider release that works on CentOS7 (64-bit, not 32-bit): |
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 $ ldd Microsoft.VSCode.CPP.Extension.linux |
@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. |
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 ***@***.***> 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
<#19 (comment)>,
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 ***@***.***> wrote:
works perfectly now.
On Mon, Dec 4, 2017 at 12:56 PM, Sean McManus ***@***.***>
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
> <#19 (comment)>,
> 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. 🍔 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... |
The insider version is now working for me on RedHat 7.4, thanks a lot for resolving this! |
Fixed with 0.14.4. |
We recommend uninstalling the 0.14.4-insider version of the extension and installing the official 0.14.4 version now. I will remove the link to the insider version from this thread. |
Thank you. The fix works awesomely! :) |
Yay same here ! |
This was copied from the reviews on the extension page. Not sure if it is a language service issue, or a debugger issue.
The text was updated successfully, but these errors were encountered: