Giter Site home page Giter Site logo

psvm-js's People

Contributors

dgendill avatar doppioslash avatar felixschl avatar ghivert avatar hdgarrood avatar jacereda avatar mostalive avatar natefaubion avatar thomascrevoisier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

psvm-js's Issues

Can't "npm install -g psvm"

npm install -g [email protected] works, but:

~ ❯❯❯ npm install -g psvm
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/home/siegfried/.nvm/versions/node/v0.12.7/bin/node" "/home/siegfried/.nvm/versions/node/v0.12.7/bin/npm" "install" "-g" "psvm"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: psvm@'*'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.1-beta.1","0.0.1-beta","0.0.1-beta1"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/siegfried/npm-debug.log

psc: command not found after a fresh install

I psvm install v0.8.5 which worked fine.

When I psvm current, I have the following output:

Unhandled rejection Error: Command failed: psc --version
/bin/sh: psc: command not found

   at ChildProcess.exithandler (child_process.js:202:12)
   at emitTwo (events.js:106:13)
   at ChildProcess.emit (events.js:191:7)
   at maybeClose (internal/child_process.js:850:16)
   at Socket.<anonymous> (internal/child_process.js:323:11)
   at emitOne (events.js:96:13)
   at Socket.emit (events.js:188:7)
   at Pipe._handle.close [as _onclose] (net.js:492:12)

"psvm use" not implemented correctly

psvm use <version> should put the specified version of psc* in the PATH.

Downside : This will only be valid for the current shell session, it will be not persisted. Might be useful to check how nvm handles this.

Tag versions when publishing to npm?

It would be nice to add a git tag for each version you publish to npm - for example, this makes it easier to diagnose issues, as people can easily look at the code they're running. In case you weren't aware, npm version can do this for you and update package.json properly at the same time, too.

`psvm ls` fails if the psvm prefix directory does not exist

To reproduce:

$ rm -r $HOME/.psvm
$ psvm ls
s.js:945
  return binding.readdir(pathModule._makeLong(path), options.encoding);
                 ^

Error: ENOENT: no such file or directory, scandir '/Users/hgarrood/.psvm/versions'
    at Error (native)
    at Object.fs.readdirSync (fs.js:945:18)
    at Object.getInstalledVersions (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/src/lib.js:30:17)
    at Object.ls [as action] (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/src/cli.js:20:22)
    at Object.cli.execute (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/node_modules/cliparse/src/cli.js:80:30)
    at Object.cli.parse (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/node_modules/cliparse/src/cli.js:153:9)
    at Object.<anonymous> (/Users/hgarrood/.npm-packages/lib/node_modules/psvm/src/cli.js:139:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:4

I guess ideally it would simply output nothing and exit with 0 in this case.

Don't require a leading v when switching versions

For example:

$ psvm use 0.8.5
Switching to Purescript : 0.8.5
Unhandled rejection Error: ENOENT: no such file or directory, open '/Users/hgarrood/.psvm/versions/0.8.5/purescript/psc'
    at Error (native)

I do have 0.8.5 installed; if I run psvm use v0.8.5 it works. Can psvm automatically prepend a 'v' if necessary? Also can this error be made a bit nicer?

I might send a PR for this if I get a spare moment. :)

Windows support?

Would you be ok with adding support for Windows? I'd be happy to make the code changes required; I'm expecting (hoping) that they'll be relatively straightforward.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.