Rickaym / manim-sideview

A Manim utility extension for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=Rickaym.manim-sideview
MIT License
99 stars 11 forks source link

`Manim Sideview: Unable to infer the file-type for "xxx". Please select below.` Always pops up #59

Closed DanielHabenicht closed 1 year ago

DanielHabenicht commented 1 year ago

I keep on getting this popup on every save: image

It results in rendering this extension useless because now instead of just saving and looking at the output I have to click the message each time.

Is there any workaround? Or maybe it can save the decision for the current session? Or it would be really neat if an open Preview tab would autorefresh if it detects that the file it is previewing has changed. Thanks, otherwise it really works well! Might there be the option to use the PIP View without having the preview pane open?

lbirkert commented 1 year ago

Could you please provide the source code of the file you are trying to render?

DanielHabenicht commented 1 year ago

Sure here: https://github.com/DanielHabenicht/manim_plots

Rickaym commented 1 year ago

Could you please explain what you mean by this?

Or it would be really neat if an open Preview tab would autorefresh if it detects that the file it is previewing has changed.

The preview should automatically reload once a new scene is rendered.

Rickaym commented 1 year ago

Updating to 0.2.4 should fix the issue.

DanielHabenicht commented 1 year ago

Thanks for the update! I will try it out later today.

Could you please explain what you mean by this?

Or it would be really neat if an open Preview tab would autorefresh if it detects that the file it is previewing has changed.

The preview should automatically reload once a new scene is rendered.

That would have been another way of updating the current sideview. I think currently it is updated as soon as the scene is rendered (basically as the command is finisehd). Another way would be to listen to file changes of the MP4 or image file and then reload. Thus updating the sideview even if one is running the manim command manually. But thats not really needed, as you fixed this bug.

Rickaym commented 1 year ago

Thanks for the update! I will try it out later today.

Could you please explain what you mean by this?

Or it would be really neat if an open Preview tab would autorefresh if it detects that the file it is previewing has changed.

The preview should automatically reload once a new scene is rendered.

That would have been another way of updating the current sideview. I think currently it is updated as soon as the scene is rendered (basically as the command is finisehd). Another way would be to listen to file changes of the MP4 or image file and then reload. Thus updating the sideview even if one is running the manim command manually. But thats not really needed, as you fixed this bug.

Ah understood. No worries! Thanks for reporting the issue.

Rickaym commented 1 year ago

With regards to:

Might there be the option to use the PIP View without having the preview pane open?

we do have #26

jpvanoosten commented 1 year ago

I have Manim Sideview v0.2.5 installed in VS Code on Windows.

I wonder if this is related, but whenever I press Ctrl+S (or whenever autosave is triggered) when editing a non Manim file (on Windows) I get the Manim Sideview prompt to select a scene: image

How can I stop this from appearing?