Re: [racket-users] How shall I add collection path?

2022-08-08 Thread Philip McGrath
Hi,

On Mon, Aug 8, 2022, at 12:59 PM, Don Green wrote:
> For some reason, the collection directories below does not include the only 
> collection directory that I use: 
> /home/don/.plt-scheme/4.2.1/collects
> which I do have showing up in DrRacket's options: /Language/Choose Language/ 
> Collection Paths: 
> <>
> /home/don/.plt-scheme/4.2.1/collects
> --
> Error Msg:
> standard-module-name-resolver: collection not found
>   for module path: DG/all/copy-dir-without-subdirs
>   collection: "DG/all"
>   in collection directories:
>/home/don/.racket/8.1/collects
>/home/don/racket/collects/
>... [175 additional linked and package directories]
>   context...:
>/home/don/racket/share/pkgs/scribble-lib/scribble/search.rkt:69:5: loop
>[repeats 1 more time]
>/home/don/racket/share/pkgs/scribble-lib/scribble/xref.rkt:122:2: 
> xref-binding-tag
>.../private/coroutine.rkt:20:33
>/home/don/racket/share/pkgs/gui-lib/framework/private/coroutine.rkt:47:20
>/home/don/racket/share/pkgs/gui-lib/framework/private/coroutine.rkt:56:0: 
> coroutine-run
>
> /home/don/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
>
> /home/don/racket/share/pkgs/drracket/drracket/private/syncheck/blueboxes-gui.rkt:457:4:
>  update-the-strs method in docs-text-gui-mixin
>
> /home/don/racket/share/pkgs/gui-lib/framework/private/logging-timer.rkt:41:0: 
> log-timeline/proc
>/home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/timer.rkt:34:38
>/home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:435:6
>/home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:486:32
>/home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:634:3
> 

It would be easier to help if you could keep you could keep your replies within 
a single thread.

This error message reveals that the update-the-strs method of 
docs-text-gui-mixin defined in 
,
 which seems to be part of how DrRacket displays "blue boxes" with 
documentation, is calling the Scribble function `find-racket-tag` defined at 
.

Could you explain what you are doing when you encounter this error? For 
example, are you hovering over an identifier in DrRacket? Is the error 
displayed in a dialog box saying "DrRacket Internal Error".

Also, it would help to know if you have made any changes to your Racket 
installation recently, such as changing to a new Racket version.

One possibility is that DrRacket may not communicate the collection paths set 
through the GUI to the functions that look up documentation. I'm not sure if 
DrRacket intends to support finding documentation for collections configured 
that way (though, even if not, it shouldn't cause an internal error).

More generally, it sounds like you have code in 
"/home/don/.plt-scheme/4.2.1/collects" that predates Racket's package system. 
You are of course free to continue to manage it using "collection links", but 
manipulating collection links directly is no longer recommended: it is 
difficult to do correctly, there are limited tools to assist you, and you may 
encounter bugs in tools that haven't thought about non-standard configurations. 
(Buggy tools should be fixed, of course! And I say this as someone who myself 
runs Racket in non-standard configurations that sometimes expose such bugs.)

But I think it would be much easier for you if you could structure the code in 
"/home/don/.plt-scheme/4.2.1/collects" as a package, as I suggested before: 
https://groups.google.com/g/racket-users/c/OtJV3yUDp2k/m/swka-AWXBwAJ

-Philip

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/cc0ac6a9-8e6b-4859-9daf-c80886049ee7%40www.fastmail.com.


Re: [racket-users] raco pkg for a one-directory, moveable installation

2022-08-08 Thread Philip McGrath
Hi,

On Mon, Aug 8, 2022, at 5:46 PM, knigh...@gmail.com wrote:
> Hello all
> 
> I'm trying to generate an installation that is self-contained, that I can 
> move to another machine just by tar-untar or zip-unzip.
> 
> The target machine may never be connected to the internet, so if I want to 
> install packages I must follow this procedure. 
> 

I would suggest running:

./bin/raco pkg config -i  --set default-scope installation

Setting the default scope to `installation` will cause commands like `raco pkg 
install` to install packages in the "pkgs" directory of your self-contained 
installation, rather than putting packages in a user-specific place by default.

(The more general `--scope` option is tricky to use correctly: I would think of 
it as a hook for higher-level tools.)

-Philip

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/dd82c2f0-af52-41d4-8231-2cd659389f62%40www.fastmail.com.


[racket-users] raco pkg for a one-directory, moveable installation

2022-08-08 Thread knigh...@gmail.com
Hello all

I'm trying to generate an installation that is self-contained, that I can 
move to another machine just by tar-untar or zip-unzip.

The target machine may never be connected to the internet, so if I want to 
install packages I must follow this procedure. 

This command 
.\raco pkg install  --scope-dir ../PKGS 

fails with this message:
raco pkg install: cannot link a directory that overlaps with a collection 
path
  collection path: C:\sks\bin\rkt85\collects\
  link path: C:\sks\bin\rkt85\
  as package: rkt85

Any suggestions on how to proceed? 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/a031a5df-f85e-4942-8cbd-247d990ef435n%40googlegroups.com.


[racket-users] collection resolver problem...

2022-08-08 Thread Don Green
I don't see why the collection resolver has a problem because the desired 
collection path: #, is shown to 
be in the current-library-collection-paths:

(current-library-collection-paths)
'(# # 
#)

Thanks
Don.


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/8738956b-1416-4ed3-90ed-daca03343ea6n%40googlegroups.com.


[racket-users] How shall I add collection path?

2022-08-08 Thread Don Green
For some reason, the collection directories below does not include the only 
collection directory that I use: 
/home/don/.plt-scheme/4.2.1/collects
which I do have showing up in DrRacket's options: /Language/Choose 
Language/ Collection Paths: 
<>
/home/don/.plt-scheme/4.2.1/collects
--
Error Msg:
standard-module-name-resolver: collection not found
  for module path: DG/all/copy-dir-without-subdirs
  collection: "DG/all"
  in collection directories:
   /home/don/.racket/8.1/collects
   /home/don/racket/collects/
   ... [175 additional linked and package directories]
  context...:
   /home/don/racket/share/pkgs/scribble-lib/scribble/search.rkt:69:5: loop
   [repeats 1 more time]
   /home/don/racket/share/pkgs/scribble-lib/scribble/xref.rkt:122:2: 
xref-binding-tag
   .../private/coroutine.rkt:20:33
   /home/don/racket/share/pkgs/gui-lib/framework/private/coroutine.rkt:47:20
  
 /home/don/racket/share/pkgs/gui-lib/framework/private/coroutine.rkt:56:0: 
coroutine-run
  
 /home/don/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
  
 
/home/don/racket/share/pkgs/drracket/drracket/private/syncheck/blueboxes-gui.rkt:457:4:
 
update-the-strs method in docs-text-gui-mixin
  
 /home/don/racket/share/pkgs/gui-lib/framework/private/logging-timer.rkt:41:0: 
log-timeline/proc
  
 /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/timer.rkt:34:38
  
 /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:435:6
  
 /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:486:32
  
 /home/don/racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:634:3

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/e57f509e-613c-4dad-a72f-52a2c12b8fd0n%40googlegroups.com.


[racket-users] how could I obtain more context to isolate the problem?

2022-08-08 Thread Don Green
$ raco setup ?
collection-path: collection not found
  collection: "t"
  in collection directories:
   /home/don/.plt-scheme/4.2.1/collects
   /home/don/.racket/8.1/collects
   /home/don/racket/collects/
   ... [175 additional linked and package directories]

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/68500d28-f497-456f-9eac-b44aeb5e4523n%40googlegroups.com.


Re: [racket-users] how do I remove a specified collection?

2022-08-08 Thread Sam Tobin-Hochstadt
I don't think that you need to remove `t`. Instead, your problem is
that somewhere something is calling `collection-path` with "t" as an
argument. If you provide more information about the context and the
error message, it would be easier to help here.

Sam

On Mon, Aug 8, 2022 at 11:31 AM Don Green  wrote:
>
> $ raco setup ?
> collection-path: collection not found
>   collection: "t"
>
> How do I go about finding and removing: collection: "t"  ?
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/57fecc34-3485-415b-8c9d-fcb57ef4d15cn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAK%3DHD%2BaR8KjNn%2BCLeJ-UV%2BHrA-FFG5vU_hZ3pQ7r8xVq%2B%2B9wGg%40mail.gmail.com.


[racket-users] how do I remove a specified collection?

2022-08-08 Thread Don Green
$ raco setup ?
collection-path: collection not found
  collection: "t"

How do I go about finding and removing: collection: "t"  ?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/57fecc34-3485-415b-8c9d-fcb57ef4d15cn%40googlegroups.com.