[racket-dev] DrRacket PF1 Search Bug?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Nov 20 17:22:07 EST 2014

Ah, thanks! I see that if it is trying to load the docs that are in
/Applications then it runs the code below, which somehow magically
drops the query argument by the time safari gets it. It's not because
of the space, either; when I rename "Racket v6.1.1.5" to just "r", it
also doesn't work. But if I change the path to one in my home
directory (just like the one you write below), then I see it works.

Puzzling. It's almost like there is special handling for /Applications
instead of /Users.

#lang racket

(define url "file:///Applications/Racket%20v6.1.1.5/doc/search/index.html?q=xyz")

(define-values (stdout stdin pid stderr control)
  (apply values (process*/ports
                 (open-output-nowhere) #f (current-error-port)
                 (find-executable-path "osascript" #f)
                 "-e"
                 (format "open location \"~a\"" url))))

(close-output-port stdin)



On Thu, Nov 20, 2014 at 4:02 PM, Stephen De Gabrielle
<spdegabrielle at gmail.com> wrote:
> Is it significant that on the non-working machine running 6.1.1.5
> (perform-search "xyz") returns
> file:///Applications/Racket%20v6.1.1.5/doc/search/index.html
>
> But my working instance running 6.1.1.5 (it is a day later build)
> running (perform-search "XYX") returns
> file:///Users/spdegabrielle/Library/Racket/snapshot/doc/search/index.html?q=XYX
>
> Is anyone else getting the same behaviour?
>
> S.
>
>
> On Thu Nov 20 2014 at 12:13:51 AM Stephen De Gabrielle
> <spdegabrielle at gmail.com> wrote:
>>
>>
>> This: file:///Applications/Racket%20v6.1.1.5/doc/search/index.html
>> it just shows the search screen as usual - just without the
>> search text.
>>
>> s.
>>
>>
>> On Wed Nov 19 2014 at 11:58:01 PM Robby Findler
>> <robby at eecs.northwestern.edu> wrote:
>>>
>>> If you navigate to the file in the file: url, is it empty?
>>>
>>> Robby
>>>
>>> On Wed, Nov 19, 2014 at 5:52 PM, Stephen De Gabrielle
>>> <spdegabrielle at gmail.com> wrote:
>>> > I'm such a doofus I forgot to put it on the bug report
>>> >
>>> > Safari, Version 8.0 (10600.1.25.1)
>>> > file:///Applications/Racket%20v6.1.1.5/doc/search/index.html
>>> >
>>> > OS X 10.10.1 (14B25)
>>> > all updates up-to-date
>>> >
>>> > Welcome to DrRacket, version 6.1.1.5--2014-11-19(6c9172f/a) [3m].
>>> > Language: racket/gui; memory limit: 128 MB.
>>> >
>>> > the top/right popup works fine FWIW.
>>> >
>>> > S.
>>> >
>>> >
>>> > On Wed Nov 19 2014 at 11:26:05 PM Robby Findler
>>> > <robby at eecs.northwestern.edu> wrote:
>>> >>
>>> >> You won't be surprised to learn that my machine is one of the ones
>>> >> where it works. :(
>>> >>
>>> >> If I understand correctly, you're getting to the browser, but not
>>> >> seeing the right thing in the browser? Is that right? If so, what is
>>> >> the url in the url bar? And which browser? Does it work if you switch
>>> >> to safari?
>>> >>
>>> >> Robby
>>> >>
>>> >> On Wed, Nov 19, 2014 at 4:21 PM, Stephen De Gabrielle
>>> >> <spdegabrielle at gmail.com> wrote:
>>> >> > I just tried it on the latest osx 64 bit full build.
>>> >> > Logged as
>>> >> >
>>> >> >
>>> >> > http://bugs.racket-lang.org/query/?cmd=view%20audit-trail&database=default&pr=14844&return_url=http%3A%2F%2Fbugs.racket-lang.org%2Fquery%2F%3Fdatabase%3Ddefault%3Bdebug%3D%3BState%3Dany%3Bignoreclosed%3DIgnore%2520Closed%3BSynopsis%3Df1%3Bmultitext%3D%3Bcolumns%3DState%3Bcolumns%3DSynopsis%3Bcolumns%3DCategory%3Bcolumns%3DLast-Modified%3Bcolumns%3DRelease%3Bcmd%3Dsubmit%2520query%3Bsortby%3DNumber
>>> >> >
>>> >> >
>>> >> > On Wed Nov 19 2014 at 9:01:25 PM Kevin Forchione <lysseus at gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >>
>>> >> >> > On Nov 19, 2014, at 1:53 PM, Geoffrey S. Knauth
>>> >> >> > <geoff at knauth.org>
>>> >> >> > wrote:
>>> >> >> >
>>> >> >> > I tried F1 on my Racket 6.1.1 on OSX 10.10.1 and the browser came
>>> >> >> > up
>>> >> >> > with Racket help.  Is that the same thing?  --Geoff
>>> >> >>
>>> >> >> Yes. Interesting. Looks like we’re running the same OS. F5 runs the
>>> >> >> program for me, F1 does nothing. Are you using any “meta” keys? I’m
>>> >> >> using
>>> >> >> option as meta.
>>> >> >>
>>> >> >> -Kevin
>>> >> >> _________________________
>>> >> >>   Racket Developers list:
>>> >> >>   http://lists.racket-lang.org/dev
>>> >> >
>>> >> >
>>> >> > _________________________
>>> >> >   Racket Developers list:
>>> >> >   http://lists.racket-lang.org/dev
>>> >> >


Posted on the dev mailing list.