Open marimeireles opened 1 year ago
The login command doesn't do anything to me.
What does this mean? You can see the sign-in command, you execute it and nothing happen?
Update:
For people who are still suffering here, providing the output of following steps may help people to help you.
LSP-copilot
at the bottom-left of the ST window?Copilot: Check Status
from the command palette?LSP: Troubleshoot Server
from the command palette?Ctrl+`
)I can only access the settings of the addon, nothing else works for me.
The same happened to me, I tried to reinstall the addon, and nothing. The only command available was Preferences: LSP-copilot settings
.
I restarted again Sublime Text and the plugin worked again and all the commands were available.
Cannot provide any more information of why that happened, but is solvable.
Both steps are written in the readme: Restart ST, open a file.
Both steps are written in the readme: Restart ST, open a file.
In my case was not on first use after installing the plugin, this problem appeared after a week of use... suddenly most of the sublime text commands were not present (cmd+p, write "copilot", only the settings command appeared).
(I wrote my comment just in case any other people found the issue, to let them know is solvable)
I see, thanks for chiming in @neverbot, I'll try again. I've restarted sublime and it didn't work. Same as @neverbot described.
Installed via Cmd+Shift+P Install Packages. After install, restarted Sublime. After restart, Cmd+Shift+P and when searching with "copilot" only "Preferences: LSP-copilot Settings" comes up. "Copilot: Sign In" does NOT show up in the list.
This is my first install of LSP-Copilot, I had not installed it previously.
Hope this helps.
If you see the readme, the first step is OPEN A FILE. NOT searching with "copilot". You have to make sure the plugin is activated (so open a file). There will be "LSP-copilot" on the status bar.
Another potential issue, since you didn't mention, the LSP
plugin is a must too.
Also worth noting that it may only work when a file of a certain type is opened. Personally I had to have a PHP file open, other file types (don't remember which ones, might've been TXT) did not cause the expected command to appear.
LSP-copilot should work on all files, literally. But there can be some weird situations that the server is not activated. If it's activated for the current view (file), there will be LSP-copilot
at the bottom-left of the ST window.
After installation, restarting and opening a file, I can see "co pilot not signed in" in the status bar when I first open a file. But then I cannot find "Copilot: Sign In" in the command palette?? It then changes to "LSP-copilot" in the status bar.
After installation, restarting and opening a file, I can see "co pilot not signed in" in the status bar when I first open a file. But then I cannot find "Copilot: Sign In" in the command palette?? It then changes to "LSP-copilot" in the status bar.
Is there a LSP: Check Status ?
After installation, restarting and opening a file, I can see "co pilot not signed in" in the status bar when I first open a file. But then I cannot find "Copilot: Sign In" in the command palette?? It then changes to "LSP-copilot" in the status bar.
Is there a LSP: Check Status ?
No
Fwiw, it's Copilot: Check Status
.
Copilot: Check Status
this is not there either.
Having no idea what's happening as I don't think that's possible.
Can you run LSP: Troubleshoot Server
and select LSP-copilot
?
LSP: Troubleshoot Server
Yes that worked
## Server Configuration
- command
```json
[
"${node_bin}",
"${server_path}",
"--stdio"
]
/usr/local/bin/node "/Users/pod71/Library/Caches/Sublime Text 3/Package Storage/LSP-copilot/16.14.0/language-server/node_modules/copilot-node-server/copilot/dist/agent.js" --stdio
source | text | embedding
source | text | embedding
{}
{
"auto_ask_completions": true,
"completion_style": "popup",
"debug": false,
"hook_to_auto_complete_command": false,
"local_checks": false,
"proxy": "",
"telemetry": false
}
{
"PATH": "/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:"
}
/Users/pod71/sites/te-kaha-2022/components/Footer.js
{
"auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
"lsp_active": true,
"syntax": "Packages/Babel/JavaScript (Babel).sublime-syntax"
}
source.js
[
"/Users/pod71/sites/te-kaha-2022"
]
Is there any error message in ST's console? (ctrl+ `
)
Is there any error message in ST's console? (
ctrl+ `
)
git: using configuration from system git install git: tracking working dir /Users/pod71/sites/te-kaha-2022 ❌ Copilot has NOT been signed in. Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/LSP/LSP.sublime-settings Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/User/LSP.sublime-settings ❌ Copilot has NOT been signed in. Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/LSP-copilot/LSP-copilot.sublime-settings Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/User/LSP-copilot.sublime-settings ❌ Copilot has NOT been signed in. Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/LSP-copilot/LSP-copilot.sublime-settings Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/User/LSP-copilot.sublime-settings ❌ Copilot has NOT been signed in. Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/Package Control/Package Control.sublime-settings ❌ Copilot has NOT been signed in. no command for selector: noop: no command for selector: noop:
Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/LSP-copilot/LSP-copilot.sublime-settings
Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/User/LSP-copilot.sublime-settings
Does these happen even if you restart ST?
Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/LSP-copilot/LSP-copilot.sublime-settings Unable to open /Users/pod71/Library/Application Support/Sublime Text 3/Packages/User/LSP-copilot.sublime-settings
Does these happen even if you restart ST?
I get these
plugins loaded Failed to register plugin "LSP-copilot-master" Traceback (most recent call last): File "/Users/pod71/Library/Application Support/Sublime Text 3/Installed Packages/LSP.sublime-package/plugin/core/sessions.py", line 997, in _register_plugin_impl if client_configs.add_external_config(name, settings, base_file, notify_listener): File "/Users/pod71/Library/Application Support/Sublime Text 3/Installed Packages/LSP.sublime-package/plugin/core/settings.py", line 35, in add_external_config config = ClientConfig.from_sublime_settings(name, s, file) File "/Users/pod71/Library/Application Support/Sublime Text 3/Installed Packages/LSP.sublime-package/plugin/core/types.py", line 682, in from_sublime_settings base = sublime.decode_value(sublime.load_resource(file)) File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime.py", line 436, in load_resource raise IOError('resource "%s" not found' % name) OSError: resource "Packages/LSP-copilot-master/LSP-copilot-master.sublime-settings" not found
Failed to register plugin "LSP-copilot-master" Traceback (most recent call last): File "/Users/pod71/Library/Application Support/Sublime Text 3/Installed Packages/LSP.sublime-package/plugin/core/sessions.py", line 997, in _register_plugin_impl if client_configs.add_external_config(name, settings, base_file, notify_listener): File "/Users/pod71/Library/Application Support/Sublime Text 3/Installed Packages/LSP.sublime-package/plugin/core/settings.py", line 35, in add_external_config config = ClientConfig.from_sublime_settings(name, s, file) File "/Users/pod71/Library/Application Support/Sublime Text 3/Installed Packages/LSP.sublime-package/plugin/core/types.py", line 682, in from_sublime_settings base = sublime.decode_value(sublime.load_resource(file)) File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime.py", line 436, in load_resource raise IOError('resource "%s" not found' % name) OSError: resource "Packages/LSP-copilot-master/LSP-copilot-master.sublime-settings" not found
❌ Copilot has NOT been signed in. Package Control: No updated packages
Failed to register plugin "LSP-copilot-master"
So, it looks like you didn't installed this plugin with Package Control (?). But this is not the case in your previous report. I am confused by the situation now. Please remove Packages/LSP-copilot-master
directory and restart ST.
Failed to register plugin "LSP-copilot-master"
So, it looks like you didn't installed this plugin with Package Control (?). But this is not the case in your previous report. I am confused by the situation now. Please remove
Packages/LSP-copilot-master
directory and restart ST.
this worked thank you.
For people who are still suffering here, providing the output of following steps may help people to help you.
LSP-copilot
at the bottom-left of the ST window?Copilot: Check Status
from the command palette?LSP: Troubleshoot Server
from the command palette?Ctrl+`
)Hello. I have the same issue.
- After open a real file on your filesystem, is there LSP-copilot at the bottom-left of the ST window? Yes, I get "LSP-copilot" at the bottom left of the screen when I open a php file.
- What's the output of Copilot: Check Status from the command palette?
I get back "[LSP-copilot] You haven't signed in yet."
- What's the output of LSP: Troubleshoot Server from the command palette?
## Server Configuration
- command
```json
[
"${node_bin}",
"${server_path}",
"--stdio"
]
/usr/local/bin/node "/Users/tomohirosawada/Library/Caches/Sublime Text 3/Package Storage/LSP-copilot/16.13.1/language-server/node_modules/copilot-node-server/copilot/dist/agent.js" --stdio
source | text | embedding
source | text | embedding
{}
{
"auto_ask_completions": true,
"completion_style": "popup",
"debug": false,
"hook_to_auto_complete_command": false,
"local_checks": false,
"proxy": "",
"telemetry": false
}
{
"PATH": "/usr/local/bin:/usr/local/bin:"
}
/Users/tomohirosawada/Desktop/sample.php
{
"auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
"lsp_active": true,
"syntax": "Packages/PHP/PHP.sublime-syntax"
}
embedding.php
[]
Hi @tomohiro-sawada , do you mean there is no Copilot: Sign In
in the command palette for you? It looks like your LSP-copilot is just updated. Did you try to restart ST?
That's not it. I have Copilot: Sign In
in the command palette when I open
a .php file, and a login window pops up in my browser. However, even if I
fill out the confirmation code, Sublime Text still says that I am not
logged in.
On Wed, Apr 5, 2023 at 12:47 AM Jack Cherng @.***> wrote:
Hi @tomohiro-sawada https://github.com/tomohiro-sawada , do you mean there is no Copilot: Sign In in the command palette for you?
— Reply to this email directly, view it on GitHub https://github.com/TerminalFi/LSP-copilot/issues/93#issuecomment-1496911455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYT3JHWXZDGCGZR3YDZWQVTW7T2MTANCNFSM6AAAAAAV34T6N4 . You are receiving this because you were mentioned.Message ID: @.***>
After you fill out the confirmation code and back to ST to "Press OK when completed.", there should be another popup message box. What does it say?
I don't get a popup message box in Sublime Text after I press ok.
On Wed, Apr 5, 2023 at 1:36 AM Jack Cherng @.***> wrote:
After you fill out the confirmation code and back to ST to "Press OK when completed.", there should be another popup message box. What it says?
— Reply to this email directly, view it on GitHub https://github.com/TerminalFi/LSP-copilot/issues/93#issuecomment-1496942520, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYT3JHUEB6IAR2CCTWM665DW7UAFXANCNFSM6AAAAAAV34T6N4 . You are receiving this because you were mentioned.Message ID: @.***>
I don't get a popup message box in Sublime Text after I press ok.
If so, any error in the console or LSP's log panel?
OK. So this is it, it failed to write into
That's right. I don't know how to fix this though. hosts.json exists in that directory.
OK. So this is it, it failed to write into
I just get back "❌ Copilot has NOT been signed in."
Check the permission for sure. Or just chmod u+rw
on that file. Or maybe something in the upper-level folder's permission gets wrong. Or maybe the file owner is wrong.
Check the permission for sure. Or just
chmod u+rw
on that file. Or maybe something in the upper-level folder's permission gets wrong. Or maybe the file owner is wrong.
Yes! That did the trick! Thank you very much!
Just wanted to add that i had a lot of the above problems and was only opening a file straight from terminal and wasnt working. I had to open a file through sublime (as mentioned i know 😞 ) to get things working in case someone else has this issue.
It had been a while since I last checked the repository since the time I asked if Copilot for ST existed. I have been experiencing this issue occasionally and it is very annoying, so I came to check if anyone else was experiencing it and yes, I can see that some are.
I suppose this is more related to LSP, although it's strange that LSP-lua doesn't have this issue...
Unfortunately, I just kind of never have this issue. On my side, it just works... no matter project is used or not, single file or not.
And saying not working is not helping. At least run troubleshooting and provide the result here.
Unfortunately, I just kind of never have this issue. On my side, it just works... no matter project is used or not, single file or not.
And saying not working is not helping. At least run troubleshooting and provide the result here.
I don't understand why it's happening but I'm 100% sure it's not this plugin, I checked the code and everything is fine. I did the tests you mentioned out of curiosity and everything is fine. This problem is probably something occasional with slow or intermittent internet connections.
You just need to restart ST and that's it.
If I find more information and discover something relevant, I will be happy to come back here and notify you. The idea is to always keep this add-on that I love so much as up-to-date as possible.
I had issues similar to the ones above, where Copilot: Check Status
wasn't showing up for me in the Command Palette after restarting ST4 and opening a real file.
In my case, I saw errors in the console when using the commands Preferences: LSP Settings
and Preferences: Lsp-copilot Settings
.
In both cases, ST4 was unable to find the settings files. Steps to resolve:
LSP
and LSP-Copilot
under C:\Users\<username>\AppData\Roaming\Sublime Text\Packages
C:\Users\<username>\AppData\Roaming\Sublime Text\Packages\User
- Created folders
LSP
andLSP-Copilot
underC:\Users\<username>\AppData\Roaming\Sublime Text\Packages
- Saved the files that came up for the general settings in the respective folders
- Saved the files that came up for user settings under
C:\Users\<username>\AppData\Roaming\Sublime Text\Packages\User
We recommend people installing this Package with Package Control.
- Created folders
LSP
andLSP-Copilot
underC:\Users\<username>\AppData\Roaming\Sublime Text\Packages
- Saved the files that came up for the general settings in the respective folders
- Saved the files that came up for user settings under
C:\Users\<username>\AppData\Roaming\Sublime Text\Packages\User
We recommend people installing this Package with Package Control.
I installed via Package Control and still ran into this issue.
I installed via Package Control and still ran into this issue.
See https://github.com/TerminalFi/LSP-copilot/issues/93#issuecomment-1470131102
I installed via Package Control and still ran into this issue.
See #93 (comment)
Yes, that's actually the comment that helped me! I commented with the steps to resolve my situation, in case it helps others with similar issues with ST4 on Win11 who see this. I'm able to use the plugin now, I was just trying to potentially help others who also come across this issue, and document a case that was slightly different from others above.
Had the same issue. Solved by restarting Sublime Text a second time. (I had already restarted it once as per the instructions.) There was also an LSP update at the same time; maybe that had something to do with it.
I can only access the settings of the addon, nothing else works for me. The login command doesn't do anything to me. Not sure how to check my version but I've just downloaded it. I'm running it on an osx. Cheers!