Skip to content
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

setting sync in vscode not working #48

Open
stebo85 opened this issue Sep 27, 2021 · 15 comments
Open

setting sync in vscode not working #48

stebo85 opened this issue Sep 27, 2021 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@stebo85
Copy link
Contributor

stebo85 commented Sep 27, 2021

No description provided.

@stebo85
Copy link
Contributor Author

stebo85 commented Sep 28, 2021

It looks like the browser is not opening to do the authentication. I checked if firefox is the default browser and this all seems to be ok. Any other ideas :?

@aswinnarayanan
Copy link
Contributor

Looks like this issue microsoft/vscode#113157

Installing xdg-utils seems to fix it. Will push the fix through

@stebo85
Copy link
Contributor Author

stebo85 commented Sep 29, 2021

oh, wow! Great find and fix.

@aswinnarayanan
Copy link
Contributor

That fixes the first problem of the browser not opening. The login step then runs into a keychain error: https://code.visualstudio.com/docs/editor/settings-sync#_linux
Am investigating

@stebo85
Copy link
Contributor Author

stebo85 commented Sep 29, 2021 via email

@aswinnarayanan
Copy link
Contributor

No luck with chrome. I went down a rabbit hole with this issue, it looks a bit tricky. I'll have to dedicate some time to it

@stebo85
Copy link
Contributor Author

stebo85 commented Sep 29, 2021 via email

@stebo85 stebo85 self-assigned this Oct 4, 2021
@stebo85 stebo85 added the bug Something isn't working label Nov 24, 2021
@stebo85
Copy link
Contributor Author

stebo85 commented Dec 4, 2021

@stebo85
Copy link
Contributor Author

stebo85 commented Jan 17, 2022

@aswinnarayanan - this works perfectly in bumblebee ... is this a container issue :?

@aswinnarayanan
Copy link
Contributor

@stebo85, as far as I could see, this is isolated to the ubuntu docker container
Haven't had this issue on Ubuntu cloud VMs or WSL.

@stebo85
Copy link
Contributor Author

stebo85 commented Jan 20, 2022

after installing gnome-keyring and xdg-utils the sync works after copying the URI and pasting it manually into code

it throughs an error that I can't make sense of yet:

Setting token failed: Error: Unknown or unsupported transport “disabled” for address “disabled:”

but this doesn't seem to affect the functionality

@stebo85
Copy link
Contributor Author

stebo85 commented Jan 29, 2022

I made more progress there. I think we need a persistent writable overlay layer to let vscode change things in the container:

poc:

singularity shell code_220114_20220121.simg/
code

[2022-01-29 00:47:02.935] [renderer1] [error] ENOENT: no such file or directory, mkdir '/opt/vscode-extensions/.d3d9d7e4-e34b-4732-b468-f0c7ed8cf287': Extract: ENOENT: no such file or directory, mkdir '/opt/vscode-extensions/.d3d9d7e4-e34b-4732-b468-f0c7ed8cf287'
    at a.extractAtLocation (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:193503)
    at async a.extractUserExtension (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:190222)
    at async $.extract (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:203807)
    at async $.doRun (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:204634)
[2022-01-29 00:47:04.079] [renderer1] [error] ["Extract: ENOENT: no such file or directory, mkdir '/opt/vscode-extensions/.046eab34-ce38-4c5e-be8e-173bdabe661d'","    at a.extractAtLocation (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:193503)","    at async a.extractUserExtension (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:190222)","    at async $.extract (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:203807)","    at async $.doRun (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:204634)"]
[2022-01-29 00:47:04.099] [renderer1] [error] ENOENT: no such file or directory, mkdir '/opt/vscode-extensions/.046eab34-ce38-4c5e-be8e-173bdabe661d': Extract: ENOENT: no such file or directory, mkdir '/opt/vscode-extensions/.046eab34-ce38-4c5e-be8e-173bdabe661d'
    at a.extractAtLocation (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:193503)
    at async a.extractUserExtension (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:190222)
    at async $.extract (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:203807)
    at async $.doRun (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:204634)

with overlay:

singularity overlay create --size 1024 /tmp/ext3_overlay.img
singularity shell --overlay /tmp/ext3_overlay.img 

working and extensions install!!!!

@stebo85 stebo85 closed this as completed Feb 7, 2022
@stebo85 stebo85 reopened this Feb 7, 2022
@stebo85
Copy link
Contributor Author

stebo85 commented Feb 7, 2022

for now just enable for vscode container

@stebo85
Copy link
Contributor Author

stebo85 commented Jul 22, 2022

I think I found a new lead for this. The problem is that the missing systemd. It is possible to get this to work:

From: https://medium.com/nerd-for-tech/developing-on-apple-m1-silicon-with-virtual-environments-4f5f0765fd2f

Docker makes it very hard to use systemd inside a container but lucky fo me, Matthew Warman had already figured this part out for CentOS and was extremely helpful in getting this to work for me with Ubuntu. With his guidance, I was able to build an Ubuntu 20.04 Docker image that was tailored for my purposes. You can use this image as a vagrant provider to start your own Ubuntu Docker containers that behave like virtual machines for doing development work, compete with an init system.

@stebo85 stebo85 moved this to High Priority in NeuroDesk Oct 23, 2022
@stebo85 stebo85 moved this to Waiting on volunteer in NeuroDesk Oct 23, 2022
@stebo85
Copy link
Contributor Author

stebo85 commented Nov 10, 2022

alternatives:

  • run vscode as app in jupyter hub

@stebo85 stebo85 removed their assignment Nov 10, 2022
@stebo85 stebo85 moved this from External volunteer needed to Internal volunteer needed in NeuroDesk Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Internal volunteer needed
Development

No branches or pull requests

2 participants