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

Teams Toolkit does not work inside a DevContainer #10718

Open
ross-p-smith opened this issue Jan 18, 2024 · 3 comments
Open

Teams Toolkit does not work inside a DevContainer #10718

ross-p-smith opened this issue Jan 18, 2024 · 3 comments
Assignees
Labels
investigating TA:PM PM investigation area

Comments

@ross-p-smith
Copy link

Describe the bug
If I try to use the Teams Toolkit from within a DevContainer then the extension does not get to the "Accounts" and allow me to login.

I open the project directly in WSL and the extension works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Teams Toolkit from inside a DevContainer and try and use the extension.

Expected behavior
The extension should work inside a DevContainer

Screenshots
Inside a DevContainer
image
In WSL
image

VS Code Extension Information (please complete the following information):

  • OS: WSL
  • Version5.4.0

CLI Information (please complete the following information):

  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@xiaolang124
Copy link
Contributor

@ross-p-smith In DevContainer, have you opened a Teamsfx project? If not, you can only see the getting started page. You can create a new app or open an existing Teamsfx app to view the accounts tree view.

@ross-p-smith
Copy link
Author

Hi @xiaolang124 this is the repo that it doesn't work in - https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator. Works fine if you run it natively in WSL. As soon as you run it in a devcontainer - the extension only shows the getting started project. This project has a Teamsfx project - but not at the root.

What file /directory structure is lighting up the the extension?

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Jan 30, 2024
@xiaolang124
Copy link
Contributor

xiaolang124 commented Feb 1, 2024

@ross-p-smith I have tested this repository in a development container. If you wish to utilize Teams toolkit features, you should open the './extensions/teams' folder in VS Code to enable the Teams toolkit to retrieve the relevant information.
And if you try to debug, you may need to add 'AZURE_FUNCTION_URL=https://<AZURE_FUNCTION_RESOURCE>.azurewebsites.net/api/http_cwyod' to env file.

image
image

@xiaolang124 xiaolang124 removed the needs attention This issue needs the attention of a contributor. label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating TA:PM PM investigation area
Projects
None yet
Development

No branches or pull requests

4 participants