FHEM Forum

FHEM - Entwicklung => FHEM Development => Thema gestartet von: HomeAuto_User am 19 Mai 2021, 22:45:38

Titel: Meta.pm - PERL WARNING, stacktrace ...
Beitrag von: HomeAuto_User am 19 Mai 2021, 22:45:38
Hallo @loredo,

wir sind im Besitz eines Modules https://github.com/RFD-FHEM/SIGNALduino_TOOL/blob/pre-release/FHEM/88_SIGNALduino_TOOL.pm wo ich die Metadaten eingebunden habe.
Lange habe ich nach der Ursache gesucht von folgendem Fehler

2021.05.19 22:37:31 1: PERL WARNING: Use of uninitialized value in string ne at FHEM/Meta.pm line 1875.
2021.05.19 22:37:31 1: stacktrace:
2021.05.19 22:37:31 1:     main::__ANON__                      called by FHEM/Meta.pm (1875)
2021.05.19 22:37:31 1:     FHEM::Meta::__GetMetadata           called by FHEM/Meta.pm (1109)
2021.05.19 22:37:31 1:     FHEM::Meta::__PutMetadata           called by FHEM/Meta.pm (673)
2021.05.19 22:37:31 1:     FHEM::Meta::InitMod                 called by ./FHEM/88_SIGNALduino_TOOL.pm (123)
2021.05.19 22:37:31 1:     main::SIGNALduino_TOOL_Initialize   called by fhem.pl (2692)
2021.05.19 22:37:31 1:     (eval)                              called by fhem.pl (2675)
2021.05.19 22:37:31 1:     main::CommandReload                 called by fhem.pl (2037)
2021.05.19 22:37:31 1:     main::LoadModule                    called by fhem.pl (2102)
2021.05.19 22:37:31 1:     main::CommandDefine                 called by fhem.pl (1265)
2021.05.19 22:37:31 1:     main::AnalyzeCommand                called by fhem.pl (1116)
2021.05.19 22:37:31 1:     main::AnalyzeCommandChain           called by fhem.pl (1403)
2021.05.19 22:37:31 1:     main::CommandInclude                called by fhem.pl (619)
2021.05.19 22:37:31 1: PERL WARNING: Use of uninitialized value in string eq at FHEM/Meta.pm line 2115.
2021.05.19 22:37:31 1: stacktrace:
2021.05.19 22:37:31 1:     main::__ANON__                      called by FHEM/Meta.pm (2115)
2021.05.19 22:37:31 1:     FHEM::Meta::__GetMetadata           called by FHEM/Meta.pm (1109)
2021.05.19 22:37:31 1:     FHEM::Meta::__PutMetadata           called by FHEM/Meta.pm (673)
2021.05.19 22:37:31 1:     FHEM::Meta::InitMod                 called by ./FHEM/88_SIGNALduino_TOOL.pm (123)
2021.05.19 22:37:31 1:     main::SIGNALduino_TOOL_Initialize   called by fhem.pl (2692)
2021.05.19 22:37:31 1:     (eval)                              called by fhem.pl (2675)
2021.05.19 22:37:31 1:     main::CommandReload                 called by fhem.pl (2037)
2021.05.19 22:37:31 1:     main::LoadModule                    called by fhem.pl (2102)
2021.05.19 22:37:31 1:     main::CommandDefine                 called by fhem.pl (1265)
2021.05.19 22:37:31 1:     main::AnalyzeCommand                called by fhem.pl (1116)
2021.05.19 22:37:31 1:     main::AnalyzeCommandChain           called by fhem.pl (1403)
2021.05.19 22:37:31 1:     main::CommandInclude                called by fhem.pl (619)
2021.05.19 22:37:31 1: PERL WARNING: Use of uninitialized value in string eq at FHEM/Meta.pm line 2393.
2021.05.19 22:37:31 1: stacktrace:
2021.05.19 22:37:31 1:     main::__ANON__                      called by FHEM/Meta.pm (2393)
2021.05.19 22:37:31 1:     FHEM::Meta::__GetMetadata           called by FHEM/Meta.pm (1109)
2021.05.19 22:37:31 1:     FHEM::Meta::__PutMetadata           called by FHEM/Meta.pm (673)
2021.05.19 22:37:31 1:     FHEM::Meta::InitMod                 called by ./FHEM/88_SIGNALduino_TOOL.pm (123)
2021.05.19 22:37:31 1:     main::SIGNALduino_TOOL_Initialize   called by fhem.pl (2692)
2021.05.19 22:37:31 1:     (eval)                              called by fhem.pl (2675)
2021.05.19 22:37:31 1:     main::CommandReload                 called by fhem.pl (2037)
2021.05.19 22:37:31 1:     main::LoadModule                    called by fhem.pl (2102)
2021.05.19 22:37:31 1:     main::CommandDefine                 called by fhem.pl (1265)
2021.05.19 22:37:31 1:     main::AnalyzeCommand                called by fhem.pl (1116)
2021.05.19 22:37:31 1:     main::AnalyzeCommandChain           called by fhem.pl (1403)
2021.05.19 22:37:31 1:     main::CommandInclude                called by fhem.pl (619)
2021.05.19 22:37:31 1: PERL WARNING: Use of uninitialized value in string ne at FHEM/Meta.pm line 2396.
2021.05.19 22:37:31 1: stacktrace:
2021.05.19 22:37:31 1:     main::__ANON__                      called by FHEM/Meta.pm (2393)
2021.05.19 22:37:31 1:     FHEM::Meta::__GetMetadata           called by FHEM/Meta.pm (1109)
2021.05.19 22:37:31 1:     FHEM::Meta::__PutMetadata           called by FHEM/Meta.pm (673)
2021.05.19 22:37:31 1:     FHEM::Meta::InitMod                 called by ./FHEM/88_SIGNALduino_TOOL.pm (123)
2021.05.19 22:37:31 1:     main::SIGNALduino_TOOL_Initialize   called by fhem.pl (2692)
2021.05.19 22:37:31 1:     (eval)                              called by fhem.pl (2675)
2021.05.19 22:37:31 1:     main::CommandReload                 called by fhem.pl (2037)
2021.05.19 22:37:31 1:     main::LoadModule                    called by fhem.pl (2102)
2021.05.19 22:37:31 1:     main::CommandDefine                 called by fhem.pl (1265)
2021.05.19 22:37:31 1:     main::AnalyzeCommand                called by fhem.pl (1116)
2021.05.19 22:37:31 1:     main::AnalyzeCommandChain           called by fhem.pl (1403)
2021.05.19 22:37:31 1:     main::CommandInclude                called by fhem.pl (619)

bis ich dahinter kam, wenn ich das Modul umbenenne in 88_SIGNALduinoTOOL.pm mit Namensanpassungen, so erhalte ich den Fehler nicht.

Kann es durhaus sein, das du in deinem Modul eine Syntaxprüfung via RegEx oder so durchführst wo der Modulname mit Unterstrich durchfällt?

Ich erbitte Mithilfe um die PERL WARNING zu bereinigen.

Mfg Marco
Titel: Antw:Meta.pm - PERL WARNING, stacktrace ...
Beitrag von: HomeAuto_User am 31 Mai 2021, 21:42:25
Hier scheint wohl die Luft raus zu sein bei dem Modul?  ???
Titel: Antw:Meta.pm - PERL WARNING, stacktrace ...
Beitrag von: CoolTux am 01 Juni 2021, 05:59:27
Julian ist in der Tat aktuell nicht aktiv. Du kannst auf github/fhem ein PR einreichen, eventuell bekommt er das mit.