Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When walking for imports, try-open each file to skip symlinks to erro…
…neous destinations. Closes #113. Thanks nixeagle for catching this!
- Loading branch information
03c0478
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't a call to exists() suffice? Imho it does exactly that.
03c0478
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you do that in Resolver walkImports - which is good and fancy - but rock will then still segfault when being handed over a path to a non-existent file? Ie. rock bad_link.ooc ?
03c0478
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, alright, that was one thought too much. Thank you, fixed in cd0cbee.
rock link.ooc
will printFile not found: link.ooc
which is enough imo.