Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED] unable to rename variable in source: TObject not found
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Access violation when ope...
by
Чебурашка
[
Today
at 12:14:30 pm]
Parameter passing odditie...
by
Thaddy
[
Today
at 12:11:18 pm]
Lazarus features in a non...
by
jollytall
[
Today
at 11:53:17 am]
Access violation when re-...
by
Chris Osborne
[
Today
at 11:43:49 am]
Ho Ho Ho IntraWeb in Laza...
by
irawan
[
Today
at 11:39:39 am]
FpDebug questions
by
Martin_fr
[
Today
at 11:25:02 am]
splitting an image
by
Dzandaa
[
Today
at 11:15:40 am]
how to tweek fpmake to co...
by
marcov
[
Today
at 10:35:11 am]
Can function be used for ...
by
Thaddy
[
Today
at 10:24:31 am]
Why isn't TTIRadioGroup's...
by
egsuh
[
Today
at 08:09:35 am]
Lazarus for Windows on aa...
by
Wallaby
[April 23, 2024, 11:46:56 pm]
(Solved) TIndexedAVLTree ...
by
lainz
[April 23, 2024, 10:49:03 pm]
Demo Scene Picture sinwav...
by
KodeZwerg
[April 23, 2024, 10:26:21 pm]
fkInternalCalc
by
zraja
[April 23, 2024, 09:31:07 pm]
A fairly simple sound sol...
by
KodeZwerg
[April 23, 2024, 09:23:37 pm]
add new targets to make
by
marcov
[April 23, 2024, 08:38:42 pm]
Quirky windows
by
ASerge
[April 23, 2024, 07:07:16 pm]
[Request] Demo Scene Sub ...
by
Gigatron
[April 23, 2024, 06:29:39 pm]
Unlocking Files
by
KodeZwerg
[April 23, 2024, 06:03:08 pm]
[SOLVED] trunk bug for mi...
by
Key-Real
[April 23, 2024, 05:56:32 pm]
Demo Scene Bitmap Font Sc...
by
Gigatron
[April 23, 2024, 05:56:27 pm]
Compile/Convert Delphi pr...
by
Martin_fr
[April 23, 2024, 05:43:11 pm]
Generics - correct syntax
by
Thaddy
[April 23, 2024, 05:40:59 pm]
InstallAware Using Lazaru...
by
msintle
[April 23, 2024, 05:26:36 pm]
Xcode Command Line Tools ...
by
Joseph
[April 23, 2024, 05:16:39 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] unable to rename variable in source: TObject not found (Read 4580 times)
Eugene Loza
Hero Member
Posts: 678
[SOLVED] unable to rename variable in source: TObject not found
«
on:
December 13, 2017, 05:59:39 am »
Something weird is happening
I've tried to work with Generics.Collections, but it is very buggy with CodeTools. Eventually I've stuck with
classesh.inc(427,23) Error: identifier not found: TObject
when trying to rename a button on the form (it worked earlier with almost the same code!) - and even reinstalling+purging Lazarus+FPC (1.9+3.1.1 or trunk by FPCUpDeluxe) doesn't help. The project itself compiles and works flawlessly. Where could the problem be? Can it be related to Generics.Collections?
«
Last Edit: December 13, 2017, 10:31:00 am by Eugene Loza
»
Logged
My FOSS games in FreePascal&CastleGameEngine:
https://decoherence.itch.io/
(Sources:
https://gitlab.com/EugeneLoza
)
taazz
Hero Member
Posts: 5368
Re: unable to rename variable in source: TObject not found
«
Reply #1 on:
December 13, 2017, 06:07:28 am »
what is the defined mode of the mainunit?
Logged
Good judgement is the result of experience … Experience is the result of bad judgement.
OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64
Eugene Loza
Hero Member
Posts: 678
Re: unable to rename variable in source: TObject not found
«
Reply #2 on:
December 13, 2017, 06:09:12 am »
it's
{$mode objfpc}
Logged
My FOSS games in FreePascal&CastleGameEngine:
https://decoherence.itch.io/
(Sources:
https://gitlab.com/EugeneLoza
)
taazz
Hero Member
Posts: 5368
Re: unable to rename variable in source: TObject not found
«
Reply #3 on:
December 13, 2017, 07:30:45 am »
I would try the following.
1) Tools\Rescan fpc source directory.
This should reset the code tools internal lists.
2) cleanup and build.
Make sure that you include everything especially the packages. Less likely to work this has nothing to do with code tools and their parser but it might reset some internal list as well.
3) comment out any generics use/declaration.
Other than that I have no idea at the moment not with out seeing the code that is.
«
Last Edit: December 13, 2017, 07:33:00 am by taazz
»
Logged
Good judgement is the result of experience … Experience is the result of bad judgement.
OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64
Eugene Loza
Hero Member
Posts: 678
Re: unable to rename variable in source: TObject not found
«
Reply #4 on:
December 13, 2017, 08:54:48 am »
At my work computer everything works fine with the same project. Means something left behind my experiments with trunk codetools
I wonder, what could it be? I'll try clean reinstall again this evening.
Seems that it's related to
http://forum.lazarus.freepascal.org/index.php?topic=39272
Marked the topic as "solved" as the problem is somewhere in my installation (I didn't delete some configuration? Or some compiled units left over somewhere?).
«
Last Edit: December 13, 2017, 10:31:51 am by Eugene Loza
»
Logged
My FOSS games in FreePascal&CastleGameEngine:
https://decoherence.itch.io/
(Sources:
https://gitlab.com/EugeneLoza
)
Eugene Loza
Hero Member
Posts: 678
Re: [SOLVED] unable to rename variable in source: TObject not found
«
Reply #5 on:
December 14, 2017, 06:06:04 am »
(sigh) I've tried everything. Deleted every file that had "lazarus" or "fpc" in its name. Reinstalled Lazarus+FPC (different versions by FPCUpDeluxe) several times.
Not working even on clean project - trying to rename a
TButton
on
TForm
results in "TObject not found".
I guess/hope, reinstalling the OS will work?
Logged
My FOSS games in FreePascal&CastleGameEngine:
https://decoherence.itch.io/
(Sources:
https://gitlab.com/EugeneLoza
)
SymbolicFrank
Hero Member
Posts: 1313
Re: [SOLVED] unable to rename variable in source: TObject not found
«
Reply #6 on:
December 14, 2017, 09:52:56 am »
I have the same problem, and no, reinstalling the OS won't work. Recompiling fpc with the patch will, but it is not very obvious how to do that.
Logged
SymbolicFrank
Hero Member
Posts: 1313
Re: [SOLVED] unable to rename variable in source: TObject not found
«
Reply #7 on:
December 14, 2017, 12:17:19 pm »
Look
here
.
Logged
Eugene Loza
Hero Member
Posts: 678
Re: [SOLVED] unable to rename variable in source: TObject not found
«
Reply #8 on:
December 14, 2017, 12:21:02 pm »
SymbolicFrank, thanks! I'll check it up in the evening.
Logged
My FOSS games in FreePascal&CastleGameEngine:
https://decoherence.itch.io/
(Sources:
https://gitlab.com/EugeneLoza
)
hnb
Sr. Member
Posts: 270
Re: [SOLVED] unable to rename variable in source: TObject not found
«
Reply #9 on:
December 14, 2017, 12:30:37 pm »
Lazarus has many problems with Generics.Collections (for now). One of critical issue was fixed in r56571 and code editor is more usable with Generics.Collections.
Logged
Checkout
NewPascal
initiative and
donate beer
- ready to use
tuned FPC
compiler + Lazarus for
mORMot
project
best regards,
Maciej Izak
Eugene Loza
Hero Member
Posts: 678
Re: [SOLVED] unable to rename variable in source: TObject not found
«
Reply #10 on:
December 14, 2017, 07:31:53 pm »
SymbolicFrank
, thanks a lot, it's working!
Logged
My FOSS games in FreePascal&CastleGameEngine:
https://decoherence.itch.io/
(Sources:
https://gitlab.com/EugeneLoza
)
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED] unable to rename variable in source: TObject not found
TinyPortal
© 2005-2018