Recent

Author Topic: [SOLVED] Curios error "unit not found: Classes" when renaming a button  (Read 4126 times)

Joe

  • New Member
  • *
  • Posts: 24
I'd just installed Lazarus 1.6 with Fpc 3.0.0 (including source) to my 32 bit kubuntu 14.04 from the provided debian packets:
  • lazarus_1.6-0_i386.deb
  • fpc-src_3.0.0-151205_i386.deb
  • fpc_3.0.0-151205_i386.deb

Creating a new application project with an empty form, build & start works.
Now I'd added a button to my form, which will be named to "Button1" by default. Navigating to the Objectinspector and changing the button's name to e.g. "Hello" will result in an error message:
Quote
    Die Variable im Quelltext kann nicht umbenannt werden.
    Fehler: Unit nicht gefunden: Classes
    Siehe Meldungen

What could be the reason for this misbehaviour?

I'd took a look into LCLClasses.pp were I find:
Code: Pascal  [Select][+][-]
  1. uses Classes, WSLCLClasses, WSReferences, LCLType, LCLProc;
But in my file system, the `classes.ppu` is written completely lower case.
A dumb tryout by creating a symlink for a `Classes.ppu` won't help.

Any suggestions?
« Last Edit: February 23, 2016, 09:37:31 pm by Joe »

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Curios error "unit not found: Classes" when renaming a button
« Reply #1 on: February 23, 2016, 08:23:54 pm »
...
What could be the reason for this misbehaviour?
...
Any suggestions?
If not mistaken then that means lazarus is unable to locate your fpc sources directory.

There is a menu option, under tools named "rescan fpc source directory" that allows you to rescan for fpc directory. Please give that a try.

edit: inserted correct menu-item location.
« Last Edit: February 23, 2016, 08:28:55 pm by molly »

balazsszekely

  • Guest
Re: Curios error "unit not found: Classes" when renaming a button
« Reply #2 on: February 23, 2016, 08:29:22 pm »
Tools-->Rescan FPC Source Directory

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Curios error "unit not found: Classes" when renaming a button
« Reply #3 on: February 23, 2016, 08:32:53 pm »
Thanks GetMem.

I forgot i can look it up in online wiki as well (on location, so no access to lazarus).

Joe

  • New Member
  • *
  • Posts: 24
Re: Curios error "unit not found: Classes" when renaming a button
« Reply #4 on: February 23, 2016, 09:37:14 pm »
Great, this helped!

 

TinyPortal © 2005-2018