-
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
Not working at all? #93
Comments
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.
|
The same happened to me, I tried to reinstall the addon, and nothing. The only command available was 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. |
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) |
Installed via Cmd+Shift+P Install Packages. 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 |
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 |
Fwiw, it's |
this is not there either. |
Having no idea what's happening as I don't think that's possible. |
Can you run |
Yes that worked Troubleshooting: LSP-copilotVersion
Server Test Run
Server Configuration
[
"${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
{}
{
"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:"
} Active view
{
"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"
}
Project / Workspace
[
"/Users/pod71/sites/te-kaha-2022"
]
LSP configuration## System PATH - /opt/homebrew/bin - /opt/homebrew/sbin - /usr/local/bin - /usr/bin - /bin - /usr/sbin - /sbin - /Library/Apple/usr/bin |
Is there any error message in ST's console? ( |
git: using configuration from system git install |
Does these happen even if you restart ST? |
I get these plugins loaded Failed to register plugin "LSP-copilot-master" ❌ Copilot has NOT been signed in. |
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 |
this worked thank you. |
For people who are still suffering here, providing the output of following steps may help people to help you.
|
Hello. I have the same issue.
I get back "[LSP-copilot] You haven't signed in yet."
Troubleshooting: LSP-copilotVersion
Server Test Run
Server Configuration
[
"${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
{}
{
"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:"
} Active view
{
"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"
}
Project / Workspace
[]
LSP configuration## System PATH - /Library/Frameworks/Python.framework/Versions/2.7/bin - /Library/Frameworks/Python.framework/Versions/3.9/bin - /Library/Frameworks/Python.framework/Versions/3.10/bin - /opt/local/bin - /opt/local/sbin - /usr/local/bin - /usr/bin - /bin - /usr/sbin - /sbin - /Library/TeX/texbin - /Library/Apple/usr/bin
Package Control: Skipping automatic upgrade, last run at 2023-04-04 23:17:47, next run at 2023-04-05 00:17:47 or after added 1 package, and audited 2 packages in 608ms found 0 vulnerabilities |
Hi @tomohiro-sawada , do you mean there is no |
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
<#93 (comment)>,
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.
<img width="1177" alt="Screenshot 2023-04-05 at 13 43 58" src="https://user-images.githubusercontent.com/103265438/230162145-ab218aae-d762-4b8f-91f7-e6e2f7607966.png">
<img width="1182" alt="Screenshot 2023-04-05 at 13 44 05" src="https://user-images.githubusercontent.com/103265438/230162151-fb70e835-9467-487b-a741-b7e456eb0ecf.png">
<img width="1085" alt="Screenshot 2023-04-05 at 13 44 12" src="https://user-images.githubusercontent.com/103265438/230162153-99b94e81-4d71-47cb-805a-0489828ae92b.png">
<img width="493" alt="Screenshot 2023-04-05 at 13 44 22" src="https://user-images.githubusercontent.com/103265438/230162515-d9c9bd1f-8ff8-4572-92a2-7081142abdbe.png">
<img width="493" alt="Screenshot 2023-04-05 at 13 44 22" src="https://user-images.githubusercontent.com/103265438/230162159-4033047b-85fe-455d-8ad5-89a910401132.png">
<img width="449" alt="Screenshot 2023-04-05 at 13 44 54" src="https://user-images.githubusercontent.com/103265438/230162162-d485c6fa-13b8-45dc-899b-dd08657c1662.png">
…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
<#93 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYT3JHUEB6IAR2CCTWM665DW7UAFXANCNFSM6AAAAAAV34T6N4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
If so, any error in the console or LSP's log panel? |
That's right. I don't know how to fix this though. hosts.json exists in that directory. |
Check the permission for sure. Or just |
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. |
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. 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 In my case, I saw errors in the console when using the commands In both cases, ST4 was unable to find the settings files. Steps to resolve:
|
We recommend people installing this Package with Package Control. |
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!
The text was updated successfully, but these errors were encountered: