Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Putting a README.md in the mojits/ directory causes mojito to not load #1017

Closed
gotwarlost opened this issue Mar 1, 2013 · 4 comments
Closed

Comments

@gotwarlost
Copy link

$ touch mojits/README.md
$ ./node_modules/mojito/bin/mojito start --context environment:development
info: (mojito-resource-store): Store initialized
info: (mojito-resource-store): Store initialized

/tmp/ui/node_modules/mojito/lib/app/addons/rs/config.js:149
                            throw new Error("Error parsing file: " + fullPath 
                                  ^
Error: Error parsing file: /tmp/ui/mojits/README.md/definition.json

Not a big deal but a bug all the same.

@gotwarlost
Copy link
Author

Note how it thinks that README.md is a directory. If this is common code, this bug may have other subtler manifestations.

@caridy
Copy link
Contributor

caridy commented Mar 1, 2013

/ping @drewfish

@drewfish
Copy link
Contributor

drewfish commented Mar 4, 2013

Looks like a bug in the resource store.

@ghost ghost assigned drewfish Mar 21, 2013
@drewfish
Copy link
Contributor

I think the fix entails added a check in lib/app/autoload/store.server.js _preloadDirMojit() to make sure that the dir argument is actually a directory (and just return if it isn't).

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

No branches or pull requests

3 participants