processing4 icon indicating copy to clipboard operation
processing4 copied to clipboard

.pdez files not opening on first launch in Windows

Open dipamsen opened this issue 1 year ago • 1 comments

Description

Opening a .pdez file shows a blank sketch, if no other processing instances are running.

Expected Behavior

On opening a .pdez file, it should open the sketch, regardless of whether other instances of processing are running the background.

Current Behavior

When there are no instances of processing already open; and I open a .pdez file, a blank sketch is opened, instead of showing its contents:

image

Only then, if I try again to open the .pdez file, it opens the correct sketch, now that one instance of Processing was already open.

https://user-images.githubusercontent.com/59444569/236745593-13c3aab1-e57d-4fd0-b8ec-a94ac4a5ef80.mp4

Steps to Reproduce

A) Directly opening through file

  1. Assume there exists a file mySketch.pdez which is a valid pdez file with some code in it.
  2. Double click on this file. A blank sketch named sketch ###### will open up, which is empty.
  3. Without closing this processing instance, again try to open the .pdez file. This time, it will actually open up the correct code for the sketch.

B) Using pde:// URI Schema

  1. Go to Processing pde:// demo
  2. Make sure that no processing instances are currently open. Click on the "Open in Processing" button. Allow the browser to open the file in processing.
  3. A blank sketch will open up.
  4. Again, on trying once again the correct sketch will open up, since the blank processing sketch is still open.

Your Environment

  • Processing version: 4.2
  • Operating System and OS version: Windows 11 10.0.22000
  • Other information:

dipamsen avatar Apr 11 '23 05:04 dipamsen

Same problem with version 4.3 on Windows 11.

nbourre avatar Aug 18 '23 18:08 nbourre