-
Notifications
You must be signed in to change notification settings - Fork 4
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
[error] TypeError: Cannot read properties of undefined (reading 'paths') #24
Comments
thanks for take the time to report this, it seams that its not finding the I will request some help from OSX users to see if this is related to the OS... Does this fail with every yaml file or just this |
Hi @ivangsa , this is not what I meant. If you can redirect me to some "how to contribute" page, I can set up the project and give a try on my own. |
Starting Karate-ide in debug mode is very easy. Two steps:
This will start a new window where you can 'use' the plugin Place a break point arround src\generators\openapi\OpenAPIGenerator.ts line 21 |
I had a debugging session with Visual Studio Code.
Error 1When I start the debug session (but haven't asked yet to generate the test), I get this error:
and this is because
In FilesManager.loadfiles, I check the condition as below:
and the error message went away. Error 2The debugger stop on some lines but to all of them. I think it stops when initializing the extension but it doesn't when I try to generate the tests.
The breakpoint at the line 21 of
Do you have any clue? |
(you don't need to attach the debuggeer to Error 1: load files should work only after opening a workspace, but shouldn't throw an error (that is a bug). On the debugged window open a workspace to work with. Error 2: not sure why the debugger doesn't stop, and I know it's uggly but use console.log to make sure it goes inside |
Error 1: I found that it's a normal behaviour of Visual Studio Code. I will investigate later to confirm if a patch would be benefical. Error 2: the debugger actually works, but not all the time. console.log doesn't work at all. I tried to rebuild the Other thoughts
that lock contraint the way the file system has to be shaped. |
This is configurable through settings but I expect most users will automate through maven tests but it's configurable
Make sure you run |
Anyway, if I change the
the Please note that:
Do you have any trick? |
I think the vscode window where you are testing (where you see |
Hi @ivangsa, I want to add some tests but the project doesn't have any boilerplate to run them. |
hmm I'm afraid "tests" are some technical debt the project has.. but go ahead an propose something.. |
Then I'll try to submit a first merge request with that infrastructure. |
Hi,
I have:
Visual Studio Code
ZenWave Karate IDE v1.3.4
ZenWave KarateIDE Classpath Jar v1.4.0
Karate Jar: karate-1.4.0.jar
Procedure
In the explorer, I right click a yaml file, then I click Karate IDE Generate Karate Test
Results
While with the
petstore.yaml
, the plugin works, with aapi.yaml
file created by me I get the error message below:Additional information
petstore.yaml
and ofapi.yaml
doesn't ring any bell.karate-1.4.0.jar
tokarate.jar
has no effect.The text was updated successfully, but these errors were encountered: