-
Notifications
You must be signed in to change notification settings - Fork 28
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
Argument list too long; env multiplies with windows #163
Comments
Can you open Sublime Text in safe mode and then open the console and run import os; print(os.environ["PATH"]) |
And could you just run |
I have found the culprit is in
This triggers the bug. |
… starts Fixes TerminalFi/LSP-copilot#163 Signed-off-by: Jack Cherng <jfcherng@gmail.com>
|
Troubleshooting: LSP-copilotVersion
Server Test Run
Server Configuration
[
"${node_bin}",
"${server_path}",
"--stdio"
]
"/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin/node" "/home/[USERNAME]/.cache/sublime-text/Package Storage/LSP-copilot/18.18.1/language-server/node_modules/copilot-node-server/copilot/dist/language-server.js" --stdio
{}
{
"auto_ask_completions": true,
"commit_completion_on_tab": true,
"completion_style": "popup",
"debug": false,
"hook_to_auto_complete_command": false,
"local_checks": false,
"proxy": "",
"telemetry": false
}
{
"PATH": "/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/[USERNAME]/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:"
} Active view
{
"auto_complete_selector": null,
"lsp_active": null,
"syntax": null
} Project / Workspace
[]
LSP configuration{} System PATH
|
The upstream has merged the fix so we just have to wait for its new release. |
I have an issue that I am trying to troubleshoot:
This issue most frequently occurs when I open a Sublime Text new window. However, it does occasionally occur in code windows as well. Today I had to find and click on the error quite a few times in order to access Sublime Text, which is a problem.
While I was searching around for ways to troubleshoot the issue, I discovered this when running LSP: Troubleshoot Server:
![339439009-7f20b679-54c1-457f-9cc7-33e737355b1f](https://private-user-images.githubusercontent.com/16672299/339446899-dcdf4348-0474-4cf5-9ce9-2b3ce094a328.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MzM1NjYsIm5iZiI6MTczOTYzMzI2NiwicGF0aCI6Ii8xNjY3MjI5OS8zMzk0NDY4OTktZGNkZjQzNDgtMDQ3NC00Y2Y1LTljZTktMmIzY2UwOTRhMzI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE1Mjc0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiMGRmODJlNjhmNjNiYThhYTkxYjljZmFhMmIxNDlkNDRkOGU5MmUyMjAyNTQyYWZjYTFmZDQ4ZDZmMzI5MmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SO4Ft6zA4FLKY7_3sWLgI-ExjGC3G9ggW4JrBPbBqvE)
Note that I keep a lot of windows and tabs open in Sublime Text from time to time.
Running "LSP: Dump Window Configs" yielded this result for env:
Depending on the window, the env is repeated more or less. I suspect that each window appends to the env, without any duplication.
I don't know if the "argument list too long" issue has anything to do with the environment, but even if it isn't the env could be handled better.
The text was updated successfully, but these errors were encountered: