Strange compile error

Hi!


I haven't changed the code, just reinstalled WebCore and now I get two errors

1. Caption property of TWebRadionButton doesn't exist anymore.

2. Upon compiling I get this error: [Error] Duplicate identifier "TOkoljeMaps" at Components\Okolje.Maps.pas(9,14)

I checked the coe and TOkoljeMaps is declared just once, here's the only file where is declared:


unit Okolje.Maps;


interface


uses
  Classes, WEBLib.Controls, WEBLib.Graphics, SysUtils, Web, JS, WEBLib.WebCtrls;


type
  TOkoljeMaps = class(TWebGoogleMaps)
  public
    procedure CustomizeGui;
  end;


  TWebOkoljeMaps = class(TOkoljeMaps);


implementation


{ TWebOkoljeMaps }


procedure TOkoljeMaps.CustomizeGui;
var map: TJSHTMLElement;
begin
  map := self.GetMap;
  asm
    map.setOptions({disableDefaultUI:true});
    map.setOptions({mapTypeId:google.maps.MapTypeId.ROADMAP});
  end;
end;


end.


I tried to delete the target directory and rebuild, but no success. Also restared Delphi (Rio). Do you have any suggestions?

Also, here's the compile log:


Checking project dependencies...
Building Okolje24.dproj (Debug, Win32)
Command line: C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11\Compiler\pas2js.exe "C:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\Okolje24.dpr" -MDelphi -l -JeJSON -Jminclude -O- -Jc -viw -vnh -vm026,5024,3021,5023,4501 -Jitms.js -Jirtl.js "-FuC:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client;C:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\Entities;C:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\Components;C:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\Helpers;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11\Core Source\;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11\Core Source\RTL;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11\Core Source;C:\Users\marko.JPO\Documents\tmssoftware\TMS Busines Core Library\source\core\common;C:\Users\marko.JPO\Documents\tmssoftware\TMS Busines Core Library\packages\web\pju;C:\Users\marko.JPO\Documents\tmssoftware\TMS XData\source\core\common;C:\Users\marko.JPO\Documents\tmssoftware\TMS XData\source\core\web;C:\Users\marko.JPO\Documents\tmssoftware\TMS XData\packages\web\pju;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11" "-FiC:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client;C:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\Entities;C:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\Components;C:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\Helpers;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11\Core Source\;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11\Core Source\RTL;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11\Core Source;C:\Users\marko.JPO\Documents\tmssoftware\TMS Busines Core Library\source\core\common;C:\Users\marko.JPO\Documents\tmssoftware\TMS Busines Core Library\packages\web\pju;C:\Users\marko.JPO\Documents\tmssoftware\TMS XData\source\core\common;C:\Users\marko.JPO\Documents\tmssoftware\TMS XData\source\core\web;C:\Users\marko.JPO\Documents\tmssoftware\TMS XData\packages\web\pju;C:\Users\marko.JPO\Documents\tmssoftware\TMS WEB Core RSXE11" "-FUC:\Users\marko.JPO\Documents\Skupne mape\1603 - Informatika\Razvoj\Okolje24\Dev\Client\TMSWeb\Debug" -vl -dDEBUG -dWEBLIB
Pas2JS Compiler version 1.4.14 [2019/08/30] for Win32 i386 / TMS WEB Core version v1.2.8.0
[Error] Duplicate identifier "TOkoljeMaps" at Components\Okolje.Maps.pas(9,14)
Duplicate identifier "TOkoljeMaps" at Components\Okolje.Maps.pas(9,14)
[Fatal Error] Duplicate identifier "TOkoljeMaps" at Components\Okolje.Maps.pas(9,14)

  1. When I drop a new TWebRadioButton on the form, I see the Caption property. Do you see it?
    2) I guess you add this unit Okolje.Maps; to your project? If so, there is no need to declare TWebOkoljeMaps = class(TOkoljeMaps);
  1. When I add a new TWebRadioButton i see the caption, but in the object inspector there is no "Caption" property.
    2. Strange - it worked until today. Also if I rename "TOkoljeMaps" to "TOkoljeMaps2" it successfully compiled. and yes, I added the unit in another form.
  1. Strange, we do not see this here. We will investigate.
    2. I guess you added the unit to the .DPROJ file?
  1. It was already added, I just changed the class name from TOkoljeMaps to TOkoljeMaps2, and now is working.

Is there any manual for clean reinstalling?


I removed the components from Delphi (Tokyo), and deleted the web core directroy. Then I reinstalled all, but the problem persists.

Regarding missing Caption property of TWebRadioButton: I also removed TMSWEBCorePkgD*.bpl, TMSWEBCorePkgDED*.bpl, TMSWEBCorePkgLib*.bpl from  the disk and reinstalled, but no luck.

This must be something that slipped into v1.2.8.0. Internally this is showing the property as expected. The next update will address this. As a workaround for now, you should be able to set the Caption property programmatically.

Ok, thanks for the help. I currently solved the issue with 2 additional labels, but probably chanke to programmatic caption setting as you proposed. I'll upgrade when available. 

One more note if helps - TWebRadioButton - also design time is not possible to check or uncehck the property "Checked".

Thanks for reporting. 
We could reproduce this and have applied a fix. The next update will have this fixed.