-
Notifications
You must be signed in to change notification settings - Fork 1
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
WireViz 0.4 changed CLI parameters #5
Comments
Oh nice. Looking at the changelog, seems like this should resolve some of the clutter that resulted in workarounds for #3. I'll also have a look at why errors are being swallowed. Changelog didn't seem to mention anything. PS. Sorry turnaround may be a little slow on this. I've got other stuff on my plate at the moment. |
Currently blocked by wireviz/WireViz#344 on 0.4, so I couldn't test anything. Will probably hold off until their proposed fix (planned for 0.4.1) has been properly tested and released. |
@martinrieder would you be willing to test the I've made it work with their proposed fix for the aforementioned issue, but I'd like it for someone running an official 0.4 to confirm. |
Would it be sufficient to only replace the files for testing? Or do I need to reinstall the extension? |
If you're running the extension from source, you could just git pull/checkout the whole branch and run it. |
@nanangp Thanks a lot for this quick reaction. No, I had it installed from Marketplace, so I did the I can confirm that it executes, though there are some timing issues. When VScode has not finished saving the file or you double click the Preview (F8) button, you might see an Error shortly before it displays an image. I have not been able to capture a screenshot of it yet. Besides these glitches, I am quite happy about your changes. Pictures are generated for both PNG and SVG, even with included images. These can also be placed in another folder! |
Could you possibly feed to the output messages to the console instead of the panel? Or STDOUT to the console and STDERR to the panel? |
That's interesting. It's possible that This may have been an existing bug, or a side effect of the small change to using the process'
Sounds good. I'll add debug console logging in addition to the panel. It's rather annoying that WV is using stdout instead of stderr for a bunch of their errors. This was meant to be fixed in the stdout PR that is yet to be merged. |
Note that wireviz/WireViz#321 by @ggrossetie resolves wireviz/WireViz#320, but is not yet part of the 0.4 release.
|
Closing this, as we have #8 to follow up. |
Reopened because I found an absolute path in Having the --prepend option implemented is not mandatory for closing this issue. The inclusion of files is WIP anyway, so it might be removed in future releases. I created #9 feature request for output file formats though, which extends the current funionality. |
Oops |
A WireViz "release candidate" release/v0.4-rc2 was merged into master based on PR wireviz/WireViz#339. See the change log here for details about new command line options and output file formats. Note that also examples 11-14 were added to demonstrate the new features.
The VSCode extension is still able to run WireViz 0.4 and show an output image. However, it would not show an error messages to the user when it fails and therefore no files were generated. Additionally, if the picture already existed from a previously successful run, this would be presented to the user instead without any error indication.
I am pasting the
--help
message here for reference:The text was updated successfully, but these errors were encountered: