Skip to content

updates for Processing 4#263

Merged
jeremydouglass merged 3 commits into
processing-r:masterfrom
benfry:master
Aug 17, 2021
Merged

updates for Processing 4#263
jeremydouglass merged 3 commits into
processing-r:masterfrom
benfry:master

Conversation

@benfry

@benfry benfry commented Jul 3, 2021

Copy link
Copy Markdown
Contributor

Changes included:

  • Changes to use reflection to access the deprecated/removed frame field
  • Some whitespace was trimmed automatically by my editor; feel free to ignore
  • Should work fine with both Processing 4.x and 3.x

@gaocegege

Copy link
Copy Markdown
Member

Thanks for the PR! @jeremydouglass Please have a look.

@jeremydouglass

Copy link
Copy Markdown
Member

Sorry for the delay -- been extremely ill, catching up.

@jeremydouglass

Copy link
Copy Markdown
Member

Looks like I also still need to migrate this repo from Travis-CI to GitHub actions. sigh.

i1.loadPixels();
int[] ip1 = i1.pixels;
for (int n = 0; n < ip0.length; n++) {
int pxl0 = ip0[n]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's weird. Blame says that I introduced this breaking typo when I merged a large set of codacy style changes --

https://github.com/processing-r/Processing.R/blame/733fb86e5a695eb78d26082cb189098f3b901b21/src/test/e2e/util/ImageUtils.java#L32

but then that build passed on the CI server!

https://travis-ci.org/github/processing-r/Processing.R/builds/569579118

I'm not sure how that is possible, unless that build didn't perform the e2e ImageUtils phase at all. Something to look at when setting up Actions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, that build actually failed in the log, it just displayed as passed for some reason. ugh.

@jeremydouglass jeremydouglass left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I can see that Processing 4 has moved to PConstants.MACOS, e.g.
processing/processing4@fab6b59

Going forward, any reason we should add both MACOSX / MACOS internally to our available PConstants? Currently we just import PConstants from the processing 3 core, attach them to BuiltinApplet and then extend RLangPApplet with them.

@benfry

benfry commented Jul 7, 2021

Copy link
Copy Markdown
Contributor Author

Nope, MACOSX to MACOS is a change in name only. So you can keep it MACOSX for now if you want to use the same source with 3.x and 4.x (that's why I reverted it back to MACOSX here).

That being said, I wouldn't recommend supporting 3.x any longer. Apple's aggressive OS changes alone will make it nearly impossible to run Processing there in the near future, if not already.

@gaocegege

Copy link
Copy Markdown
Member

Any progress here? I can help test it if needed.

@jeremydouglass

Copy link
Copy Markdown
Member

@gaocegege sorry this dropped off my radar. I've build and run through the examples / tests -- everything still works on Processing 3, but could you give the release I upload a quick try on the latest Processing 4? I don't have a 10.14 mac available at the moment to confirm.

@jeremydouglass jeremydouglass merged commit 7872d64 into processing-r:master Aug 17, 2021
@jeremydouglass

Copy link
Copy Markdown
Member

Closed #262

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

Successfully merging this pull request may close these issues.

3 participants