Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with custom data_dir in 0.52 #66

Closed
mgruner opened this issue Sep 20, 2016 · 2 comments
Closed

Error with custom data_dir in 0.52 #66

mgruner opened this issue Sep 20, 2016 · 2 comments

Comments

@mgruner
Copy link
Contributor

mgruner commented Sep 20, 2016

When passing in a custom data_dir (as a string, of course) as suggested in the documentation to new_from_conf_file, Code::TidyAll will cause a Perl error:

Can't locate object method "child" via package "/var/folders/85/z186m29d7zbgb6tx8sqxhvhr0000gn/T" (perhaps you forgot to load "/var/folders/85/z186m29d7zbgb6tx8sqxhvhr0000gn/T"?) at /Library/Perl/5.18/Code/TidyAll.pm line 58.

This is because _build_backup_dir() calls $self->data_dir->child('backups') which dies if data_dir is a scalar. Workaround: also set no_backups => 1 flag in the parameters.

@autarch
Copy link
Member

autarch commented Oct 3, 2016

I'm working on this. I hope to have a release out this weekend at the latest.

@autarch
Copy link
Member

autarch commented Oct 10, 2016

Well, that didn't happen. I will keep working on this. I'm trying to get Code::TidyAll to use Specio types with coercions, but there is some sort of bug in Specio or Moo that I need to understand.

autarch added a commit that referenced this issue Oct 15, 2016
@mgruner mgruner closed this as completed Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants