claude-code - 💡(How to fix) Fix [Bug] Bash pattern matching not applied to sourced commands in settings.json [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49047Fetched 2026-04-17 08:52:22
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2cross-referenced ×1

Error Message

[{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:3130:22349)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3130:20885)\n at w (/$bunfs/root/src/entrypoints/cli.js:3130:24868)\n at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29940)\n at w (/$bunfs/root/src/entrypoints/cli.js:3130:30277)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3130:30823)\n at call (/$bunfs/root/src/entrypoints/cli.js:4779:1371)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Failed to start LSP server for file /Users/ppd0523/pycharm/photorank-lambda-server/src/routes/voucher.py: Executable not found in $PATH: "pyright-langserver"\n at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29966)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:3130:20885)\n at w (/$bunfs/root/src/entrypoints/cli.js:3130:24868)\n at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29940)\n at w (/$bunfs/root/src/entrypoints/cli.js:3130:30277)\n at Y (/$bunfs/root/src/entrypoints/cli.js:3130:30823)\n at call (/$bunfs/root/src/entrypoints/cli.js:4779:1371)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"}]

Code Example

[{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3130:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3130:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3130:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4779:1371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Failed to start LSP server for file /Users/ppd0523/pycharm/photorank-lambda-server/src/routes/voucher.py: Executable not found in $PATH: \"pyright-langserver\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29966)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3130:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3130:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4779:1371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Bash(source *) 으로 settings.json에 allow 하였다

Bash(source .venv/bin/activate && *) 위 패턴 적용되지 않는다

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.110
  • Feedback ID: 44aad006-074c-4413-89f4-a6db5c0c31ce

Errors

[{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:3130:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3130:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3130:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4779:1371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Failed to start LSP server for file /Users/ppd0523/pycharm/photorank-lambda-server/src/routes/voucher.py: Executable not found in $PATH: \"pyright-langserver\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29966)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:3130:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:3130:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:3130:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:3130:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4779:1371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T08:03:34.266Z"}]

extent analysis

TL;DR

The issue is likely due to the pyright-langserver executable not being found in the system's PATH, and a workaround may involve adding the executable to the PATH or configuring the LSP server settings.

Guidance

  • The error messages indicate that the pyright-langserver executable is not found in the system's PATH, suggesting a configuration issue.
  • Verify that the pyright-langserver executable is installed and available in the system's PATH by running which pyright-langserver in the terminal.
  • Consider adding the path to the pyright-langserver executable to the system's PATH environment variable or configuring the LSP server settings to point to the correct location of the executable.
  • Check the settings.json file to ensure that the allow configuration for Bash source is correctly set up.

Example

No code snippet is provided as the issue seems to be related to configuration and environment variables.

Notes

The issue may be specific to the darwin platform and iTerm.app terminal, and the solution may vary depending on the specific environment and configuration.

Recommendation

Apply a workaround by adding the pyright-langserver executable to the system's PATH or configuring the LSP server settings, as the issue seems to be related to a configuration problem rather than a version-specific bug.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Bash pattern matching not applied to sourced commands in settings.json [2 comments, 3 participants]