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

Unreliable Preview #111

Open
srleach opened this issue Jun 15, 2024 · 0 comments
Open

Unreliable Preview #111

srleach opened this issue Jun 15, 2024 · 0 comments

Comments

@srleach
Copy link

srleach commented Jun 15, 2024

Describe the bug
The preview pane does not reliably reload it's contents. Certain events seem to trigger the preview to properly update, but I have not yet determined what triggers these. Given the nature of some of the workarounds, I suspect this is related to filesystem events under windows.

To Reproduce

  • Start a clean IntelliJ IDEA Project (empty)
  • Create test.scad
  • Populate a simple object - cube([5, 5, 5]); works fine for example.
  • Load the preview pane. The preview should load.
  • Update the dimensions of your element, or make another change in the file, and cause it to reload.
    • This can be by means of a manual regeneration, or automatically on file save
  • You should observe the model remaining static

Code snippet
Not Available

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Jetbrains platform and version: IntelliJ IDEA 2024.1.2 (Ultimate Edition)
  • OpenSCAD plugin version: Version 2.4.0

Additional context
The invocation to OpenSCAD and it's regeneration of the to-be-rendered STL do indeed appear to work as expected, however this does not seem to be detected by the preview pane.

Certain events seem to cause the preview to properly reload:

  • Opening or Closing the OpenSCAD Application
  • Navigating or Listing (ls) the out/html folder in the embedded terminal
  • Changing the focussed pane in IDEA (Sometimes required with the LS workaround too)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant