Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 02:02
    renovate[bot] edited #784
  • 00:37
    renovate[bot] edited #784
  • 00:03
    codecov-io commented #189
  • 00:03
    codecov-io commented #189
  • 00:03
    codecov-io commented #189
  • 00:03
    codecov-io commented #189
  • 00:01
    renovate[bot] edited #119
  • 00:01
    renovate[bot] edited #189
  • 00:00
    renovate[bot] synchronize #189
  • 00:00

    renovate[bot] on dev

    chore(dependencies): update dev… (compare)

  • Mar 04 23:25
    renovate[bot] edited #43
  • Mar 04 16:26
    renovate[bot] edited #43
  • Mar 04 15:29
    renovate[bot] edited #189
  • Mar 04 15:29
    renovate[bot] synchronize #189
  • Mar 04 15:29

    renovate[bot] on dev

    chore(dependencies): update dev… (compare)

  • Mar 04 14:27
    renovate[bot] edited #784
  • Mar 04 09:02
    codecov-io commented #189
  • Mar 04 09:02
    codecov-io commented #189
  • Mar 04 09:00
    renovate[bot] edited #119
  • Mar 04 09:00
    codecov-io commented #189
Finlay Thompson
@finlay
Okay, got the binary onto the computer. Now I get a more serious error:
finlay@triage-lab:~$ nixster --help
pkg/prelude/bootstrap.js:1185
      throw error;
      ^

Error: Cannot find module '../build/better_sqlite3.node'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1287:46)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:635:17)
    at Module.require (pkg/prelude/bootstrap.js:1166:31)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/snapshot/nixster/node_modules/better-sqlite3/lib/database.js:5:21)
    at Module._compile (pkg/prelude/bootstrap.js:1261:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:710:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
That looks like it needs to have a access to a sqlite3 db somewhere ?
-rwxr-xr-x 1 finlay finlay 56M May 16 10:45 /usr/local/bin/nixster
Does that look to be right size ?
hmm, annoyingly it works fine on my 16.04 laptop...
with the exact same file
Nokome Bentley
@nokome
I'll check...
Nokome Bentley
@nokome
I get the same size as you...now wondering about that sqlite3 issue
it looks like it can't find the binary node module that provides the sqlite bindings
Finlay Thompson
@finlay
yeah, which I would need to install globally ?
Nokome Bentley
@nokome
no, it should come in the nixster binary and get unpacked
Finlay Thompson
@finlay
okay, so it is not just the binary...
Nokome Bentley
@nokome
Can you please ls .local/bin/node_modules

This is what I get:

> ls .local/bin/node_modules
better-sqlite3/  integer/  node-pty/

Those modules (which have native binaries) are unpacked when you first run the nixster binary (we need to put them in a better place)

Finlay Thompson
@finlay
Okay, I worked out what the problem is.....
So if I run it in .local/bin it unpacks the files into .local/bin/
but, I put the file into /user/local/bin/
and it couldn't do that
file permissions etc.
but, I ran it with sudo, and now it works without sudo
Maybe the installer should extract the files at the same time ?
I now have a functioning nixster on the commandline!
Nokome Bentley
@nokome
Great, thanks for your patience. Need to capture some of these issues and work out best approach
Finlay Thompson
@finlay
no problems....
Finlay Thompson
@finlay
Downloading nix derivations!
Nokome Bentley
@nokome
For your haskell project?
Finlay Thompson
@finlay
yeah
Can I get override the 'envs' directory ?
I would like to save the yaml file locally...
finlay @finlay causes lots of trouble ...
Nokome Bentley
@nokome
Hah. Not currently. Please create a feature request ticket
Finlay Thompson
@finlay
Done
Added a couple actually
Nokome Bentley
@nokome
Thanks
Finlay Thompson
@finlay
Can I keep bothering you with questions ?
Nokome Bentley
@nokome
Sure
:thumbsup:
Finlay Thompson
@finlay
nixster enter drops you into a shell right ?
is that something like nix-shell ?
Nokome Bentley
@nokome
Yes correct x 2
Finlay Thompson
@finlay
So, just looked at the code. I can run it in --pure=false mode
and it does what I think it does right ?
nixster enter --pure=false readxml
Nokome Bentley
@nokome
Yeah, with pure=false it adds to the PATH
Finlay Thompson
@finlay
yeah, which can be good and bad, obviously
Nokome Bentley
@nokome
    let PATH = `${location}/bin:${location}/sbin`
    if (!pure) PATH += ':' + process.env.PATH
where location is the location of the env
Finlay Thompson
@finlay
it has created a biggish sqlite3 file locally ?
Is that necessary ?
Nokome Bentley
@nokome
Yes, that sqlite3 file should go next to node_modules - it's app level data
Finlay Thompson
@finlay
let me see ....