Code Monkey home page Code Monkey logo

Comments (6)

TerminalFi avatar TerminalFi commented on August 12, 2024

Can you open Sublime Text in safe mode and then open the console and run

import os; print(os.environ["PATH"])

from lsp-copilot.

jfcherng avatar jfcherng commented on August 12, 2024

And could you just run LSP: Troubleshoot Server for LSP-copilot and paste the result here?

from lsp-copilot.

jfcherng avatar jfcherng commented on August 12, 2024

I have found the culprit is in lsp_utils. I will file a PR there soon.

Note that I keep a lot of windows

This triggers the bug.

from lsp-copilot.

skjbulcher avatar skjbulcher commented on August 12, 2024

Can you open Sublime Text in safe mode and then open the console and run

import os; print(os.environ["PATH"])
>>> import os; print(os.environ["PATH"])
/home/[USERNAME]/google-cloud-sdk/bin:/home/[USERNAME]/.nvm/versions/node/v21.6.2/bin:/home/[USERNAME]/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/[USERNAME]/.local/bin

from lsp-copilot.

skjbulcher avatar skjbulcher commented on August 12, 2024

And could you just run LSP: Troubleshoot Server for LSP-copilot and paste the result here?

Troubleshooting: LSP-copilot

Version

  • LSP: 2.1.0
  • Sublime Text: 4169

Server Test Run

  • exit code: 0
  • output

Server Configuration

  • command
[
  "${node_bin}",
  "${server_path}",
  "--stdio"
]
  • shell command
"/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
  • selector
source | text | embedding
  • priority_selector
source | text | embedding
  • init_options
{}
  • settings
{
  "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
}
  • env
{
  "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

  • File name
None
  • Settings
{
  "auto_complete_selector": null,
  "lsp_active": null,
  "syntax": null
}

Project / Workspace

  • folders
[]
  • is project: False

LSP configuration

{}

System PATH

  • /home/[USERNAME]/.local/bin
  • /usr/local/sbin
  • /usr/local/bin
  • /usr/sbin
  • /usr/bin
  • /sbin
  • /bin
  • /usr/games
  • /usr/local/games
  • /snap/bin

from lsp-copilot.

jfcherng avatar jfcherng commented on August 12, 2024

The upstream has merged the fix so we just have to wait for its new release.

from lsp-copilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.