Processing.py-Bugs icon indicating copy to clipboard operation
Processing.py-Bugs copied to clipboard

WARNING Illegal...

Open ANDORLOOP opened this issue 4 years ago • 4 comments

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper (file:/C:/Users/Kosta/Documents/Processing/modes/PythonMode/mode/jython.jar) to method sun.nio.ch.SelChImpl.getFD() WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

This come up after installing Python Mode for Processing. in addition, programs written in python mode don't run.

for example, size(500,500) print('Hello World')

or just

print('Hello World')

has no results. Nothing happens

follow up: this comes after reading tibofordeayn's post posted on Sep 19. The Warning messages that I included above are associated with V4, which I already replaced with V3.5.4. I have no issues with V3.5.4.

ANDORLOOP avatar Oct 31 '21 22:10 ANDORLOOP

Are you using Processing 3.5.4 or Processing 4? Python Mode supports Processing 3.

tabreturn avatar Nov 01 '21 00:11 tabreturn

I was using V4. Came to the understanding that the V4 does not support Python Mode. I replaced V4 with V3.5.4

ANDORLOOP avatar Nov 01 '21 00:11 ANDORLOOP

Aha - thanks @tabreturn I made the same error. Would be awesome to have a notification indicating this limitation somewhere when adding Python to Processing 4...

surroundsound5000 avatar Nov 17 '21 06:11 surroundsound5000

@surroundsound5000 -- to be fair, it is listed as Python Mode for Processing 3 in the Processing IDE's Contribution Manager window. But then again, many users make this error, and good usability design dictates one doesn't blame the user.

Maybe greying it out (in the Processing 4 IDE) like some of the other non-compatible modes (CoffeeScript, etc.) is the way to go.

tabreturn avatar Nov 17 '21 07:11 tabreturn