<div dir="ltr">Hi Michael,<div><br></div><div>Spheres is designed to work as projects with a structure and a config.scm file. The tasks will handle all that dependencies for you in different situations.</div><div>Using gsi directly is not supported currently. The reason is that you are not supposed to write ##import code in your source files, but rather use the config.scm files to define direct dependencies and let the different tasks to do the work for you. Maybe future releases address that usecase, for individual source files without config.scm.<br>


</div><div><br></div><div>If you want to run interpreted code you need to:</div><div>"sake host:run"</div><div>inside a project.</div><div>Otherwise, to compile use:</div><div>"sake host:compile"</div>


<div><br></div><div>So, if you want to run code as gsi, just use the "minimal" skeleton and place the code in the main.scm file.</div><div><br></div><div><br></div>
<div>Cheers!</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><br><br><span style="font-family:verdana,sans-serif">        <font size="1">Álvaro Castro-Castilla</font></span><span style="font-family:verdana,sans-serif;font-size:x-small">    --    <a href="mailto:a@fourthbit.com" target="_blank">a@fourthbit.com</a></span><span style="font-family:verdana,sans-serif"><font size="1"><br>


          Fourthbit: Turning Ideas into Reality.  --  <a href="http://blog.fourthbit.com" target="_blank">Visit the Blog</a></font></span><br clear="all">

<span style="font-family:verdana,sans-serif"></span><div><span style="font-family:verdana,sans-serif"><font size="1"><br>

</font></span></div><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"><div><span style="font-family:verdana,sans-serif"><font size="1"><a href="http://fourthbit.com" target="_blank"><img src="https://s3.amazonaws.com/fourthbit-main/logo_inverted.png"></a><br>


<br>

</font></span></div></blockquote></div></div>
<br><br><div class="gmail_quote">On Fri, Jan 3, 2014 at 3:33 PM, Michael Greenly <span dir="ltr"><<a href="mailto:michaelgreenly@logic-refinery.com" target="_blank">michaelgreenly@logic-refinery.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm very new to gambit and a bit confused by this behavior.  I'm not sure if it's a Spheres specific issue or if I'm missing something more obvious.  Any help pointing me in the right direction would be greatly appreciated.<div>



<br></div><div>I've installed gambit v4.7.1 and Scheme Spheres v0.4 just as the quick start guide recommends.</div>
<div><br></div><div>Everything seems to be working, for example I can create a new project with <font face="courier new, monospace">'sfusion new -g minimal foo'</font> and <font face="courier new, monospace">'sake host:run' </font>works as expected.</div>



<div><br></div><div>What confuses me is that from the repl I can<font face="courier new, monospace"> enter '(##import core: testing)'</font> and then <font face="courier new, monospace">'(check 42 => 42)'</font> and everything works as expected.</div>



<div><br></div><div>But if I create a file:</div><div><br></div><div><font face="courier new, monospace">    ; test.scm</font></div><div><font face="courier new, monospace">    (##import core: testing)</font></div><div><font face="courier new, monospace">    (check 42=> 42)</font></div>



<div><br></div><div>Then run<font face="courier new, monospace"> 'gsi test.scm'</font> I get<font face="courier new, monospace"> '***ERROR -- Unbound variable: Check'</font>.</div><div><br></div><div>I don't understand why there's a difference in behavior between the repl and batch mode when using gsi?</div>


<span><font color="#888888">
<div><div><br></div>-- <br>Michael Greenly<br><a href="http://logic-refinery.com" target="_blank">http://logic-refinery.com</a><br>

</div></font></span></div>
<br>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br></div></div>