RefactorF4Acc icon indicating copy to clipboard operation
RefactorF4Acc copied to clipboard

Issues with uninitialsed variable in perl

Open nwalet opened this issue 1 year ago • 4 comments

Use of uninitialized value $mtype in string ne at xxx/RefactorF4Acc/RefactorF4Acc/Parser.pm line 2862. Will see whether this is understandable, but not sure what causes this...

nwalet avatar Aug 22 '23 11:08 nwalet

Thanks for reporting this issue. Could you share the code that causes this error? I have not worked on the codebase for a long time but happen to be working on it at the moment.

wimvanderbauwhede avatar Aug 22 '23 11:08 wimvanderbauwhede

I can--Howevere, I have added a small test to your code, that showed me what was happening (just above line 2682 of Parser.pm) if (not defined $mtype) { say "var=$var has no type" } Which showed this was caused by an "INCLUDE" that was not resolved--this annoying code uses includes for the parameters used, which seems to cause this failure. I think the error message I generated was quite helpful.

nwalet avatar Aug 22 '23 12:08 nwalet

Thanks a lot! But the compiler should resolve includes, so there is definitely something wrong there. Is this include in the same folder (or in a subfolder) as the main code? Otherwise it needs an explicit path in the config file.

wimvanderbauwhede avatar Sep 03 '23 12:09 wimvanderbauwhede

@nwalet I have done a new release, maybe that will work better for you.

wimvanderbauwhede avatar Oct 23 '23 13:10 wimvanderbauwhede