bug#58841: repl ignores modules from the channel added to time-machine

2023-02-17 Thread Simon Tournier
Hi Ludo,

On sam., 05 nov. 2022 at 11:31, Ludovic Courtès  wrote:

> This will set up ‘%load-path’ so that channel modules become visible.
> Let me know if it works for you!
>
> This is a bug we should fix.

Please see this fix: .

Cheers,
simon





bug#58841: repl ignores modules from the channel added to time-machine

2023-01-21 Thread zimoun
Hi Ludo,

On Sat, 05 Nov 2022 at 11:31, Ludovic Courtès  wrote:

> Currently you have to start with:
>
>   (use-modules (gnu packages))
>
> This will set up ‘%load-path’ so that channel modules become visible.
> Let me know if it works for you!
>
> This is a bug we should fix.

Ah, I thought it was expected. :-)  Well, my ~/.guile looks like:

--8<---cut here---start->8---
(use-modules
 (ice-9 readline)
 (ice-9 format)
 (ice-9 pretty-print)

 (guix)
 (gnu packages)
 (gnu packages base))
(activate-readline)
--8<---cut here---end--->8---

so it avoids me this kind of annoyance.

Well, do we open another ticket or just retitle this one?


Cheers,
simon





bug#58841: repl ignores modules from the channel added to time-machine

2022-11-05 Thread Ludovic Courtès
"alexander barakin (aka sash-kan)"  skribis:

> On Sat, Nov 05, 2022 at 11:31:38AM +0100, Ludovic Courtès wrote:
>> 
>> This is a bug we should fix.
>
> btw, "shell" behaves similarly - only sees the "system" channel:
>
> $ guix time-machine --channels=channels.scm -- shell -- guix describe
> guix shell: warning: no packages specified; creating an empty

This command is running ‘guix describe’ with the ‘guix’ command that
happens to be in $PATH; in addition, the ‘shell’ bit does nothing, as
shown by the warning above.

What you probably meant is:

  guix time-machine -C channels.scm -- describe

HTH,
Ludo’.





bug#58841: repl ignores modules from the channel added to time-machine

2022-11-05 Thread alexander barakin (aka sash-kan)
On Sat, Nov 05, 2022 at 11:31:38AM +0100, Ludovic Courtès wrote:
> 
> This is a bug we should fix.

btw, "shell" behaves similarly - only sees the "system" channel:

$ guix time-machine --channels=channels.scm -- shell -- guix describe
guix shell: warning: no packages specified; creating an empty
environment
Generation 18   Oct 25 2022 15:24:49(current)
  guix a0751e3
  repository URL: https://git.savannah.gnu.org/git/guix.git
  branch: master
  commit: a0751e3250dfea7e52468c8090e18c3118d93a60

can this also be considered a bug? if so, is it worth sending a separate
bug report? 

-- 
wbr, alexander barakin aka sash-kan.
-- 
i will be very thankful to you if you will use order,
that natural for the human:
first question, then the answer.


signature.asc
Description: PGP signature


bug#58841: repl ignores modules from the channel added to time-machine

2022-11-05 Thread alexander barakin (aka sash-kan)
On Sat, Nov 05, 2022 at 11:31:38AM +0100, Ludovic Courtès wrote:
> 
> Currently you have to start with:
> 
>   (use-modules (gnu packages))
> 
> This will set up ‘%load-path’ so that channel modules become visible.
> Let me know if it works for you!

yes, it works. thank you!

> This is a bug we should fix.

it would be nice.
or at least mention it in the documentation.

-- 
wbr, alexander barakin aka sash-kan.
-- 
i will be very thankful to you if you will use order,
that natural for the human:
first question, then the answer.


signature.asc
Description: PGP signature


bug#58841: repl ignores modules from the channel added to time-machine

2022-11-05 Thread Ludovic Courtès
Hi Alexander,

"alexander barakin (aka sash-kan)"  skribis:

> ## but repl does not see guix-hpc modules:
> $ guix time-machine --channels=channels.scm -- repl
> ...
> scheme@(guix-user)> (use-modules (airbus solvers))
> While compiling expression:
> no code for module (airbus solvers)
> scheme@(guix-user)> %load-path
> $1 = 
> ("/gnu/store/dfm3k2qc0s4f8vi5il3gvrr0650p65k3-guix-module-union/share/guile/site/3.0"
>  "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/3.0" 
> "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/3.0" 
> "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/site/3.0"
>  "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/site" 
> "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile" 
> "/home/user/.guix-profile/share/guile/site/3.0" 
> "/home/user/.guix-profile/share/guile/site/3.0")

Currently you have to start with:

  (use-modules (gnu packages))

This will set up ‘%load-path’ so that channel modules become visible.
Let me know if it works for you!

This is a bug we should fix.

HTH,
Ludo’.





bug#58841: repl ignores modules from the channel added to time-machine

2022-10-28 Thread alexander barakin (aka sash-kan)
see the attached file report.txt with explanations.## current configuration:
$ guix describe --format=channels
(list (channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git;)
(branch "master")
(commit
  "a0751e3250dfea7e52468c8090e18c3118d93a60")
(introduction
  (make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"
(openpgp-fingerprint
  "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")

## add guix-hpc channel (for illustration purposes only; you can use any other 
channel):
$ cat channels.scm
(list
  (channel
(name 'guix-hpc)
(url "https://gitlab.inria.fr/guix-hpc/guix-hpc.git;))
  (channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git;)
(branch "master")
(commit
  "a0751e3250dfea7e52468c8090e18c3118d93a60")
(introduction
  (make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"
(openpgp-fingerprint
  "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")

## both channels - guix and guix-hpc - are available:
$ guix time-machine --channels=channels.scm -- describe
  guix a0751e3
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: a0751e3250dfea7e52468c8090e18c3118d93a60
  guix-hpc 1a6af9f
repository URL: https://gitlab.inria.fr/guix-hpc/guix-hpc.git
branch: master
commit: 1a6af9f0154f57dc5a31bf535bb09db63e3a8d03

## but repl does not see guix-hpc modules:
$ guix time-machine --channels=channels.scm -- repl
...
scheme@(guix-user)> (use-modules (airbus solvers))
While compiling expression:
no code for module (airbus solvers)
scheme@(guix-user)> %load-path
$1 = 
("/gnu/store/dfm3k2qc0s4f8vi5il3gvrr0650p65k3-guix-module-union/share/guile/site/3.0"
 "/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/3.0" 
"/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/3.0" 
"/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/site/3.0" 
"/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile/site" 
"/gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/share/guile" 
"/home/user/.guix-profile/share/guile/site/3.0" 
"/home/user/.guix-profile/share/guile/site/3.0")