Command Line Interface for Processing 4.4.1

I am trying to run Processing in VSCode. It is looking for the processing-java CLI. I cannot find it anywhere. I have seen it in very old version of Processing. Is it not part of the installation?

Hi @MSousa and thanks for your question. Which operating system are you using?

Hello,

processing-java.exe is not included with Processing 4.4.1 it seems.

Processing 4.4.3 (beta) has some new options:

This works from the W10 command-line:

D:\Program_Portable\Processing-4.4.3>processing cli --sketch=“D:\Users\GLV\Documents\P4\world_rotation” --run

I tried to get this to work with VS Code using this extension:
Processing VSCode - Visual Studio Marketplace

It does not work in VS Code:

That is as far as I got with this.

:)

1 Like

PS C:\Users\Stef-\Downloads\RotatingArcs> & "C:\Program Files\Processing\Processing.exe" cli --sketch=C:\Users\Stef-\Downloads\RotatingArcs --run 2>&1 | Out-String

Worked for me in VSCode

Cool beans! And thank you for that!

It does not work when I use the run button in VS Code and you can see this in the terminal output.

It does work if I launch it manually in the TERMINAL in VS Code:

Any thoughts on how to make this work with this extension?
Processing VSCode - Visual Studio Marketplace

And in the future this one?
Processing Language Server Extension for VSCode

Note to anyone visiting this post:
I am using Processing 4.4.3 (Beta)

:)

@glv Not sure how to make it work with the existing extensions, I could take a look at a later stage.

In the mean time, I have created a new one since there’s a lot happened with Processing under the hood to make some of it a lot easier to set up.

If you want, please give a try!

Functionality

  • Language Server Support, have the IDE give you suggestions on your code.
  • Easy to use, no more need to point VSCode to where Processing is installed.
  • Syntax Highlighting
  • Play/Stop buttons

Hello @stefterv ,

Where is it expecting it to be?

I have been installing portable versions on my D: Drive and renaming folders with the version number.

:)

1 Like

As long as you launch Processing (my custom 4.4.74) once, it’ll find it itself!

I am trying!

Processing 4.4.74 is installed on my W10 and I ran it at least once.

This is what VS Code is saying:

1 Like

Thank you for trying!

I just tried it on my Windows 10 VM both through the installer and with the portable version in the Downloads and on a second drive. I worked in all cases so not entirely sure what is going on there. I’ll add some more detailled error reporting later so we can diagnose this issue.

1 Like

Okay new version that will be a bit more verbose about errors taking place!