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: spawn ENAMETOOLONG upon sending any prompt #6929

Open
asyte opened this issue Feb 4, 2025 · 5 comments
Open

Error: spawn ENAMETOOLONG upon sending any prompt #6929

asyte opened this issue Feb 4, 2025 · 5 comments
Assignees
Labels
bug Something isn't working repo/cody

Comments

@asyte
Copy link

asyte commented Feb 4, 2025

Type: Bug

Extension Information

  • Cody Version: 1.64.0
  • VS Code Version: 1.96.4
  • Extension Host: desktop

Steps to Reproduce

  1. Send a prompt

Expected Behaviour

Logs

Extension version: 1.64.0
VS Code version: Code 1.96.4 (cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba, 2025-01-16T00:16:19.038Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-1255U (12 x 2611)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.71GB (15.86GB free)
Process Argv --crash-reporter-id e8de3894-b855-4c2a-8266-0a11a9426ef4
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
14376chatcontrol:31230253
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31217127
5a9hg449:31230677
hdaa2157:31222309
copilot_t_ci:31222730

Copy link

linear bot commented Feb 4, 2025

@github-actions github-actions bot added bug Something isn't working repo/cody labels Feb 4, 2025
@PriNova
Copy link
Collaborator

PriNova commented Feb 4, 2025

Hey @asyte

Thank you for reporting this issue. Can you please describe in detail when this happens and provide the logs from the output-panel to eventually pinpoint the issue?
Feel free to re-open the report after updating Cody if the issue still persists.

Sorry for the inconvenience.

@PriNova PriNova closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2025
@asyte
Copy link
Author

asyte commented Feb 4, 2025

I am using the VS Code extension version of Cody. The error occurs immediately after submitting a prompt. The response section displays a waiting icon and never responds. I uninstalled the Cody extension and reinstalled it.

Here is the output channel:

█ telemetry-v2 recordEvent: cody.extension/savedLogin:
█ auth Authenticating to https://sourcegraph.com/...
█ ModelsService User model preferences changed: {"defaults":{"chat":"anthropic::2023-06-01::claude-3.5-sonnet","edit":"anthropic::2023-06-01::claude-3.5-sonnet","autocomplete":"fireworks::v1::deepseek-coder-v2-lite-base"},"selected":{}}
█ ChatsController:constructor init
█ auth Authentication succeed to endpoint https://sourcegraph.com/
█ telemetry-v2 recordEvent: cody.auth/connected:
█ SymfRunner unsafeEnsureIndex: file:///d%3A/Redacted/for/privacy
█ SymfRunner unsafeEnsureIndex: file:///d%3A/Redacted/for/privacy
█ SymfRunner unsafeEnsureIndex: file:///d%3A/Redacted/for/privacy
█ SymfRunner unsafeEnsureIndex: file:///d%3A/Redacted/for/privacy
█ SymfRunner unsafeEnsureIndex: file:///d%3A/Redacted/for/privacy
█ ClientConfigSingleton refreshing configuration
█ symf index build previously failed and retryIfLastAttemptFailed=false, not rebuilding
█ AutoEdits:Constructor Constructing AutoEditsProvider
█ ChatController updateViewConfig:
█ ClientConfigSingleton refreshed: {"codyEnabled":true,"chatEnabled":true,"autoCompleteEnabled":true,"customCommandsEnabled":true,"attributionEnabled":false,"smartContextWindowEnabled":true,"modelsAPIEnabled":false,"latestSupportedCompletionsStreamAPIVersion":7}
█ ModelsService new models API enabled
█ auth Authenticating to https://sourcegraph.com/...
█ ChatController updateClientConfig:
█ auth Authentication succeed to endpoint https://sourcegraph.com/
█ ModelsService ModelsData changed: 21 primary models
█ UpstreamHealth Ping took 98ms (Gateway: 129ms):
█ telemetry-v2 recordEvent: cody.humanMessageEditor/submit:
█ ChatController handleUserMessageSubmission: traceId: 351c59c3500c52b8315b92e813d12d60
█ telemetry-v2 recordEvent: cody.chat-question/submitted:
█ ChatController resolveContext > symf /d:/Redacted/for/privacy (start)
█ symf using downloaded symf "c:\Users\redacted\AppData\Roaming\Code\User\globalStorage\sourcegraph.cody-ai\symf\symf-v0.0.16-x86_64-windows"
█ ChatController: postError Failed to retrieve search context: EvalError: symf failed: Error: spawn ENAMETOOLONG
█ SymfRunner unsafeEnsureIndex: file:///d%3A/Redacted/for/privacy
█ ChatController resolveContext > symf /d:/Redacted/for/privacy (end)
█ symf index build previously failed and retryIfLastAttemptFailed=false, not rebuilding

@asyte
Copy link
Author

asyte commented Feb 4, 2025

I do not have permission to reopen the issue.

@PriNova PriNova self-assigned this Feb 4, 2025
@PriNova PriNova reopened this Feb 4, 2025
@PriNova
Copy link
Collaborator

PriNova commented Feb 4, 2025

@asyte can you please check if in this folder c:\Users\redacted\AppData\Roaming\Code\User\globalStorage\sourcegraph.cody-ai\symf\ the symf binary is there?

If not, please reload the IDE with Antivirus software disabled. It might be deleting the symf binary because of a false positive trigger. This is reported from Kaspersky.
After a reload, Cody should download a fresh symf binary. Add this to the allow list of your antivirus software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working repo/cody
Projects
None yet
Development

No branches or pull requests

2 participants