Sorry to try your patience again

I found emacsclient locally in /usr/bin
so my .factor-rc is now

USING: editors.emacs namespaces ;
“‘’/usr/bin” \ emacsclient-path set-global

typing these into a listener followed by “io” edit gives

Process exited with error code 255

Launch descriptor:

T{ process
    { command
        {
            "/usr/bin"
            "--no-wait"
            "+1"
            "/Applications/Languages/factor/core/io/io.factor"
        }
    }
    { detached t }
    { environment H{ } }
    { environment-mode +append-environment+ }
    { group +same-group+ }
    { status 255 }

whereas typing into my terminal

$ cd /Applications/Languages/factor/core/io
$ emacsclient -no-wait +1 io.factor

gives syntax aware emacs window
two questions

1. why are there two hyphens on no-wait in the factor error?
2. factor-rc is in my home directory, is this right?

> On 2 Jun 2015, at 17:04, John Benediktsson <mrj...@gmail.com> wrote:
> 
> Why is your process trying to run /Applications/Languages/Factor when you 
> call edit?
> 
> Shouldn't it be the /path/to/emacsclient?
> 
> This is what I mean (using the full path to your emacsclient):
> 
> USING: editors.emacs namespaces 
> "/Applications/Languages/Emacs.app/Contents/MacOS/bin-i386-10_5/emacsclient" 
> emacsclient-path set-global
> 
> Are you running OS X 10.5 on 32-bit? I think that path doesn't look like the 
> right architecture.
> 
> You can look at which other architectures are available:
> 
> $ ls /Applications/Languages/Emacs.app/Contents/MacOS
> 
> 
> 
> 
> On Jun 2, 2015, at 8:42 AM, Iain Gray <iaing...@ednet.co.uk 
> <mailto:iaing...@ednet.co.uk>> wrote:
> 
>> I get a similar error
>> 
>> Process exited with error code 255
>> 
>> Launch descriptor:
>> 
>> T{ process
>>     { command
>>         {
>>             "/Applications/Languages/factor"
>>             "--no-wait"
>>             "+1"
>>             "/Applications/Languages/factor/core/io/io.factor"
>>         }
>>     }
>>     { detached t }
>>     { environment H{ } }
>>     { environment-mode +append-environment+ }
>>     { group +same-group+ }
>>     { status 255 }
>> 
>> and emcsclient? gives an underflow error
>> 
>>> On 2 Jun 2015, at 15:51, John Benediktsson <mrj...@gmail.com 
>>> <mailto:mrj...@gmail.com>> wrote:
>>> 
>>> I just noticed that your error doesn't use your emacsclient-path (just the 
>>> default "emacsclient"):
>>> 
>>> T{ process
>>>     { command
>>>         {
>>>             "emacsclient"
>>>             "--no-wait"
>>>             "+1"
>>>             "/Applications/Languages/factor/core/io/io.factor"
>>>         }
>>>     }
>>> }
>>> 
>>> Is it possible you aren't loading your .factor-rc correctly?
>>> 
>>> 1) Try pasting the code from your .factor-rc into your Factor Listener and 
>>> trying ``"io" edit`` again.
>>> 
>>> 2) Make sure .factor-rc is in your home directory and readable when you 
>>> start Factor.
>>> 
>>> 
>>> 
>>> 
>>> On Tue, Jun 2, 2015 at 7:46 AM, Iain Gray <iaing...@ednet.co.uk 
>>> <mailto:iaing...@ednet.co.uk>> wrote:
>>> that works if I do
>>> 
>>> $ cd /Applications/Languages/factor
>>> 
>>> I feel very close!
>>> 
>>>> On 2 Jun 2015, at 14:32, John Benediktsson <mrj...@gmail.com 
>>>> <mailto:mrj...@gmail.com>> wrote:
>>>> 
>>>> I'm sorry its not working, are you sure you have an emacs started and run 
>>>> ``M-x server-start`` from it?
>>>> 
>>>> Our emacs "edit" integration just calls emacsclient, so it should be 
>>>> simple to get working.
>>>> 
>>>> Does emacsclient work from your command-line?
>>>> 
>>>>     $ cd factor
>>>> 
>>>>     $ emacsclient --no-wait +1 README.md
>>>> 
>>>> That command does not start a new emacs, so it will error out in the way 
>>>> you see when one does not appear to be running.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On Tue, Jun 2, 2015 at 4:26 AM, Iain Gray <iaing...@ednet.co.uk 
>>>> <mailto:iaing...@ednet.co.uk>> wrote:
>>>> My .factor-rc reads
>>>> 
>>>> USING: editors.emacs namespaces ;
>>>> “/Applications/languages/Emacs.app/Contents/MacOS/bin-i386-10_5” 
>>>> emacsclient-path set-global
>>>> 
>>>> after doing all suggestions I still  get
>>>> 
>>>> IN: scratchpad "io" edit
>>>> Process exited with error code 1
>>>> 
>>>> Launch descriptor:
>>>> 
>>>> T{ process
>>>>     { command
>>>>         {
>>>>             "emacsclient"
>>>>             "--no-wait"
>>>>             "+1"
>>>>             "/Applications/Languages/factor/core/io/io.factor"
>>>>         }
>>>>     }
>>>>     { detached t }
>>>>     { environment H{ } }
>>>>     { environment-mode +append-environment+ }
>>>>     { group +same-group+ }
>>>>     { status 1 }
>>>> }
>>>> 
>>>> I have even reinstalled FUEL from Melpa
>>>> 
>>>>> On 1 Jun 2015, at 16:04, John Benediktsson <mrj...@gmail.com 
>>>>> <mailto:mrj...@gmail.com>> wrote:
>>>>> 
>>>>> The .factor-boot-rc is used during bootstrap, but if you just download 
>>>>> and use a release, you might want to put that code in .factor-rc which is 
>>>>> run each time Factor starts.
>>>>> 
>>>>> Also, I'm a bit confused -- your examples uses "emacspath" but the 
>>>>> documentation for editors.emacs says to set the path to emacsclient?
>>>>> 
>>>>>     "editors.emacs" help
>>>>> 
>>>>> That means this would be it (either in the listener directly for testing, 
>>>>> or in .factor-rc on startup, or .factor-boot-rc on bootstrap):
>>>>> 
>>>>>     USING: editors.emacs namespaces ;
>>>>>     "/path/to/the/emacsclient" emacsclient-path set-global
>>>>> 
>>>>> And in emacs you would need to make sure to have:
>>>>> 
>>>>>     M-x server-start
>>>>> 
>>>>> I just tested that and it worked fine (meaning ``"io" edit`` opened the 
>>>>> file in my open emacs buffer).
>>>>> 
>>>>> Thanks,
>>>>> John.
>>>>> 
>>>>> 
>>>>> On Mon, Jun 1, 2015 at 7:53 AM, Iain Gray <iaing...@ednet.co.uk 
>>>>> <mailto:iaing...@ednet.co.uk>> wrote:
>>>>> still doesn’t work sorry
>>>>> I found emacsclient deep inside Emacs,app
>>>>> 
>>>>> > On 1 Jun 2015, at 13:00, Björn Lindqvist <bjou...@gmail.com 
>>>>> > <mailto:bjou...@gmail.com>> wrote:
>>>>> >
>>>>> > You shouldn't need to set emacs-path if the emacs and emacsclient
>>>>> > binaries are on your path. emacsclient is not called correctly from
>>>>> > Factor, but as a workaround you can start the server manually. First
>>>>> > start emacs and in it type M-x server-start. Then you should be able
>>>>> > to run "io" edit in the Factor gui and have the file shown in emacs.
>>>>> >
>>>>> > 2015-06-01 10:54 GMT+02:00 Iain Gray <iaing...@ednet.co.uk 
>>>>> > <mailto:iaing...@ednet.co.uk>>:
>>>>> >> I have setup the file .factor-boot-rc as
>>>>> >>
>>>>> >> USING: editors.emacs namespaces ;
>>>>> >> “/Applications/languages” \ emacs-path sett-global
>>>>> >>
>>>>> >> which sets up the path to emacs.app
>>>>> >> running factor.app I get on doing “palindrome” edit
>>>>> >>
>>>>> >> error code 1 which seems to be complaining about “emacsclient”
>>>>> >>
>>>>> >> whereas loading palindrome.factor into emacs and typing meta-x 
>>>>> >> run-factor I get a syntax aware editor
>>>>> >> and a factor listener
>>>>> >>
>>>>> >> What am I missing?
>>>>> >>
>>>>> >> Thanks, Iain
>>>>> >>
>>>>> >> p.s. original bounced as I included screen captures
>>>>> >>
>>>>> >>
>>>>> >>> On 31 May 2015, at 00:11, Björn Lindqvist <bjou...@gmail.com 
>>>>> >>> <mailto:bjou...@gmail.com>> wrote:
>>>>> >>>
>>>>> >>> Could you explain in more detail what your problem is?
>>>>> >>>
>>>>> >>> 2015-05-30 19:04 GMT+02:00 Iain Gray <iaing...@ednet.co.uk 
>>>>> >>> <mailto:iaing...@ednet.co.uk>>:
>>>>> >>>> I have successfully integrated FUEL in emacs but cannot seem get it 
>>>>> >>>> integrated with Factor. My emacs is 24..4.1 and an aoo and my os is 
>>>>> >>>> OS X 10.3. Any advice appreciated. Iain
>>>>> >>>> ------------------------------------------------------------------------------
>>>>> >>>> _______________________________________________
>>>>> >>>> Factor-talk mailing list
>>>>> >>>> Factor-talk@lists.sourceforge.net 
>>>>> >>>> <mailto:Factor-talk@lists.sourceforge.net>
>>>>> >>>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>>> >>>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>>>> >>>
>>>>> >>>
>>>>> >>>
>>>>> >>> --
>>>>> >>> mvh/best regards Björn Lindqvist
>>>>> >>>
>>>>> >>> ------------------------------------------------------------------------------
>>>>> >>> _______________________________________________
>>>>> >>> Factor-talk mailing list
>>>>> >>> Factor-talk@lists.sourceforge.net 
>>>>> >>> <mailto:Factor-talk@lists.sourceforge.net>
>>>>> >>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>>> >>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>>>> >>
>>>>> >>
>>>>> >> ------------------------------------------------------------------------------
>>>>> >> _______________________________________________
>>>>> >> Factor-talk mailing list
>>>>> >> Factor-talk@lists.sourceforge.net 
>>>>> >> <mailto:Factor-talk@lists.sourceforge.net>
>>>>> >> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>>> >> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > mvh/best regards Björn Lindqvist
>>>>> >
>>>>> > ------------------------------------------------------------------------------
>>>>> > _______________________________________________
>>>>> > Factor-talk mailing list
>>>>> > Factor-talk@lists.sourceforge.net 
>>>>> > <mailto:Factor-talk@lists.sourceforge.net>
>>>>> > https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>>> > <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Factor-talk mailing list
>>>>> Factor-talk@lists.sourceforge.net 
>>>>> <mailto:Factor-talk@lists.sourceforge.net>
>>>>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Factor-talk mailing list
>>>>> Factor-talk@lists.sourceforge.net 
>>>>> <mailto:Factor-talk@lists.sourceforge.net>
>>>>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> 
>>>> _______________________________________________
>>>> Factor-talk mailing list
>>>> Factor-talk@lists.sourceforge.net 
>>>> <mailto:Factor-talk@lists.sourceforge.net>
>>>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Factor-talk mailing list
>>>> Factor-talk@lists.sourceforge.net 
>>>> <mailto:Factor-talk@lists.sourceforge.net>
>>>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> 
>>> _______________________________________________
>>> Factor-talk mailing list
>>> Factor-talk@lists.sourceforge.net <mailto:Factor-talk@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Factor-talk mailing list
>>> Factor-talk@lists.sourceforge.net <mailto:Factor-talk@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net <mailto:Factor-talk@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/factor-talk 
>> <https://lists.sourceforge.net/lists/listinfo/factor-talk>
> ------------------------------------------------------------------------------
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk

------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to