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

Q# create an Azure Quantum notebook not working in Codespaces #1133

Open
xinyi-joffre opened this issue Feb 8, 2024 · 2 comments
Open

Q# create an Azure Quantum notebook not working in Codespaces #1133

xinyi-joffre opened this issue Feb 8, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@xinyi-joffre
Copy link

xinyi-joffre commented Feb 8, 2024

Describe the bug

If I install the VSCode extension in GitHub codespaces using devcontainer, it installs it as a normal extension (not a "Browser - Installed" list). In this scenario, I can see the Q# commands, but when I click on "Q# create an Azure Quantum notebook", it errors out. If I choose to manually install it as a browser extension (not using devcontainer settings), refresh the page, then it works.

image

image

To Reproduce

Steps to reproduce the behavior:

  1. Open codespace such as: https://codespaces.new/microsoft/azure-quantum-python/tree/xinyi%2Fdevcontainer
  2. Wait for codespace to initialize
  3. Try to run command for "Q# create an Azure Quantum notebook"

Expected behavior

Expect that the command generates a notebook.

System information

  • Extension version: v1.1.1
  • Environment: Codespaces with VSCode
@xinyi-joffre xinyi-joffre added bug Something isn't working needs triage labels Feb 8, 2024
@xinyi-joffre xinyi-joffre changed the title Q# Q# create an Azure Quantum notebook not working in Codespaces Feb 8, 2024
@minestarks
Copy link
Member

Hmmm, I suspect that installing the extension this way (into the container instead of the browser) just doesn't work since we're built as a web extension. I'm getting an activation failure and nothing is working, not just notebooks -

2024-02-08 13:35:19.723 [error] Activating extension quantum.qsharp-lang-vscode failed due to an error:
2024-02-08 13:35:19.723 [error] Error: 
	at R.vb (../../../vs/workbench/api/worker/extensionHostWorker.js:108:48266)
	at async Promise.all (index 0)
	at async n (../../../vs/workbench/api/worker/extensionHostWorker.js:95:6256)
	at async n.m (../../../vs/workbench/api/worker/extensionHostWorker.js:95:6219)
	at async n.l (../../../vs/workbench/api/worker/extensionHostWorker.js:95:5676)

I think @billti has a more better understanding of the extension architecture here... is there anything we can do to get around it, or does the user have to install our extension from the browser?

@xinyi-joffre the Q# extension comes preinstalled at https://vscode.dev/quantum/ - I don't know what your goals are but I wonder if just going to that URL and connecting to the Codespace would be an acceptable experience?

@billti
Copy link
Member

billti commented Feb 8, 2024

Ugh. There are just so many permutation of this setup. I've tested codespace, and containers, and browser installs, and using Jupyter Notebooks in them (and that widgets work etc.). But maybe I didn't try this combo, or maybe something broke across releases (ours or VS Code). I'll give it a shot when I get a chance and report back.

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
None yet
Development

No branches or pull requests

4 participants