We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Processing and Vim
Page Index Toggle Pages: 1
Processing and Vim (Read 2579 times)
Processing and Vim
Nov 27th, 2008, 11:29pm
 
Hi,
first time here.

I searched around the web and the board for a solution to use Processing with the Vim editor. I've just found the syntax file in the official Vim site and some instructions to use an external editor.

I read about the option in the file menu of the default Processing editon, but it is not clear to me what is it for. I mean: is there a way to run the code inside Vim without opening the Processing editor?

That option just make Processing to accept editing from another editor? But still I have to click to "play" button. Am I wrong?

I read about compiling Processing to compile from the command line, but I didn't find any documentation. Are there instructions to achieve this?

I really want to use Processing and it would be great if I could use Vim to edit its files Cheesy

Thanks.
Re: Processing and Vim
Reply #1 - Nov 29th, 2008, 3:00pm
 
That would be grand. I'm a fan of vim and currently use it for quick edits to my .pde files.I save them and run 'em in processing. Kinda like using notepad really :S duh, but your post got me reading the vim site where I found a plugin that does syntax highlighting a reference look ups http://www.vim.org/scripts/script.php?script_id=2115
Re: Processing and Vim
Reply #2 - Nov 29th, 2008, 11:07pm
 
gnuskool wrote on Nov 29th, 2008, 3:00pm:
That would be grand. I'm a fan of vim and currently use it for quick edits to my .pde files.I save them and run 'em in processing.


Yes, I see. It would be nice, at least, a way to send the "run message" from Vim, so that one doesn't always have to switch window.

Quote:
but your post got me reading the vim site where I found a plugin that does syntax highlighting a reference look ups http://www.vim.org/scripts/script.php?script_id=2115


Yes, that's what I meant with "syntax file". I forgot to link it.
Re: Processing and Vim
Reply #3 - Dec 1st, 2008, 2:34am
 
Yep you can run Processing from the command-line, that's how I'm doing it with Emacs Smiley

The command-line options are here: http://dev.processing.org/reference/everything/javadoc/processing/app/Commander.html
Re: Processing and Vim
Reply #4 - Jan 30th, 2010, 7:59pm
 
[quote="omouse"]Yep you can run Processing from the command-line, that's how I'm doing it with Emacs [/quote]
how do I use that Commander tool? where is it located?
Re: Processing and Vim
Reply #5 - Jan 31st, 2010, 1:59am
 
The given link is still working... So there is the documentation and the location, processing.app. This package can be found in pde.jar.
Re: Processing and Vim
Reply #6 - Jan 31st, 2010, 4:44am
 
have been trying this out. but am having problems:

five:koala> /opt/processing-1.0.9/java/bin/java processing.app.Commander --sketch=/opt/sketchbook/Test --output=/tmp/processing --preprocess

Exception in thread "main" java.lang.NullPointerException
     at processing.app.Sketch.preprocess(Sketch.java:1424)
     at processing.app.Sketch.preprocess(Sketch.java:1194)
     at processing.app.Commander.<init>(Commander.java:197)
     at processing.app.Commander.main(Commander.java:97)

i'm not the first: gll here has the same thing in an older version

http://processing.org/discourse/yabb2/num_1253626417.html

and this in an older version still

http://processing.org/discourse/yabb2/num_1228466592.html

http://dev.processing.org/bugs/show_bug.cgi?id=1298
(marked as a duplicate as the second part about --preferences is raised elsewhere)

and kof here
http://processing.org/discourse/yabb2/num_1179990257.html
who provides a patch for Sketch.java
Page Index Toggle Pages: 1