1
0
Fork
You've already forked racket
0

[Petite]Cannot find petite implementation #10

Open
opened 2014年10月04日 12:02:02 +02:00 by jaor · 8 comments
jaor commented 2014年10月04日 12:02:02 +02:00 (Migrated from gitlab.com)
Copy link

Created by: ProfessorX

I have petite scheme downloaded and installed as guided by the <www.scheme.com> website. Then I config the geiser in Emacs as follows:
I put

  • petite in Geiser Active Implementation lists, below guile and racket.
  • Restart Emacs.
  • Press C-C and C-S in a scm file to set Scheme.

Then the Emacs told me Cannot find petite implementation while in fact it is installed and working fine with command line. (Aka, I have Petite Scheme working in command line but I would like that to co-op with Emacs)

*Created by: ProfessorX* I have petite scheme downloaded and installed as guided by the <www.scheme.com> website. Then I config the geiser in Emacs as follows: I put - `petite` in Geiser Active Implementation lists, below guile and racket. - Restart Emacs. - Press `C-C` and `C-S` in a scm file to set Scheme. Then the Emacs told me _Cannot find petite implementation_ while in fact it is installed and working fine with command line. (Aka, I have Petite Scheme working in command line but I would like that to co-op with Emacs)
jaor commented 2014年10月04日 21:24:49 +02:00 (Migrated from gitlab.com)
Copy link

Geiser only supports Guile and Racket. Adding support for a new
implementation is a bit of work: see for instance
https://github.com/rmloveland/geiser-scsh.

Geiser only supports Guile and Racket. Adding support for a new implementation is a bit of work: see for instance https://github.com/rmloveland/geiser-scsh.
jaor commented 2014年10月06日 09:46:00 +02:00 (Migrated from gitlab.com)
Copy link

Created by: ProfessorX

And by the way, when I try to C-C C-D TAB to find the manual of "member" for an s-exp like this

(member "Keys"
 '("Florida" "Keys" "U.S.A"))

The mini-buffer just showed "Looking up manual for * ..."
Then nothing happened. (For this time I am using Racket, because it's easier to debug)

*The good news is that auto-doc works! 👍 *

I am running Emacs 24.3 with prelude config and a few customization.
A few customization generated for Geiser are as follows:

 '(geiser-default-implementation (quote racket))
 '(geiser-guile-debug-show-bt-p t)
 '(geiser-guile-jump-on-debug-p t)
 '(geiser-guile-manual-lookup-other-window-p t)
 '(geiser-guile-warning-level (quote high))
 '(geiser-mode-smart-tab-p t)
 '(geiser-repl-save-debugging-history-p t)
 '(geiser-xref-follow-link-method (quote window))
*Created by: ProfessorX* And by the way, when I try to `C-C C-D TAB` to find the manual of "member" for an s-exp like this ``` (member "Keys" '("Florida" "Keys" "U.S.A")) ``` The mini-buffer just showed "Looking up manual for \* ..." Then nothing happened. (For this time I am using Racket, because it's easier to debug) ## *_The good news is that auto-doc works! :+1: *_ I am running Emacs 24.3 with prelude config and a few customization. A few customization generated for Geiser are as follows: ``` '(geiser-default-implementation (quote racket)) '(geiser-guile-debug-show-bt-p t) '(geiser-guile-jump-on-debug-p t) '(geiser-guile-manual-lookup-other-window-p t) '(geiser-guile-warning-level (quote high)) '(geiser-mode-smart-tab-p t) '(geiser-repl-save-debugging-history-p t) '(geiser-xref-follow-link-method (quote window)) ```
jaor commented 2014年10月06日 17:45:53 +02:00 (Migrated from gitlab.com)
Copy link

For Racket, the manual is browsed using the browsed that you have
configured in DrRacket (or manually in ~/.racket/racket-prefs.rktd). To
see if that's working for you, just try (help member) in a regular
racket REPL, outside geiser.

For Racket, the manual is browsed using the browsed that you have configured in DrRacket (or manually in ~/.racket/racket-prefs.rktd). To see if that's working for you, just try `(help member)` in a regular racket REPL, outside geiser.
jaor commented 2014年10月06日 19:04:44 +02:00 (Migrated from gitlab.com)
Copy link

Created by: ProfessorX

Past

Yes I remember it did work the first time I had geiser installed through package manager. Right now it is not working, pretty strange. (I did check the racket-mode as well, it also uses racket/help)

Oops, I remember that I did make some changes through DrRacket, so it may has something to do with this s**t.

I figured out where the problem is...I am googling the solutions.

Bugs

I post the error info given by REPL as follows:

Welcome to Racket v6.1.
> (help string)
Loading help index...
Sending to web browser...
 file: /usr/share/racket/doc/reference/strings.html
 anchor: (def._((quote._~23~25kernel)._string))
/bin/sh: 1: Syntax error: "(" unexpected
browser-run: process execute failed: '("chromium file:///usr/share/racket/doc/reference/strings.html#(def._((quote._~23~25kernel)._string))")
> (help member)
Sending to web browser...
 file: /usr/share/racket/doc/reference/pairs.html
 anchor: (def._((lib._racket/private/base..rkt)._member))
/bin/sh: 1: Syntax error: "(" unexpected
browser-run: process execute failed: '("chromium file:///usr/share/racket/doc/reference/pairs.html#(def._((lib._racket%2Fprivate%2Fbase..rkt)._member))")
> (exit)

Solution

I am still googling that. I clicked the revert to defaults (in Dr Racket) but it's no way...

*Created by: ProfessorX* ## Past Yes I remember it did work the first time I had geiser installed through package manager. Right now it is not working, pretty strange. (I did check the racket-mode as well, it also uses racket/help) Oops, I remember that I did make some changes through **DrRacket**, so it may has something to do with this s**t. I figured out where the problem is...I am googling the solutions. ## Bugs I post the error info given by REPL as follows: ``` Welcome to Racket v6.1. > (help string) Loading help index... Sending to web browser... file: /usr/share/racket/doc/reference/strings.html anchor: (def._((quote._~23~25kernel)._string)) /bin/sh: 1: Syntax error: "(" unexpected browser-run: process execute failed: '("chromium file:///usr/share/racket/doc/reference/strings.html#(def._((quote._~23~25kernel)._string))") > (help member) Sending to web browser... file: /usr/share/racket/doc/reference/pairs.html anchor: (def._((lib._racket/private/base..rkt)._member)) /bin/sh: 1: Syntax error: "(" unexpected browser-run: process execute failed: '("chromium file:///usr/share/racket/doc/reference/pairs.html#(def._((lib._racket%2Fprivate%2Fbase..rkt)._member))") > (exit) ``` ## Solution I am still googling that. I clicked the revert to defaults **(in Dr Racket)** but it's no way...
jaor commented 2014年10月06日 19:11:27 +02:00 (Migrated from gitlab.com)
Copy link

Created by: ProfessorX

Update

I changed the browser setting in Dr Racket as below back to the Firefox, then the (help member) etc. are singing and dancing again 👍
Browser DrRacket

In the past I typed chromium in the Command Line option.

Wonder

I am still preferring the shabby Chromium, so I will update (this time indeed) the solution once I find it on this comment.

(external-browser firefox)
(plt:framework-pref:external-browser firefox)

These are the 2 lines in racket-pref.rktd in .racket folder of $HOME that matters. But when I change either "chromium " (with space) or xdg-open it will not work......Ooooops.

Final Solution Wooolaaaa!

As can be seen from the figure above, there is one option called GNOME OPEN.

I have to admit that I am using the kde desktop in debian. Anyway, choosing this option will open the *.html page with your default browser.

At least it works under Debian testing, Emacs 24.3 and Racket 6.1.

*Created by: ProfessorX* ## Update I changed the browser setting in Dr Racket as below back to the Firefox, then the `(help member)` etc. are **singing and dancing again** :+1: ![Browser DrRacket](http://i.imgur.com/AnRJfm1.png) In the past I typed `chromium` in the Command Line option. ## Wonder I am still preferring the shabby Chromium, so I will **update** (this time indeed) the solution once I find it on this comment. ``` Scheme (external-browser firefox) (plt:framework-pref:external-browser firefox) ``` These are the 2 lines in `racket-pref.rktd` in .racket folder of $HOME that matters. But when I change either `"chromium "` (with space) or `xdg-open` it will not work......Ooooops. ## Final Solution Wooolaaaa! As can be seen from the figure above, there is one option called **GNOME OPEN**. I have to admit that I am using the **kde desktop** in debian. Anyway, choosing this option will open the `*.html` page **with your default browser**. At least it works under `Debian testing`, `Emacs 24.3` and `Racket 6.1`.
jaor commented 2014年11月27日 21:48:10 +01:00 (Migrated from gitlab.com)
Copy link

@ProfessorX thanks a lot for keeping this log and for your detailed explanations! I'll try to add a summary or some troubleshooting instructions to geiser's documentation (or at least a pointer to this issue).

@ProfessorX thanks a lot for keeping this log and for your detailed explanations! I'll try to add a summary or some troubleshooting instructions to geiser's documentation (or at least a pointer to this issue).
jaor commented 2020年07月20日 07:42:14 +02:00 (Migrated from gitlab.com)
Copy link

changed the description

changed the description
jaor commented 2020年07月20日 07:42:15 +02:00 (Migrated from gitlab.com)
Copy link

moved from jaor/geiser#44

moved from jaor/geiser#44
Sign in to join this conversation.
No Branch/Tag specified
master
0.16
0.14
0.11.2
0.11.1
0.11
0.9
0.10
0.8.1
0.8
0.7
0.6
0.5
0.4
0.3
0.2.2
0.2.1
0.2
0.1.4
0.1.3
0.1.2
0.1.1
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geiser/racket#10
Reference in a new issue
geiser/racket
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?