Forum > General

Get a error when I try to create a new package..

(1/2) > >>

lijinjie:
I wanted to move my old package from Delphi to Lazarus.

when I click the opinion 【create new package】,then a  error window came out! check the attachment.

Anybody met this problem and how did you solve it?

GetMem:
Hi lijinjie,

This is a bug in packagemanager.pas:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function TPkgManager.DoNewPackage: TModalResult;var  NewPackage: TLazPackage;begin  Result:=mrCancel;  // create a new package with standard dependencies  ShowMessage(lisPkgMangNewPackage);  NewPackage:=PackageGraph.CreateNewPackage(ExtractPasIdentifier(lisPkgMangNewPackage,true));    //...end
ExtractPasIdentifier not working for some languages(lisPkgMangNewPackage = 'NewPackage' in English). As a quick fix just switch back to English in Lazarus Menu->Tools->Options->General->Language. Create the new package, save it, then you can return to your preferred language.

lijinjie:

--- Quote from: GetMem on April 20, 2021, 10:43:26 am ---Hi lijinjie,

This is a bug in packagemanager.pas:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function TPkgManager.DoNewPackage: TModalResult;var  NewPackage: TLazPackage;begin  Result:=mrCancel;  // create a new package with standard dependencies  ShowMessage(lisPkgMangNewPackage);  NewPackage:=PackageGraph.CreateNewPackage(ExtractPasIdentifier(lisPkgMangNewPackage,true));    //...end
ExtractPasIdentifier not working for some languages(lisPkgMangNewPackage = 'NewPackage' in English). As a quick fix just switch back to English in Lazarus Menu->Tools->Options->General->Language. Create the new package, save it, then you can return to your preferred language.

--- End quote ---


 Thanks so much! I'll put what you replied to me into my bookmarks.  Before I saw your reply ,I reinstalled Lazarus to english version ,Got succeeded converting my first old wiget from delphi to Lazarus. 

PascalDragon:

--- Quote from: GetMem on April 20, 2021, 10:43:26 am ---This is a bug in packagemanager.pas:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function TPkgManager.DoNewPackage: TModalResult;var  NewPackage: TLazPackage;begin  Result:=mrCancel;  // create a new package with standard dependencies  ShowMessage(lisPkgMangNewPackage);  NewPackage:=PackageGraph.CreateNewPackage(ExtractPasIdentifier(lisPkgMangNewPackage,true));    //...end
ExtractPasIdentifier not working for some languages(lisPkgMangNewPackage = 'NewPackage' in English). As a quick fix just switch back to English in Lazarus Menu->Tools->Options->General->Language. Create the new package, save it, then you can return to your preferred language.

--- End quote ---

Is this already reported as a bug?

GetMem:
@PascalDragon

--- Quote ---Is this already reported as a bug?
--- End quote ---
It's already fixed in r65049.

@lijinjie
Can you please test it with Lazarus trunk?

Navigation

[0] Message Index

[#] Next page

Go to full version