Git Product home page Git Product logo

Comments (4)

SeanTAllen avatar SeanTAllen commented on June 4, 2024

@tbillington i assume you have git installed? what version of OSX? I use stable on OSX without issue every day. I'm unable to reproduce.

screenshot 2017-11-04 12 42 26

from pony-stable.

tbillington avatar tbillington commented on June 4, 2024

OSX 10.12.6

I tried your commands in a fresh directory and it worked :) !

It seems that having a malformed bundle.json in the directory prevented stable from doing anything. As you can see from my terminal history below running add gave no output.

~/pwildlife > stable add oraoto/pony-websocket
Couldn't find type 'oraoto/pony-websocket'.
Available types are github, local-git, and local.
~/pwildlife > stable add github oraoto/pony-websocket
~/pwildlife > cat bundle.json
{}
~/pwildlife > ls
bundle.json main.pony   pwildlife
~/pwildlife > stable env ponyc
Building builtin -> /usr/local/Cellar/ponyc/0.20.0/packages/builtin
Building . -> /Users/trent/pwildlife
Error:
websocket: couldn't locate this path
Error:
/Users/trent/pwildlife/main.pony:1:1: can't load package 'websocket'
use "websocket"
^

from pony-stable.

SeanTAllen avatar SeanTAllen commented on June 4, 2024

@tbillington do you have a "malformed" bundle.json we can use to test with so we can verify we fixed the issue?

from pony-stable.

tbillington avatar tbillington commented on June 4, 2024
{
  "type": "github",
  "repo": "oraoto/pony-websocket"
}

and

{}

If the bundle.json is an empty file there is an error message, that's why I thought it was strange when there was no output for the above incorrectly formed bundle.json.

> stable add github oraoto/pony-websocket
JSON error at: /Users/trent/pwildlife/bundle.json:1 : Unexpected EOF in top level value
JSON error at: /Users/trent/pwildlife/bundle.json:1 : Unexpected EOF in top level value
JSON error at: /Users/trent/pwildlife/bundle.json:1 : Unexpected EOF in top level value

from pony-stable.

Related Issues (20)

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.