[SOLVED]New Package-New class name other than T+NAME lazarus / 9-Editor ---------------------------------------------------------------------- Never · 2014-09-16 09:47 Is it possible for any one  to confirm that if following the steps of the wiki [ http://wiki.freepascal.org/How_to_Write_a_Lazarus_Component ] if you edit the field [ New class name : ] and set anything that do not start with the letter [T] when you press install lazarus first reports that the file is modified and provide option to reload from disk or not and after the rebuild ends lazarus reports error 202 and refuse to start [OS:Win7 64bit / Lazarus 1.2.4] *make a back up of lazarus first if you try this ---------------------------------------------------------------------- taazz · 2014-09-16 10:43 in order for lazarus to report a modification there should be at least two open projects that use the same file. Try to find where you duplicated what and will see from there. ---------------------------------------------------------------------- Never · 2014-09-16 10:55 no other instance of lazarus no other file editor open  one thing i just came up is that  i didn't save the default project added when lazarus starts... ---------------------------------------------------------------------- taazz · 2014-09-16 11:44 I never save that one and I never get the reload message either. The only thing left to check is that the file was change from an outside source like a text editor or something else. ---------------------------------------------------------------------- Never · 2014-09-16 12:04 just now i repeat the process new package save as testp.lpk in folder testp hit add go new component choose anchestor type remove the [T] from the  [ New class name : ] hit create new component hit save hit install ========== response is lazarus cant compile remove it from the list? ============== i didn't change or add anything else =================================== yesterday i was changing the  [ New class name : ] and file name and failed as mentioned ---------------------------------------------------------------------- taazz · 2014-09-16 12:11 Something like the attached image? If yes have noticed that the component name and unitname are the same? Make sure that the Unit name differs from the component name and see if that fixes the problem ---------------------------------------------------------------------- Never · 2014-09-16 12:25 @ taazz thank you very much your advice solved the issue setting field [unit file name :] [ unit name ] the same and field [new class name :] not to much them works fine ---------------------------------------------------------------------- Mike.Cornflake · 2014-09-16 13:04 @Taazz - nice work solving this one.  Do you know if this a known limitation in fpc/Lazarus, or just an issue with that wizard? (classname cannot = unitname) ---------------------------------------------------------------------- taazz · 2014-09-16 14:43 it is a known issue with the designer I think ee you can't name your form with the same name as the unit it is in, I don't know if the compiler has any problems with it but I would guess no since the first problem risen after the lazarus IDE was build. ---------------------------------------------------------------------- Mike.Cornflake · 2014-09-16 15:24 Quote from: taazz on September 16, 2014, 04:43:39 pmit is a known issue with the designer I think ee you can't name your form with the same name as the unit it is in, I don't know if the compiler has any problems with it but I would guess no since the first problem risen after the lazarus IDE was build. Many thanks