NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.42k stars 13.63k forks source link

J standard library not working/included #106034

Open ursi opened 3 years ago

ursi commented 3 years ago

I'm very new to J, but in trying to follow the "Primer" I was instructed to run load 'debug' and got the following result.

   load 'debug'
not found: /nix/store/pwrzpvk8gh4np2pd26g0lrwrniz152kc-j-901/share/j/addons/ide/qt/debugs.ijs
|file name error: script
|       0!:0 y[4!:55<'y'

I'm not sure what's going on here, but I'd love to know if there's a fix, thanks. @7c6f434c @Synthetica9

7c6f434c commented 3 years ago

I'm very new to J, but in trying to follow the "Primer" I was instructed to run load 'debug' and got the following result.

  load 'debug'
not found: /nix/store/pwrzpvk8gh4np2pd26g0lrwrniz152kc-j-901/share/j/addons/ide/qt/debugs.ijs
|file name error: script
|       0!:0 y[4!:55<'y'

I'm not sure what's going on here, but I'd love to know if there's a fix, thanks. @7c6f434c @Synthetica9

Hmmm, apparently using anything Qt from J requires also building the stuff from qtide repository in addition to just J (which is built as console-only now)

Synthetica9 commented 3 years ago

I only really use J as a console calculator, but it should be totally doable to package jqt as well I think

On Sun, 6 Dec 2020, 10:17 Michael Raskin, notifications@github.com wrote:

I'm very new to J, but in trying to follow the "Primer" I was instructed to run load 'debug' and got the following result.

load 'debug'
not found:
/nix/store/pwrzpvk8gh4np2pd26g0lrwrniz152kc-j-901/share/j/addons/ide/qt/debugs.ijs
|file name error: script
| 0!:0 y[4!:55<'y'

I'm not sure what's going on here, but I'd love to know if there's a fix, thanks. @7c6f434c @Synthetica9

Hmmm, apparently using anything Qt from J requires also building the stuff from qtide repository in addition to just J (which is built as console-only now)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NixOS/nixpkgs/issues/106034#issuecomment-739476412, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV7PJ4U3NDY6MVGNFUK6RTSTND4BANCNFSM4UO63ZCA .

Synthetica9 commented 3 years ago

Actually, I looked at it again, and it looks like with j9 the standard library was split out to a different repo, https://github.com/jsoftware/base9. Maybe including that will fix the problem you're having?

ursi commented 3 years ago

@Synthetica9 How do I go about including it? I don't see a nix package for it, or any properties on the J package to override.

Synthetica9 commented 3 years ago

You'd have to edit the j derivation, I'll see if I can submit a PR tonight

ursi commented 3 years ago

@Synthetica9 thanks! let me know if you do so I can change the nixpkgs in my flake lock to your patched version.

Synthetica9 commented 3 years ago

Wait, I was looking at the qtide source and the debugs.ijs is nowhere to be found; it's not in the base9 repo either... Where is that supposed to be coming from?

7c6f434c commented 3 years ago

Wait, I was looking at the qtide source and the debugs.ijs is nowhere to be found; it's not in the base9 repo either... Where is that supposed to be coming from?

There is debug.ijs file in the current j package, though.

Synthetica9 commented 3 years ago

That's debug.ijs, not debugs.ijs

ursi commented 3 years ago

@Synthetica9 found it https://github.com/jsoftware/base9/blob/master/main/debug.ijs

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info