View Issue Details

IDProjectCategoryView StatusLast Update
0028439LazarusIDEpublic2015-12-25 14:10
ReporterInfoMusicMan Assigned ToJuha Manninen  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
OSWindows 7 
Product Version1.4.2 
Summary0028439: Resource include directive is not updated when unit file is renamed
DescriptionI get "FormUnit.pas(29,18) Error: End of source not found." when I try to change any component property.
Steps To Reproduce1. Menu project -> Project options (CTRL + SHIFT + F11) -> Project>Other -> Resource type of project: lazarus resources include files (.lrs).
2. Save unit that contains a form (must name other for example not "Unit1.pas" as default but maybe "testformunit.pas" will be OK).
3. Try to change any of properties of the form (maybe rename?).
4. "testformunit.pas(29,18) Error: End of source not found." Why? When reanames unit the initialization -> {$I Unit1.lrs} don't renames :/
Additional InformationDon't work on FPC resource types.
Tagscode refactoring, designer, refactoring, rename
Fixed in Revision
LazTarget-
WidgetsetWin32/Win64
Attached Files

Activities

InfoMusicMan

2015-07-26 19:28

reporter   ~0085061

But resource filename renames but reference not. :/

Juha Manninen

2015-08-01 00:10

developer   ~0085126

Last edited: 2015-08-01 00:13

View 2 revisions

The .lrs resource name is not renamed indeed but I still don't get any "End of source not found." errors.
Can you please attach an example project to reproduce it.
Could you test with trunk, too.

P.S.
Updated the Summary.

InfoMusicMan

2015-08-03 21:15

reporter   ~0085172

When you save project with changed resource type create new form, save the unit and rename the form. If you don't have got errors, try to compile the project.
PS Sorry for my English.

Issue History

Date Modified Username Field Change
2015-07-26 19:14 InfoMusicMan New Issue
2015-07-26 19:16 InfoMusicMan Tag Attached: designer
2015-07-26 19:16 InfoMusicMan Tag Attached: code refactoring
2015-07-26 19:16 InfoMusicMan Tag Attached: refactoring
2015-07-26 19:16 InfoMusicMan Tag Attached: rename
2015-07-26 19:28 InfoMusicMan Note Added: 0085061
2015-08-01 00:10 Juha Manninen Note Added: 0085126
2015-08-01 00:13 Juha Manninen LazTarget => -
2015-08-01 00:13 Juha Manninen Summary Object Inspector => Resource include directive is not updated when unit file is renamed
2015-08-01 00:13 Juha Manninen Note Edited: 0085126 View Revisions
2015-08-03 21:15 InfoMusicMan Note Added: 0085172
2015-12-25 14:10 Juha Manninen Assigned To => Juha Manninen
2015-12-25 14:10 Juha Manninen Status new => assigned