-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Extensions never be activated after granting workspace trust #127067
Comments
(Experimental duplicate detection) |
@testforstephen, issue should be fixed in the next Insiders build. |
fwiw I still have this issue (or at least the specific version of it reported in #127012) today, running what I believe should be a build with the fix:
|
@dboreham, I am unable to reproduce the problem in the latest Insiders release. |
Hi, some testing reveals that the problem is only present in WSL2 and Container targets (it works ok against local Windows). Reproduction:
This setup worked prior to a recent VSCode insiders update, so I am assuming we're looking at a symptom of the same problem, although it's also possible something specific to the Scala extensions is causing a different problem with similar symptoms. I don't see anything terribly useful in the logs, just the same error pasted above. Not working case (remote, WSL2): Working (local, Windows): |
Thanks @dboreham for the steps. I was able to reproduce the problem on my side, but I do not believe that this is necessarily related to workspace trust. I am able to reproduce the issue even after I have disable the workspace trust feature using the If you hover over the warning icon for the |
I did some testing with non-insiders VSCode. What I see there is that initially the scala syntax extension is also in the "installed globally so disabled" state, however a popup appears saying something like "metals needs scala extension, would you like it downloaded?". Click yes, and after some gears turning it appears to be working. That popup never appears in the insiders case. I'll file a bug against the metals project... |
@lszomoru metals folks are saying this is a VSCode bug (and actively closing every bug filed for this issue, I discovered): |
Can you please copy/paste this pop up? |
This took a bit of work because you have to completely uninstall both extensions to get it back into the right state: For clarity: I do not ever see this popup in VSCode Insiders, although that could be because the system isn't in the correct state to prompt the popup. I will try to see if I can make it come up in Insiders by uninstalling extensions, re-starting.. |
I tried again to see if I could get the popup to show in VSCode insiders by uninstalling, restarting. No luck.
|
This popup says that We enhanced VS Code recently to fix this error by not enabling the extension when its dependencies are not enabled - #122448. Thats why you do not see the prompt in insiders. To know the root cause may I know why |
Hover over only says that it is disabled, not why. I have a theory as to why, testing it now... |
Nope, it wasn't that. (I noticed another extension complain that it needed JDK11, while I had switched to JDK8 on WSL2 recently, but after reverting to JDK11 in WSL2 the scalametals extension problem remains). |
Digging into this some more: it appears that VSCode disabling the scala-lang plugin for remote is expected behavior. That extension is defined as of kind UI: https://github.com/scala/vscode-scala-syntax/blob/99868aa9177f33b9bd7dce2ea0d1b25e37e6899c/package.json#L11 So the question is probably not why is scala-lang disabled, but why does VSCode think that it needs to be enabled remote as a dependency of scalametals? Also btw I noticed that the problem has crept into non-insiders VSCode now. It updated, so perhaps that's the reason, or perhaps there is a bad state causing the problem that wasn't initially present when I first downloaded VSCode this morning.
|
Update: I found another computer that had working VSCode Insiders with working scalametals extension.
(btw I did not do anything other than allow VSCode to update -- previously working scala projects stopped working after the update). |
Isn't the reason for the issue the fact the So essentially, this a false negative caused by #122448 ? |
I wondered about that, and to test the theory went looking for other extensions that might follow the same pattern. I couldn't find an example in my fairly large set of installed extensions where a remote plugin depends on a UI plugin, but I did find an example of a UI plugin "disabled" remote: It displays with the same status as the scala-lang extension, but no other remote extension depends on it: Conversely, I wondered about this pair of extensions which you'd think would be similarly afflicted: But it appears the Haskell syntax extension is different vs Scala in that it is remote-only, and shows as disabled local: |
Adding the remote extension behavior in my settings.json fixed the issue for me |
It seems that the Haskell syntax extension doesn't declare This should most likely be fixed in VS Code, we can alternatively remove Edit: Is there an issue for that? |
The long, good fix is fine for me because I reverted to VSCode 1.57 for the time being. |
Thanks, I'd seen that in the doc and wondered if it would help, but hadn't tried it. |
Opened a new issue here: #128375 |
Version: 1.58.0-insider
Commit: 3caebff
Date: 2021-06-24T05:14:29.975Z
Electron: 12.0.12
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Darwin x64 19.6.0
Steps to Reproduce:
workspace-trust.mov
This issue only exists in latest insider, but works in the stable VS Code.
The text was updated successfully, but these errors were encountered: