Skip to content
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

Capture error output from render, show in VSCode #9

Open
kennebel opened this issue Mar 13, 2022 · 5 comments
Open

Capture error output from render, show in VSCode #9

kennebel opened this issue Mar 13, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request win32

Comments

@kennebel
Copy link
Member

Need to figure out how to capture povray render error output to show directly in VSCode.

Tor Olav from news.povray.org suggests:
https://stackoverflow.com/questions/43007267/how-to-run-a-system-command-from-vscode-extension

Other suggestions:
https://news.povray.org/povray.programming/thread/%3Cweb.6222ab8d92d88b32ace99571a96b55c3%40news.povray.org%3E/

@kennebel kennebel added enhancement New feature or request win32 labels Mar 13, 2022
@kennebel
Copy link
Member Author

Further info: I'd like to get error output similar to what Linux POV-Ray/VSCode provides, but on the Windows side.

File '/home/povver/povray/test/wtorus.pov' line 25: Parse Error: No matching }
 in 'pigment', undeclared identifier 'Blueer' found instead
Fatal error in parser: Cannot parse input.
Render failed

@RufusJWB
Copy link
Contributor

Is there any progress on this topic?

@kennebel
Copy link
Member Author

I'll have to check if the POV-Ray windows dev team has added additional error output. Last time I reviewed this in March, i couldn't find anything.

@kennebel kennebel self-assigned this Nov 22, 2022
@RufusJWB
Copy link
Contributor

I might have found a way forward: you can use the command line switch "+GF" that redirects the fatal errors into a file. As an example, I used this command:

pvengine.exe /EXIT /RENDER c:\Users\z002m76a\Repositories\learn-quantum-computing\Documentation\bloch.pov +GFfatal.log -D Width=1024 Height=1024 Output_File_Name=c:\Users\z002m76a\Repositories\learn-quantum-computing\Documentation\ /nr-quantum-computing\Documentation\ /nr

and in the file fatal.log I get this error message:

File: c:\Users\z002m76a\Repositories\learn-quantum-computing\Documentation\bloch
.pov  Line: 220
File Context (5 lines):
                matrix < NX.x,NX.y,NX.z, NY.x,NY.y,NY.z, NZ.x,NZ.y,NZ.z, 0,0,0 >
                translater
Parse Error: No matching } in 'object', undeclared identifier 'translater' found
 instead

This file could be parsed and displayed in VS Code.

@RufusJWB
Copy link
Contributor

For whatever reasons I'm not able to capture the error stream, not even directly in PowerShell. I wonder if the error stream works at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request win32
Projects
None yet
Development

No branches or pull requests

2 participants