Projectgroups lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- Groffy · 2015-11-18 05:55 I would like to test the package, but can't compile (Linux & Win7) because of a missing file(?) ---------------------------------------------------------------------- JanRoza · 2015-11-18 06:20 And now you want us to guess which file you're missing?  A bit more info might help people to take a look at your problem. ---------------------------------------------------------------------- zamtmn · 2015-11-18 06:44 ProjectGroupStrConst file missing in trunk ---------------------------------------------------------------------- Groffy · 2015-11-18 06:47 Well, at least it would be interesting to know whether there is anybody who can compile the package from repository I guess its the file projectgroupstrconst.pas ---------------------------------------------------------------------- balazsszekely · 2015-11-18 06:59 @Groffy Take a look at this: https://github.com/alrieckert/lazarus/tree/master /components/projectgroups Latest commit 6 h ago. Mattias is working on it so please be patient. ---------------------------------------------------------------------- frakno · 2015-11-18 08:41 Quote from: GetMem on November 18, 2015, 07:59:02 am@Groffy Take a look at this: https://github.com/alrieckert/lazarus/tree/master /components/projectgroups Latest commit 6 h ago. Mattias is working on it so please be patient. I took more then one look, but Sorry there is no projectgroupstrconst.pas ---------------------------------------------------------------------- balazsszekely · 2015-11-18 09:24 Quote@frakno I took more then one look, but Sorry there is no projectgroupstrconst.pasWho said anything about "projectgroupstrconst.pas"?   The project is under construction. When will be ready? I don't know, you have to ask Mattias. If you still want to compile it: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit projectgroupstrconst; {$mode objfpc}{$H+} interface uses  Classes, SysUtils; const  lisProjectGroupModified = '';  lisProjectGroupModifiedConfirm = '';  lisSavePG = '';  lisDiscard = '';  lisAbort = '';  lisLazarusProjectGroup = '';  lisAllFiles = '';  lisErronlyProjectGroupAllowed = '';  lisErrTargetDoesNotExist = '';  lisErrNoSuchFile = '';  lisRemoveTarget = '';  lisAbortLoadingProjectGroup = '';  lisSkipAllTargets = '';  lisProjectGroupSaveCaption = '';  lisProjectGroupSaveHint = '';  lisProjectGroupAddExistingCaption = '';  lisProjectGroupAddExistingHint = '';  lisProjectGroupDeleteCaption = '';  lisProjectGroupDeleteHint = '';  lisProjectGroupSaveAsCaption = '';  lisProjectGroupSaveAsHint = '';  lisProjectGroupAddNewCaption = '';  lisProjectGroupAddNewHint = '';  lisTargetEarlierCaption = '';  lisTargetEarlierHint = '';  lisTargetLaterCaption = '';  lisTargetLaterHint = '';  lisTargetCompileCaption = '';  lisTargetCompileHint = '';  lisTargetCompileCleanCaption = '';  lisTargetCompileCleanHint = '';  lisTargetPropertiesCaption = '';  lisTargetPropertiesHint = '';  lisTargetRunCaption = '';  lisTargetRunHint = '';  lisTargetInstallCaption = '';  lisTargetInstallHint = '';  lisTargetUninstallCaption = '';  lisTargetUninstallHint = '';  lisTargetActivateCaption = '';  lisTargetActivateHint = '';  lisTargetOpenCaption = '';  lisTargetOpenHint = '';  lisTargetCount = '';  lisActiveTarget = '';  lisNewProjectGroup = '';  lisProjectGroup = '';  lisNodeTargets = '';  lisNodeRemovedTargets = '';  lisNodeDependencies = '';  lisNodeRemovedDependencies = '';  lisNodeFiles = '';  lisNodeRemovedFiles = '';  lisTargetCompile = '';  lisTargetCompileClean = '';  lisTargetAdd = '';  lisTargetRemove = '';  lisTargetInstall = '';  lisTargetUninstall = '';  lisTargetEarlier = '';  lisTargetLater = '';  lisTargetActivate = '';  lisTargetOpen = '';  lisTargetRun = '';  lisTargetProperties = '';  lisOpenProjectGroup = '';  lisSaveProjectGroup = '';  lisSaveProjectGroupAs = '';  lisOpenRecentProjectGroup = ''; implementation end. 1. You have to define each constant like :       lisProjectGroupModified  = 'The Project group has modified! Save changes?'; 2. Remove from RegProjectGroup.pas Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$IFNDEF IwrotethiscodePG}  {$ERROR This package is under construction}{$ENDIF}  Now you can compile it. I doubt it will correctly though, since is under construction. ---------------------------------------------------------------------- frakno · 2015-11-18 19:48 Thank you. Yeah, it does not compile because: PkgName:=ExtractFileUnitname(Filename,true);  (Error: Bezeichner nicht gefunden: ExtractFileUnitname) We have to wait for a more advanced status ---------------------------------------------------------------------- Groffy · 2015-11-19 06:02 With todays trunk version its compiling fine, looks already promising - good work!! ---------------------------------------------------------------------- Groffy · 2015-11-22 17:04 When tryining to compile a project group, or a single package out of the projectgroup manager, I get an error message : Error: (lazarus) invalid Lazarus directory "": directory lcl not found Had anybody the same problem? Best regards ---------------------------------------------------------------------- JuhaManninen · 2015-11-22 19:05 Quote from: Groffy on November 22, 2015, 06:04:15 pmWhen tryining to compile a project group, or a single package out of the projectgroup manager, It does not have packages, it has projects. QuoteI get an error message : Error: (lazarus) invalid Lazarus directory "": directory lcl not found Had anybody the same problem? No, it works here. Can you build the projects without using projectgroup manager? ---------------------------------------------------------------------- Groffy · 2015-11-22 19:20 Quote from: JuhaManninen on November 22, 2015, 08:05:49 pmIt does not have packages, it has projects. So, its not intended to combine packages to a project group? I tried to build a project group out of several component packages. Best regards ---------------------------------------------------------------------- tk · 2015-11-22 19:26 It is perfect to see progress with project groups, we are missing this feature very much in Lazarus! EDIT: I vote for it to be one of the default packages when it is complete. ---------------------------------------------------------------------- JuhaManninen · 2015-11-22 20:15 Quote from: Groffy on November 22, 2015, 08:20:18 pmSo, its not intended to combine packages to a project group? I tried to build a project group out of several component packages. Oops right, now I see you can add packages and even other project groups to a project group. I don't know exactly what is the idea. The name "project group" is misleading then. I tested it and compilation works well here. Please test your compilation of individual projects and packages first without the projectgroup manager. Quote from: tk on November 22, 2015, 08:26:29 pmIt is perfect to see progress with project groups, we are missing this feature very much in Lazarus! EDIT: I vote for it to be one of the default packages when it is complete. Yes, it will be a default package for sure once it is ready. It may even be integrated to IDE's codebase, depending on how invasive the changes are. ---------------------------------------------------------------------- Groffy · 2015-11-22 20:53 Quote from: JuhaManninen on November 22, 2015, 09:15:22 pmPlease test your compilation of individual projects and packages first without the projectgroup manager. I have a not default Lazarus installation on my Linux Mint system. I installed FPC3.0RC2 separately in /usr/bin/fpc and Lazarus IDE in /home/ug/Lazarus/  and fpc source and packages in    /home/ug/Lazarus/fpc/source . So far everything is working, I can compile my projekts and my packages without any problems. ---------------------------------------------------------------------- Zoran · 2015-11-23 07:34 Quote from: Groffy on November 22, 2015, 08:20:18 pmQuote from: JuhaManninen on November 22, 2015, 08:05:49 pmIt does not have packages, it has projects. So, its not intended to combine packages to a project group? I tried to build a project group out of several component packages. Best regards Just an idea - you don't need projectgroup for that. You can create a new package - call it packagegroup1 - and inside it, add dependencies to several packages. Then installing this package will install all packages it depends on. Also, opening this "packagegroup1" package will list all these packages under "required packages" and you can open any of these just by double clicking on it. Does it give you the functionality you need? ---------------------------------------------------------------------- Groffy · 2015-11-24 06:01 Quote from: Zoran on November 23, 2015, 08:34:37 amJust an idea - you don't need projectgroup for that. You can create a new package - call it packagegroup1 - and inside it, add dependencies to several packages. Then installing this package will install all packages it depends on. You are right, nice suggestion. Thank you ---------------------------------------------------------------------- JuhaManninen · 2015-11-24 10:57 Quote from: Zoran on November 23, 2015, 08:34:37 amJust an idea - you don't need projectgroup for that. You can create a new package - call it packagegroup1 - and inside it, add dependencies to several packages. Then installing this package will install all packages it depends on. Yes, that's why I was surprised that ProjectGroups support also packages. I have since learned that the feature is important for many people and Delphi supports it, too. ProjectGroup in Lazarus also support other nested ProjectGroups. Delphi does not support that IIRC. @Groffy You still have not told if you can compile your projects and packages separately. In other words, was the problem in the new ProjectGroup feature or not? ---------------------------------------------------------------------- Groffy · 2015-11-24 13:47 Quote from: JuhaManninen on November 24, 2015, 11:57:19 am@Groffy You still have not told if you can compile your projects and packages separately. In other words, was the problem in the new ProjectGroup feature or not? Nothing changed so far. Its not working with packages, and only sometimes working with projects. So far, I couldn't figure out any systematic or reproducable test case... ---------------------------------------------------------------------- JuhaManninen · 2015-11-26 11:49 Quote from: Groffy on November 24, 2015, 02:47:22 pmNothing changed so far. Its not working with packages, and only sometimes working with projects. So far, I couldn't figure out any systematic or reproducable test case... You still did not get my question. You have certain projects and packages in a ProjectGroup. Their compilation fails when you do it through the ProjectGroup. OK. Now if you uninstall the ProjectGroup support completely from Lazarus and then try to compile the same projects and packages that used to be part of the ProjectGroup, what happens? Can you compile them individually or not?