Extension not working with relative paths on Mac
- Dominant language
- C#
- Stars
- 3.8k
- Forks
- 333
- Avg merge
- 16h 29m
- Merged PRs (30d)
- 116
Description
### 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
Installed dotnet tool Microsoft.OpenAPI.Kiota glabally (1.32.2)
Extension version 1.32.100000003
Issue 1:
When using the extension to generate a client, it creates an apimanifest.json and an workspace.json in the ./kiota directory. When selecting it afterwards in the workspace view, I get the error: "Error running command kiota.workspace.selectItem: Could not open the file at .....". When I change the properties apiDescriptionUrl, descriptionLocation in the apimanifest.jon and workspace.json everything is working correctly.
Issue 2:
When I execute the command "search for a lock file" I get a popup with the error "command kiota.searchLock not found"
### Expected behavior
Possibility to use relative paths in Kiota configuration files.
### How to reproduce
- Select endpoint via API explore by selecting openapi json file
- Generate Client
- Select it in workspace view
### Open API description file
_No response_
### Kiota Version
1.32.2 / 1.32.100000003
### Latest Kiota version known to work for scenario above?(Not required)
_No response_
### Known Workarounds
_No response_
### Configuration
_No response_
### Debug output
Click to expand log
```
```
### Other information
_No response_
Contributor guide
Research direction
Start by examining the generated kiota/apimanifest.json and workspace.json files and the extension flow used when selecting an item in the workspace view. Reproduce the relative-path failure with the listed Kiota versions, then inspect how the “search for a lock file” command is registered and invoked. Done means relative paths work and the command no longer reports “kiota.searchLock not found”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, vscode
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100