Skip to content

[VSCODE] Error migrating the lock file: Expected depth to be zero #6515

@ThaDaVos

Description

@ThaDaVos

What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Nuget tool

Client library/SDK language

Csharp

Describe the bug

When I open my VSCode I get a notification telling me to migrate my workspace - but when I do I get below error:

Image

This project only has two lock files (two clients) - they are identical and I don't see any error with them:

{
  "descriptionHash": "46F456AA4E7D1B3BEA8A36C09B6D52F1C9D992D5A8BBF9DCFD6A1CBEFD1952E20638031062EC1C8682E32DE9BD20CF5F026255E865955DE2CD9B6A1E50C2E11D",
  "descriptionLocation": "../../../../../AuthProxy/webapi/OpenAPI/webapi.json",
  "lockFileVersion": "1.0.0",
  "kiotaVersion": "1.23.0",
  "clientClassName": "{HIDDEN}",
  "typeAccessModifier": "Public",
  "clientNamespaceName": "{HIDDEN}",
  "language": "CSharp",
  "usesBackingStore": false,
  "excludeBackwardCompatible": true,
  "includeAdditionalData": true,
  "disableSSLValidation": false,
  "serializers": [
    "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
    "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
    "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
    "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
  ],
  "deserializers": [
    "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
    "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory",
    "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory"
  ],
  "structuredMimeTypes": [
    "application/json",
    "text/plain;q=0.9",
    "application/x-www-form-urlencoded;q=0.2",
    "multipart/form-data;q=0.1"
  ],
  "includePatterns": [],
  "excludePatterns": [],
  "disabledValidationRules": []
}
{
  "descriptionHash": "4D13C71788D8FB8C54071BDFD29A09051E9C396902B48E481E28A143ACBBE581FB4B39E521C2A9702F81F3580D4A92EB054BD11FCDC8F66B356491F9FCBFF30B",
  "descriptionLocation": "../Assets/OpenAPI.yaml",
  "lockFileVersion": "1.0.0",
  "kiotaVersion": "1.23.0",
  "clientClassName": "{HIDDEN}",
  "typeAccessModifier": "Internal",
  "clientNamespaceName": "{HIDDEN}",
  "language": "CSharp",
  "usesBackingStore": false,
  "excludeBackwardCompatible": true,
  "includeAdditionalData": true,
  "disableSSLValidation": false,
  "serializers": [
    "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
    "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
    "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
    "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
  ],
  "deserializers": [
    "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
    "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory",
    "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory"
  ],
  "structuredMimeTypes": [
    "application/json",
    "text/plain;q=0.9",
    "application/x-www-form-urlencoded;q=0.2",
    "multipart/form-data;q=0.1"
  ],
  "includePatterns": [],
  "excludePatterns": [],
  "disabledValidationRules": []
}

Expected behavior

The workspace to be migrated

How to reproduce

Can't really tell as I can't figure out what's wrong but simply open VSCode with Kiota extension installed and click the migration notification

Open API description file

No response

Kiota Version

1.25.1

Latest Kiota version known to work for scenario above?(Not required)

No response

Known Workarounds

No response

Configuration

  • OS: Windows 11
  • ARCH: x64

Debug output

Not applicable as it uses the VSCode extension

Other information

No response

Metadata

Metadata

Assignees

Labels

CLIWork to support generating CLIs with KiotageneratorIssues or improvements relater to generation capabilities.help wantedIssue caused by core project dependency modules or librarypriority:p2Medium. For a p2 bug, generally have a work-around. Bug SLA <=30 daystype:bugA broken experiencetype:regressionA bug from previous release

Type

Projects

Status

Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions