Closed Remi-Gau closed 2 years ago
Excellent, you're the first public user to trigger an ICE, well done :)
It's trivial to reproduce, just have a broken symlink and call mh_style .
I will have it fixed in the next release.
Excellent, you're the first public user to trigger an ICE, well done :)
Do I get a special price? :-)
I will have it fixed in the next release.
You're awesome!
Sure, you get a really quick fix. :) So I fixed it by ignoring broken symlinks when they are swept up in the inputs via a directory like that. When you specifically ask on the command-line you get an error.
Encountered this error. This is most likely a one in million edge case so feel free to close it right away.
Only reported it because the error message said to do so. :-)
Can try to create MWE if really necessary, this might involve setting up a very specific "environment".
MISS_HIT Component affected
Any from the command:
mh_style --fix && mh_metric --ci && mh_lint
Your MATLAB/Octave environment
Your operating system and Python version
Traceback
The problematic file is a broken symlink (an expected broken symlink as it is a file version controled with git annex and datalad):
Funny thing is that running any of the command in the alias I use gives me more or less this:
Getting the actual file to fix the broken link changes the behavior a a bit:
mh_style will work as expected
mh_style wiht --fix will work as expected too (it is meant to give an error because those version controlled files are "write protected"
Unlocking the file to lift the write protection let's
--fix
do its job