ZenWave360 / karate-ide

The Best OpenSource IDE for KarateDSL.
https://marketplace.visualstudio.com/items?itemName=KarateIDE.karate-ide
Other
10 stars 4 forks source link

Command 'KarateIDE: Generate Karate Test' resulted in error (Cannot read property 'fspath' of undefined) #11

Closed mcrobbj-abrdn closed 2 years ago

mcrobbj-abrdn commented 2 years ago

There is nothing in the documentation that states how this should be defined. I get a failure for all the generators

ivangsa commented 2 years ago

KarateIDE Generators can be executed on OpenAPI (yml format) files using right-click context on explorer

https://github.com/ZenWave360/karate-ide#generate-karate-tests-from-openapi-definitions

I think you are trying to launch the command from Command Palette, where no file specified...

I may consider adding a File Prompt when launched from Command Palette but I think most users will use the context menu

Let me know if it works for you..

mcrobbj-abrdn commented 2 years ago

My mistake, your suggestion works. Many thanks.