You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The "Download SOAP Web Service API..." function doesn't download and unzip the Java documentation correctly. In the output log, I can see the following messages:
I used the link from the log to download the file myself in Chrome and that was successful.
To Reproduce
Steps to reproduce the behavior:
Upload a cartridge with a webreferences2 folder that contains a WSDL file. For my testing, I used this one as it seemed simple enough to rule out odd WSDL parsing or complicated namespacing issues: http://www.dneonline.com/calculator.asmx?wsdl
Execute a function in that cartridge that uses that WSDL file (eg, a line of code like var webRef = webreferences2.calculator;)
In vscode, right click on the WSDL file and click the "Download SOAP Web Service API..." option.
Choose a destination folder.
Try to unzip the downloaded file.
Expected behavior
The zip file would be downloaded properly and optionally unzipped.
Desktop (please complete the following information):
I suspect the problem is that string encoding is being applied to the downloaded data as it is received and joined, etc.
Some quick alternative thoughts - Maybe instead of downloading and unzipping the file, Prophet could just open a browser window to the generated URL and let a browser download it? Alternatively, I think the fix for the code would be to pass in your own response handler for binary files and write the bytes directly to disk as they are received rather than buffering them to a string array first.
The text was updated successfully, but these errors were encountered:
I just noticed that the code also does something with javadoc! I was happy enough just to have a bunch of .java files that told me what functions / types were exposed! So maybe my suggestion of just letting the browser download the file isn't enough - Or maybe 2 menu options could be exposed: 1) Download java files 2) Show Javadoc results if JDK is installed.
Describe the bug
The "Download SOAP Web Service API..." function doesn't download and unzip the Java documentation correctly. In the output log, I can see the following messages:
I used the link from the log to download the file myself in Chrome and that was successful.
To Reproduce
Steps to reproduce the behavior:
var webRef = webreferences2.calculator;
)Expected behavior
The zip file would be downloaded properly and optionally unzipped.
Desktop (please complete the following information):
Additional context
I did a quick skim of the code to see if it was something I was doing wrong; Here are a few links that seemed relevant:
prophet/src/server/WebDav.ts
Line 260 in 8f4a79e
prophet/src/server/WebDav.ts
Lines 40 to 43 in 8f4a79e
prophet/src/server/WebDav.ts
Line 64 in 8f4a79e
I suspect the problem is that string encoding is being applied to the downloaded data as it is received and joined, etc.
Some quick alternative thoughts - Maybe instead of downloading and unzipping the file, Prophet could just open a browser window to the generated URL and let a browser download it? Alternatively, I think the fix for the code would be to pass in your own response handler for binary files and write the bytes directly to disk as they are received rather than buffering them to a string array first.
The text was updated successfully, but these errors were encountered: