SenasOzys has quit [Remote host closed the connection]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
jemc has joined #ponylang
jemc has quit [Ping timeout: 246 seconds]
endformationage has quit [Ping timeout: 256 seconds]
dougmacdoug has quit [Ping timeout: 260 seconds]
patroclos has joined #ponylang
patroclos has quit [Ping timeout: 256 seconds]
hardliner66 has joined #ponylang
user10032 has joined #ponylang
vaninwagen has joined #ponylang
pcarrier has quit [Ping timeout: 256 seconds]
strmpnk has quit [Ping timeout: 256 seconds]
gornikm has quit [Ping timeout: 256 seconds]
codec1 has joined #ponylang
gornikm has joined #ponylang
strmpnk has joined #ponylang
pcarrier has joined #ponylang
user10032 has quit [Remote host closed the connection]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Client Quit]
SenasOzys has joined #ponylang
codec1 has quit [Quit: Leaving.]
codec1 has joined #ponylang
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
alxs has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
codec1 has joined #ponylang
codec1 has quit [Client Quit]
codec1 has joined #ponylang
codec1 has quit [Ping timeout: 246 seconds]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
codec1 has joined #ponylang
alxs has joined #ponylang
hardliner66 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
aturley has joined #ponylang
SenasOzys has quit [Ping timeout: 256 seconds]
_andre has joined #ponylang
SenasOzys has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
vaninwagen has quit [Ping timeout: 240 seconds]
alxs has joined #ponylang
jemc has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
alxs has quit [Client Quit]
alxs has joined #ponylang
Praetonus has joined #ponylang
dom96 has quit [Quit: Nim is King]
endformationage has joined #ponylang
codec2 has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
jemc has quit [Ping timeout: 260 seconds]
dom96 has joined #ponylang
dom96 has joined #ponylang
sternmull has joined #ponylang
jemc has joined #ponylang
patroclos has joined #ponylang
alxs has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
alxs has quit [Client Quit]
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
SenasOzys has quit [Ping timeout: 240 seconds]
patroclos has quit [Ping timeout: 256 seconds]
SenasOzys has joined #ponylang
user10032 has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
alxs has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
ondreian has joined #ponylang
<ondreian>
anyone have a good resource on grokking relative `use` statements in Pony? I can't seem to get any sort of relative use/import/require to working. I was reading through some other codebases to see what I am doing wrong, it seems like there is supposed to be a `bundle.json` file that defines where local lookups should start?
<ondreian>
but even with a bundle.json, the never seem to be resolvable
bimawa has joined #ponylang
<slfritchie>
ondreian: Have you tried using the `-p`/`--path` flag to the Pony compiler? The `bundle.json` file is used by the `stable` package manager for external source dependencies and probably isn't solving the problem you have.
<slfritchie>
Ha, then I take a closer look at the use of `bundle.json` files in the Wallaroo source and see that many/all? use:
<slfritchie>
... where the number of `../` components in the path reaches up to the top of the Wallaroo source repo.
<ondreian>
That's where I was reading myself.
<slfritchie>
Having discovered that, though, Wallaroo is definitely compiled using `stable` to manage dependencies.
<slfritchie>
Are you not using `stable` and thus using `ponyc` directly?
<ondreian>
yeah, I have been using ponyc directly
<ondreian>
i had tried `--path=./` originally
<ondreian>
without luck
<ondreian>
Let me see if stable will make my life easier
<Praetonus>
ondreian: Where are the packages you want to `use` located, relative to the directory where you invoke ponyc?
<jemc>
ondreian: if you can give an example of what you're trying to do, we can better help with recommendations
<jemc>
note that `bundle.json` isn't necessary if you just want to use files relative to other ones
<jemc>
s/files/folders/
<ondreian>
i have a folder `core/<packages>`
<ondreian>
so, <project>/main.pony and `<project>/core/`
<ondreian>
and in main.pony I am doing `use "core/character"`
<SeanTAllen>
i would advise using stable and invoking ponyc by doing `stable env ponyc`
<jemc>
if all the source code you need is in the same project directory (and in the standard library), it isn't necessary to use stable
<jemc>
ondreian: to be clear, `<project>/core/character` is a directory with pony source files in it, right?
<jemc>
if so, what you're describing should work
<ondreian>
it would be `<project>/core/character.pony`
<jemc>
okay, then what you need to do is `use "core"`
<ondreian>
i am just making a toy text RPG to understand a bit more about Pony lang, nothing serious at this point, so I don't need any external dependencies, just want to understand all of the basics like Atomic operations and such
<jemc>
which will allow you to use any public type (any type not starting with an underscore) defined in any source file in the `core` directory
<ondreian>
Aha, so it auto imports the entire directory
<jemc>
yeah, just like it auto-compiles the entire root directory that you point the compiler toward
<ondreian>
and that works.
<jemc>
because a director represents a "package"
<ondreian>
thanks
<jemc>
no problem!
ondreian has quit [Quit: ondreian]
codec2 has quit [Read error: Connection reset by peer]