Closed bfitzpat closed 5 years ago
Created an upstream issue - https://github.com/jboss-fuse/wsdl2rest/issues/85
@lhein I think this is a threading issue. In Eclipse, we do the Thread dance (https://github.com/jbosstools/jbosstools-fuse/blob/c4d7ad6a9b1a9ea04953dc48e8bde84884d56692/editor/plugins/org.fusesource.ide.wsdl2rest.ui/src/org/fusesource/ide/wsdl2rest/ui/wizard/Wsdl2RestWizard.java#L376) -- is there a comparable idea in JS/TS? I think not, since it's largely single threaded as a rule.
As such, I think we are going to need to update wsdl2rest to bubble up the "noVelocityLog" option as a command line option to work around this. The code is already in wsdl2rest, but we didn't make it available because we didn't need it that visible.
That is unless you have an idea of how to handle this?
Interesting. On my side it worked without any errors. I have no answer yet for your question.
it is working fine for me too. @bfitzpat Can you point to the wsdl you are using and the option that you choose please?
is there a comparable idea in JS/TS? I think not, since it's largely single threaded as a rule.
no there isn't. Here we have a SpringBoot application launched, I see there is no reason that there is a Classpath visibility issue.
I have tried with https://github.com/bfitzpat/vscode-wsdl2rest/blob/master/src/test/address.wsdl and https://github.com/bfitzpat/vscode-wsdl2rest/blob/master/src/test/helloworld.wsdl with all defaults from that point forward.
On Fedora I get a different result...
[DEBUG] WSDL File URI: file:///home/bfitzpat/workspaces/testme/address.wsdl
[DEBUG] DSL Type: Spring
[DEBUG] Ouput Folder: src/main/java
[DEBUG] JAXWS Endpoint: http://localhost:8080/somepath
[DEBUG] JAXRS Endpoint: http://localhost:8081/jaxrs
rejected promise not handled within 1 second
Turned out to be a local npm issue (https://til.codes/npm-install-failed-with-cannot-run-in-wd-2/) that I was able to resolve using the first option listed in the post. And the extension does run fine on fedora. Unsure why this is giving me grief on my Windows box.
Velocity failure on windows only occurs when debugging from inside a running vscode instance. If you run tests externally, it runs fine (npm test). Going to close this as unneccesary