justone / dfm

dotfiles manager
http://endot.org/projects/#dfm
Other
123 stars 18 forks source link

Use of uninitialized value $target_base in concatenation #25

Closed simonszu closed 9 years ago

simonszu commented 9 years ago

Hi,

i am currently experiencing an issue that is new to me after some months of usage of dfm. When symlinking, i get an error:

INFO:   Symlinking .vim (.dotfiles/.vim). 
Use of uninitialized value $target_base in concatenation (.) or string at /home/simonszu/bin/dfm line 603.
Use of uninitialized value $target_base in string eq at /home/simonszu/bin/dfm line 604.
INFO:   Cleaning up dangling symlink .DS_Store (.dotfiles/.DS_Store).
Use of uninitialized value $target_base in concatenation (.) or string at /home/simonszu/bin/dfm line 603.
Use of uninitialized value $target_base in string eq at /home/simonszu/bin/dfm line 604.

However, it seems to be just a warning, because the symlinks were created. But i just wanted to drop you a line, so you can check it.

justone commented 9 years ago

That's quite odd. What version of dfm are you using and is your dotfiles repo on github so that I can clone it and test it out?

simonszu commented 9 years ago

Hi,

i'm afraid i have no public repository of my dotfiles, because there is some sensitive config inside it. However, the issue only appears on one of my PCs, an iMac. I have a Macbook beside it, with almost the same configuration, and it works fine there, as well as on my linux PCs. I am using version 0.6 of dfm, at least that's what $VERSION is set to.

I have cloned the repo on a fresh VM, and the error does not appear there as well, so i think it has something to do with the config of my iMac, but i have no idea, what.

So, somehow my iMac perl interpreter refuses to execute the commands in lines 600 and 601.

However, the result is satisfying. My dotfiles are managed as i am used to, and the dangling symlinks are removed as well.

I'm afraid i know only little perl, but i'll do my best to help you, looking after the cause, or so...

simonszu commented 9 years ago

Hi, just to let you know: Version 0.7.2 does not fix the problem.

justone commented 9 years ago

Thank you for trying that. I'm going to make a special version for you to try out. I'll get back to you in a few days.

simonszu commented 9 years ago

Hi,

i think the issue resolved itself. I have no idea, why, but since i have no idea why it existed in the first place, i'm fine, i think.

justone commented 9 years ago

That is very odd. Well, if it pops up again, please let me know.

justone commented 9 years ago

I believe #31 fixed the issue.