Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [BUG REPORT] Renaming package has bugs. Introduce $PACKDIR as STD relative path (Buggy code creates an iml file with old dir | Auto recognition of path)
[BUG REPORT] Renaming package has bugs. Introduce $PACKDIR as STD relative path [message #47146] |
Wed, 21 December 2016 11:40 |
MrSarup
Messages: 30 Registered: December 2016
|
Member |
|
|
Hello!
In the recent nightly build, renaming the package does the following:
1) It changes the old directory name to the new directory name based on the package name given. Thats fine.
This is a BUG:
a. Thereafter, it creates a new directory based on the old directory name.
b. After doing that, it creates an empty iml file in the (newly created) old directory name.
2) The change of package name causes a change directory name. As a result, one has to manually change the new directory name in files because of the following:
#define LAYOUTFILE <MyPackageDirName/Layout.lay>
or
#define IMAGEFILE <MyPackageDirName/images.iml>
As the MyPackageDirName will change here, one needs to do this manually.
This is not a bug. But a change is proposed as follows:
Create a standard variable $PACKDIR.
#define LAYOUTFILE <$PACKDIR/Layout.lay>
or
#define IMAGEFILE <$PACKDIR/images.iml>
Thereafter, the TheIDE will automatically recognize it and one does not need to worry about compilation errors.
[Updated on: Wed, 21 December 2016 11:50] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 13:26:23 CEST 2025
Total time taken to generate the page: 0.01314 seconds
|