Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Drag and Drop & "Add File" broken for .pde files in 3.0a10 #3383
This was working fine on Processing 2.x, now dragging a .pde file into the editor will return an error. The file is added correctly to the sketch folder but the editor doesn't refresh the changes and pops up this dialog:
This also prints into the console after that error:
Tested on Windows x32. Version 2.2.1 works as intended, versions after 3.x have this problem (Tested on 3.0a4, 3.0a5, 3.0a10) probably a PDE X issue.
To clarify, what I meant by PDE X is the new, default "Java" mode that ships with 3.x but this also seems to happen with the fallback "Java (2.0)" mode so I may be mistaken about that.
I will test on other Windows computers later to see if this is somehow specific to my system, my first suspect to cause something like this would be large file paths or special characters in them but I don't know exactly what changed with the new IDE related to that. Processing 2.2.1 handles this without trouble for me.
Fixed for the next release.
@joelmoniz This was in your "Add File" progress code... You can't run that stuff on another thread and just hope it finishes in time for it to be used. For data folder items it's no big deal, but a .pde file is used immediately by the environment, so you can't do that from a thread without waiting for the copy to finish.