Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Cache not working? #73

Closed
borkdude opened this issue Feb 1, 2017 · 6 comments
Closed

Cache not working? #73

borkdude opened this issue Feb 1, 2017 · 6 comments
Labels

Comments

@borkdude
Copy link

borkdude commented Feb 1, 2017

I have script in script.cljs:

https://github.com/borkdude/rafflers/tree/master/borkdude-cljs-node-lumo

I execute this script like this:

./node_modules/lumo-cljs/bin/lumo -K script.cljs /tmp/names/current

The last argument can be any text file containing some lines. It will return a random line from the text file. It may also be omitted.

I expect the .lumo_cache to contain something after the initial run, but this directory stays empty.

@tiye
Copy link
Contributor

tiye commented Feb 2, 2017

I guess Lumo only caches files from libraries according to my experience, which are specified in classpath

@anmonteiro
Copy link
Owner

We can definitely cache the file you're executing, and there seems to be a Lumo bug there, but if the namespace and the path don't match (as in your example), it serves little purpose, as evaluation won't be able to find the cached source.

@borkdude
Copy link
Author

@anmonteiro I'll change the namespace to script. Thanks!

@anmonteiro
Copy link
Owner

That will probably work, but note this still doesn't work. It's an easy fix, though, and should make it to the next release

@anmonteiro anmonteiro added the bug label Feb 21, 2017
@borkdude
Copy link
Author

borkdude commented Feb 21, 2017

@anmonteiro Thanks! No worries, I'm not in a hurry.

@anmonteiro
Copy link
Owner

fixed f91d165

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants