Skip to content
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

Error: Attempting to use languageClient before initialized #12305

Closed
kjeremy opened this issue May 14, 2024 · 3 comments
Closed

Error: Attempting to use languageClient before initialized #12305

kjeremy opened this issue May 14, 2024 · 3 comments
Assignees
Labels
Language Service more info needed The issue report is not actionable in its current state

Comments

@kjeremy
Copy link

kjeremy commented May 14, 2024

Type: Bug

Load any C++ project and watch the extension restart multiple times and fail.

Extension version: 1.20.5
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:16:23.416Z)
OS version: Linux x64 6.6.30
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz (4 x 2592)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 0
Memory (System) 31.31GB (29.15GB free)
Process Argv --extensions-dir /nix/store/v60v006a10njca2i97bhny5fi4p9v50j-vscode-extensions/share/vscode/extensions .
Screen Reader no
VM 100%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelc:31018788
dsvsc021:30996838
9c06g630:31013171
pythoncenvptcf:31043158
fchga941:31046352
pythonprt:31039817
dwnewjupytercf:31046870

@kjeremy
Copy link
Author

kjeremy commented May 14, 2024

This might be nixos specific

@browntarik
Copy link
Contributor

Could you please provide more information about when this issue occurs?

  1. Are you simply attempting to open a C++ file?
  2. Does the issue persist when all other extensions are disabled?

@browntarik browntarik self-assigned this May 20, 2024
@browntarik browntarik added Language Service more info needed The issue report is not actionable in its current state labels May 20, 2024
@kjeremy
Copy link
Author

kjeremy commented May 23, 2024

The issue was in that the interpreter for the cpptools* binaries was getting overridden by nixos's autoPatchelfHook.

@kjeremy kjeremy closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Service more info needed The issue report is not actionable in its current state
Projects
None yet
Development

No branches or pull requests

2 participants