necsoft / codepoems

:rocket: Experimental IDE for the Processing Language
http://hinecsoft.com/codepoems/
74 stars 5 forks source link

Processing 3.* compatibility #84

Open necsoft opened 9 years ago

necsoft commented 9 years ago

It's not working with Processing 3.*, I believe it's for some minimal changes in processing-java.

proce55or commented 9 years ago

The same here, Mac OS X

takawo commented 9 years ago

In my situation, console shows the message.

  / Usr / bin / processing-java: line 2: cd: / Applications / Processing_ 3.0b2.app / Contents / Java: No such file or directory

Then, I'm not a vim-user so,

  1. Finder menu -> move to -> "/ usr / bin / processing-java"
  2. Open a processing-java.exec in a text editor such as Sublime Text

It is written in the form in the following form, the beginning of the second line

  cd "/Applications/Processing_ 3.0b2.app/Contents/Java" && 

Change the file name of the Processing.app.(Processing_ 3.0b2.app→Processing.app or something)

  /Applications/Processing.app/Contents/PlugIns/jdk1.8.0_XX.jdk

The version of the "jdk1.8.0_XX.jdk" in the same line, Applications/Processing.app -> right-click ->context menu -> "Show Package Contents", to check and fix.

necsoft commented 9 years ago

Hello @takawo thanks for your answer, so you have no way to use processing-java from your terminal before that changes? That's strange. I need to find a way to use processing-java as processing install it. I'm currently travelling, but I'm trying to fix this problem!

dcturner commented 9 years ago

Same issue here, having made @takawo 's amends, I'm now seeing the following error;

"Could not find or load main class processing.mode.java.Commander"

takawo commented 9 years ago

Hi necsoft. Before I used codepoems, I've already installed Processing(3b2). I don't know why it didn't show the alert dialog that suggests to install processing-java (ver 2.2.1)...

oops

I hope you have a nice trip! Thank you.

Zarickan commented 9 years ago

Same here, not working with Processing Java installed, still get the message.

valdu02100 commented 8 years ago

Hey !

I had the same problems when I had open the application. Go to : /Applications/codepoems.app/Contents/Resources/app.nw/app Open ui.js

Change : //Processin-java -> /usr/local/bin/processing-java;

child.stdout.on('data', function() {
    data = true;
});

child.on('close', function() {
    callback(data);
});

}

to :

child.stdout.on('data', function(data) {
    data = true;
});

child.on('close', function(data) {
    callback(data);
});

}

After that, application open ! But I can't run any code...

necsoft commented 8 years ago

Sorry guys, I have been busy these last months, but I'll fix this problems in a few weeks, sorry for the delay!

jshuadvd commented 8 years ago

Any updates on this? I can get this to work if I open the nwjs file in the /Contents/MacOS folder of the package, but other than that, no dice.

necsoft commented 8 years ago

@jshuadvd Hey I'm sorry for the delay but I didn't have time to check out this problem again, I've tried to fix that a few weeks ago but with the changes of versions of the Processing CLI it becomes really messy to fix. The temporal solution is use Processing 2.*

I will try to fix this in the next weeks!

jshuadvd commented 8 years ago

@necsoft no worries. Thanks for your response. Ok. I'll prob. Just wait until your fix. Really love this editor and would love to help contribute. Great job man!!! 😊

LarsEck commented 8 years ago

It seems to me, that parts of the problem may be related to El Capitans "System Integrity Protection", which prevents third-parties from writing to /usr/bin, further suggesting to use /usr/local/bin. So processing-java (on El Capitan) is installed to /usr/local/bin.

Unfortunately, the process.env.PATH didn't contain /usr/local/bin (at least on my machine), so running exec('which ' + 'processing-java'); leads to return value of false.

Adding /usr/local/bin to the process.env.PATH seems to fix the problem. While that may not be the preferred way to deal with this, adding the following line(s) to check_processing_java() in app.js may be an option for someone desperate enough ;) :

if (process.platform === 'darwin') { process.env.PATH += ':/usr/local/bin'; }

Edit: This may not be directly related to the other encountered issues here. This just deals with the problem of wrongly displaying the error message at launch. I was already able to use codepoems before, with the workaround suggested by jshuadvd.