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 Code connect #4402

Closed
5 of 6 tasks
ivanja81 opened this issue Feb 3, 2023 · 2 comments
Closed
5 of 6 tasks

Teams Code connect #4402

ivanja81 opened this issue Feb 3, 2023 · 2 comments
Assignees
Labels
Area-Extension Terminal Issue-Bug A bug to squash. Needs: Author Feedback Please give us the requested feedback!

Comments

@ivanja81
Copy link

ivanja81 commented Feb 3, 2023

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

microsoft/vscode#173211

Looks to me it doesn't like the path as when i change path the issue is not there.

PS C:\Users\ivanja\OneDrive - Microsoft\Desktop\SFBTEAMSScripts> Connect-MicrosoftTeams
RuntimeException: Unable to find type [Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.IGetGroupsResponse].
at System.Management.Automation.TypeOps.ResolveTypeName(ITypeName typeName, IScriptExtent errorPos)
at System.Management.Automation.Language.Compiler.NewOutputTypeAttribute(AttributeAst ast)
at System.Management.Automation.Language.Compiler.GetAttribute(AttributeAst attributeAst)
at System.Management.Automation.Language.ScriptBlockAst.d__68.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at System.Management.Automation.CompiledScriptBlockData.InitializeMetadata() at System.Management.Automation.ScriptBlock.get_Attributes() at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.b__16_0(FunctionInfo fi) at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.ProcessRecord() RuntimeException: Unable to find type [Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.IGetGroupsResponse]. at System.Management.Automation.TypeOps.ResolveTypeName(ITypeName typeName, IScriptExtent errorPos) at System.Management.Automation.Language.Compiler.NewOutputTypeAttribute(AttributeAst ast) at System.Management.Automation.Language.Compiler.GetAttribute(AttributeAst attributeAst) at System.Management.Automation.Language.ScriptBlockAst.d__68.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at System.Management.Automation.CompiledScriptBlockData.InitializeMetadata()
at System.Management.Automation.ScriptBlock.get_Attributes()
at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.b__16_0(FunctionInfo fi)
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.ProcessRecord()
RuntimeException: Unable to find type [Microsoft.Teams.ConfigAPI.Cmdlets.Models.AccountType].
at System.Management.Automation.TypeOps.ResolveTypeName(ITypeName typeName, IScriptExtent errorPos)
at System.Management.Automation.Language.Compiler.GetAttribute(TypeConstraintAst typeConstraintAst)
at System.Management.Automation.Language.Compiler.GetRuntimeDefinedParameter(ParameterAst parameterAst, Boolean& customParameterSet, Boolean& usesCmdletBinding)
at System.Management.Automation.Language.Compiler.GetParameterMetaData(ReadOnlyCollection1 parameters, Boolean automaticPositions, Boolean& usesCmdletBinding) at System.Management.Automation.CompiledScriptBlockData.InitializeMetadata() at System.Management.Automation.ScriptBlock.get_Attributes() at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.b__16_0(FunctionInfo fi) at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.ProcessRecord() RuntimeException: Unable to find type [Microsoft.Teams.ConfigApi.Cmdlets.FlightingUtils+OverrideFlightMode]. at System.Management.Automation.TypeOps.ResolveTypeName(ITypeName typeName, IScriptExtent errorPos) at System.Management.Automation.Language.Compiler.GetAttribute(TypeConstraintAst typeConstraintAst) at System.Management.Automation.Language.Compiler.GetRuntimeDefinedParameter(ParameterAst parameterAst, Boolean& customParameterSet, Boolean& usesCmdletBinding) at System.Management.Automation.Language.Compiler.GetParameterMetaData(ReadOnlyCollection1 parameters, Boolean automaticPositions, Boolean& usesCmdletBinding)
at System.Management.Automation.CompiledScriptBlockData.InitializeMetadata()
at System.Management.Automation.ScriptBlock.get_Attributes()
at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.b__16_0(FunctionInfo fi)
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Runtime.PowerShell.GetScriptCmdlet.ProcessRecord()

PowerShell Version

PS C:\Users\ivanja\TeamsApps\stocks-update-notification-bot> $psVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      22621  963

Visual Studio Code Version

PS C:\Users\ivanja\TeamsApps\stocks-update-notification-bot> code --version
1.75.0
e2816fe719a4026ffa1ee0189dc89bdfdbafb164
x64

Extension Version

ms-vscode.powershell@2023.1.0
ms-vscode.powershell-preview@2023.2.0
tobysmith568.run-in-powershell@1.1.1

Steps to Reproduce

connect-microsoftteams in code

Visuals

No response

Logs

No response

@ivanja81 ivanja81 added the Issue-Bug A bug to squash. label Feb 3, 2023
@ghost ghost added the Needs: Triage Maintainer attention needed! label Feb 3, 2023
@SydneyhSmith
Copy link
Collaborator

Thanks @ivanja81 what path are you referring to?

@SydneyhSmith SydneyhSmith added Needs: Repro Info 🤔 and removed Needs: Triage Maintainer attention needed! labels Feb 9, 2023
@andyleejordan andyleejordan moved this from To do to In progress in Debug/Terminal Reliability Feb 14, 2023
@andyleejordan andyleejordan self-assigned this Feb 15, 2023
@andyleejordan andyleejordan added the Needs: Author Feedback Please give us the requested feedback! label Mar 9, 2023
@ghost ghost closed this as completed Mar 17, 2023
@ghost
Copy link

ghost commented Mar 17, 2023

This issue was closed automatically as author feedback was indicated as needed, but there has been no activity in over a week. Please feel free to reopen with any available information!

Debug/Terminal Reliability automation moved this from In progress to Done Mar 17, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Extension Terminal Issue-Bug A bug to squash. Needs: Author Feedback Please give us the requested feedback!
Projects
No open projects
Development

No branches or pull requests

3 participants