Jump to content


external text editor for scripting


  • Please log in to reply
19 replies to this topic

#13 kursad

kursad

    Peon

  • Members
  • Pip
  • 72 posts
  • Joined: 13-May 10
  • Name:kursad kursad

Posted 21 June 2010 - 12:47 PM

View Postpushpathadam, on 23 April 2010 - 01:09 PM, said:

Anyone know where hconfig lives on a OsX installation? Or how to set the editor correctly to find
say
Applications/TextWrangler

I get an error with the above string as $EDITOR.

thanks

Tom




Try setting it up in your "houdini.env"

#14 pushpathadam

pushpathadam

    Peon

  • Members
  • Pip
  • 32 posts
  • Joined: 08-July 05
  • Location:Los Angeles
  • Name:Tom Pushpathadam

Posted 23 June 2010 - 11:31 PM

View Postkursad, on 21 June 2010 - 12:47 PM, said:

Try setting it up in your "houdini.env"

I did set it in the houdini.env as
EDITOR = /Applications/Textwrangler.app

When I hit the external editor button in the expression editor window I get this error:

Spawn Error: : Permission denied
Error running /Applications/Textwrangler.app
Argument list:
   0: /Applications/Textwrangler.app
   1: /tmp/hfs11156-134.tmp.str

-Tom P

#15 pushpathadam

pushpathadam

    Peon

  • Members
  • Pip
  • 32 posts
  • Joined: 08-July 05
  • Location:Los Angeles
  • Name:Tom Pushpathadam

Posted 25 June 2010 - 01:47 PM

Regarding hconfig and the houdini.env file. I was also looking at the houdini.env file in win xp.

I tried to define
JOB= $HOME/Job

same way I have it working in osx.

Having no luck what so ever. I was
modifying the file in HOME%\houdiniX.X\houdini.env

Is this correct? The docs are a bit sparse ..
http://www.sidefx.co...sics/config_env

thanks

Tom

#16 fxrod

fxrod

    Peon

  • Members
  • Pip
  • 73 posts
  • Joined: 12-January 07
  • Location:San Francisco
  • Name:Francisco Rodriguez

Posted 12 July 2010 - 02:18 PM

Using the Mac Terminal is great, Jeff, thanks!

I tried to set the env in my houdini.env file on my Mac in the following dir.

$HOME/Library/Preferences/houdini/10.0/houdini.env

I entered the following, based on Mario's post.
setenv EDITOR = "/usr/local/bin/gvim --nofork"

However, when I try to edit VEX code from the Type Properties window, I get a blank session of vim and none of the code. Is there any other way to confirm that it's expecting to use gvim? I was hoping it wouldn't fork.

Thanks,
Frankie
----------------------------------
Francisco Xavier Rodriguez (fxrod)
ILM FX TD

#17 fxrod

fxrod

    Peon

  • Members
  • Pip
  • 73 posts
  • Joined: 12-January 07
  • Location:San Francisco
  • Name:Francisco Rodriguez

Posted 12 July 2010 - 02:40 PM

View Postfxrod, on 12 July 2010 - 02:18 PM, said:

I entered the following, based on Mario's post.
setenv EDITOR = "/usr/local/bin/gvim --nofork"

Correction...  :huh:
EDITOR = "/usr/local/bin/gvim --nofork"

In my shell, I ran the help for EDITOR.
hconfig -h EDITOR

This mentioned that if the VISUAL environment variable is turned on, the EDITOR env var will not work. So, I went to my .cshrc file and removed the VISUAL env var, and it still didn't work..

Any help is appreciated.
----------------------------------
Francisco Xavier Rodriguez (fxrod)
ILM FX TD

#18 fxrod

fxrod

    Peon

  • Members
  • Pip
  • 73 posts
  • Joined: 12-January 07
  • Location:San Francisco
  • Name:Francisco Rodriguez

Posted 14 July 2010 - 03:29 PM

Side FX has replicated the problem and has submitted a bug. If/when it gets fixed, I will post back.
----------------------------------
Francisco Xavier Rodriguez (fxrod)
ILM FX TD

#19 Macha

Macha

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,654 posts
  • Joined: 23-July 08
  • Location:The Small Big P
  • Name:Marc ♥

Posted 30 April 2012 - 08:37 PM

old thread, but any news on this?

I'm trying to get get TextWrangler running as an external editor on a mac but no luck.
My Vimeo

LinkedIn

improve side effects - use haskell


#20 edward

edward

    Grand Master

  • Members
  • PipPipPipPipPip
  • 3,339 posts
  • Joined: 10-September 02
  • Name:e.d.w.a.r.d. .

Posted 30 April 2012 - 09:22 PM

I don't have a Mac handy but I don't see why it shouldn't work. Test running "TextWrangler.app test.txt" in a shell first and see if that works. Ensure that it does not fork. Secondly, if it's a graphical text editor, then you should set VISUAL, not EDITOR. For the record, this what I have:

EDITOR = "vim"
VISUAL = "gvim -f"
don't panic!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users