help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit problem Octave


From: Nicholas Jankowski
Subject: Re: Edit problem Octave
Date: Wed, 16 Jan 2013 12:32:04 -0500

On Tue, Jan 15, 2013 at 11:57 PM, Paulo SantosVasconcelos <address@hidden> wrote:
Nick,
 
When I edited the octaverc to mode sync, the error now is:
'C:\\Program' is not recognized as an internal or external command, operable program or batch file.
 
See attached the files.
 
Thanks.
 

From: address@hidden [address@hidden] On Behalf Of Nicholas Jankowski [address@hidden]
Sent: Tuesday, January 15, 2013 10:08 AM
To: Paulo SantosVasconcelos
Cc: Octave users list
Subject: Re: Edit problem Octave

On Tue, Jan 15, 2013 at 1:00 PM, Paulo SantosVasconcelos <address@hidden> wrote:
 

From: address@hidden [address@hidden] On Behalf Of Nicholas Jankowski [address@hidden]
Sent: Tuesday, January 15, 2013 9:57 AM
To: Paulo SantosVasconcelos
Cc: address@hidden
Subject: Re: Edit problem Octave



On Tue, Jan 15, 2013 at 12:39 PM, Paulo SantosVasconcelos <address@hidden> wrote:
To whom it may concern,
 
I installed Octave with an installer made for Windows. I am learning MATLAB, so I was trying to use both program to make comparisons and test commands. The commands seemed to work fine but when I wanted to test writing a script...
 
I tried to run the notepad++ editor like this:
octave:1> edit
 
but, I got a system error that said:
octave:2>
error: system: CreateProcess failed -- can't create child process
error: called from:
error:     C:\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\miscellaneous\edit.m at line 212, column 7 
 
I google it and found some fixes like: double or quadruple backslashes, forward slashes, but it did not work. 
 
Thank you for your help


Do you have the Notepad++ editor installed? (I know the MinGW version doesn't include Notepad++. fairly certain Visual Studio version doesn't either.

Brief directions for adding Notepad++
http://wiki.octave.org/Octave_for_Windows#Optional_installation_of_Notepad.2B.2B_as_an_editor_.28recommended.29

> Yes, I do have Notepad++ installed.

figured as much, thought worth asking. looks like it's the same problem reported here:
http://savannah.gnu.org/bugs/?35283

supposedly it can be worked around by adding

edit mode 'sync';


to your .octaverc file.  should be able to test by entering that command and typing edit, see if you still get the error.

nickj

>On Tue, Jan 15, 2013 at 11:57 PM, Paulo SantosVasconcelos <address@hidden> wrote:
>Nick,
>
>When I edited the octaverc to mode sync, the error now is:
>'C:\\Program' is not recognized as an internal or external command, operable program or batch file.
>
>See attached the files.
 
(Replying to the list to keep the thread together.)

Ok, that error sounds like it's having problems with the space in the string for the program location.  The editor line from the octaverc file you attached is
EDITOR('C:\\Program Files(x86)\\Notepad++\\notepad++.exe');

mine, which works fine (different editor), is:
EDITOR('C:\\Octave\\wscite\\SciTE.exe');

you could try re-installing notepad++ in a location without spaces. not sure if there's a different work around.

just to confirm, what comes up when you type EDITOR at the octave prompt (all caps).  is the error in storing the EDITOR variable, or in using it in the edit call?

next question to the group... does it matter if that's in a double quote or single quote? examples I see online that supposedly work have a double quote. but that shouldn't matter should it?  do you need to pass the folder string with the quotations so that the system doesn't break at the space?

nickj

reply via email to

[Prev in Thread] Current Thread [Next in Thread]