Редактор компонента для класса tdefaultcomponenteditor вызвал ошибку

Сергей Смирнов писал(а):За лирическое вступление спасибо :)

Обращаться сюда, в список рассылки лазаря и в форум лазаря, хотя там отвечают довольно туго. Лучше всего в список рассылки лазаря, если с английским нет проблем.

От изучения программирования я врядли откажусь, кроме Делфи ничего в руках держать не умею, а только freepascal/lazarus позволяет мне без опаски продавать полученный код, поэтому придеться мне тут (на этом форуме, и на подобных) пожить.

Но с английским туговато. Решение конкретной проблемы, я думаю, найду (даже опыт поиска на англоязычных форумах есть (гордый смайлик)), а вот чтение рассылки с целью повышения знаний врядли приемлимо, все-таки намного приятнее и удобнее быть на ресурсах с родным языком.

выдает ошибку — «ошибка в TDefaultComponentEditor» — «Редактор компонента для класса «TDefaultComponentEditor» вызвал ошибку. «Не могу найти метод.

Исходники FPC установил? В настройках лазаря на них указал?

так, дело в том, что в начале все было нормально — код сам генерировался, как надо. А в какой-то момент — бац! — и перестало. Причем, если заново создать application все какое-то время хорошо (по мере добавления кода) — а потом снова перестает…

исходники FPC не устанавливал, в настройках ничего не прописывал. Запустил файлик Lazarus-0.9.8-20050719-win32.exe — установил, и все.

Если вручную прописать код обработки кнопки — то она не работает, т.е. при нажатии ничего не происходит

Плохо значит прописал :)

а разве не обязательна прописка процедуры в событиях элемента (кнопки в данном случае)? (вот каких программистов порождает интернет + визуальные среды. Элементарных вещей не знаю :)) Неудобно, конечно, вручную прописывать, но может писал бы пока так, а вдальнейшем переписал.

указываю пиктограмму для главной формы — а ей хоть бы хны — не показывается она

Есть такая проблема… каким-то довольно хитрым финтом решается — это надо в конфе разработчиков порыться.

мне почему-то очень убедительно кажется, что в борбе с глюками lazarus’a, в купе с обычными ошибками своего собственного кривого кода у меня повыситься уровень этого самого программирования :)

к тому же, уже не достаточно найти в инете подходящий компонент и веселое его впихнуть в свой проект, теперь нужно изучать лицензии и выбирать подходящии компоненты.

Сергей Смирнов писал(а):За лирическое вступление спасибо :)

Обращаться сюда, в список рассылки лазаря и в форум лазаря, хотя там отвечают довольно туго. Лучше всего в список рассылки лазаря, если с английским нет проблем.

От изучения программирования я врядли откажусь, кроме Делфи ничего в руках держать не умею, а только freepascal/lazarus позволяет мне без опаски продавать полученный код, поэтому придеться мне тут (на этом форуме, и на подобных) пожить.

Но с английским туговато. Решение конкретной проблемы, я думаю, найду (даже опыт поиска на англоязычных форумах есть (гордый смайлик)), а вот чтение рассылки с целью повышения знаний врядли приемлимо, все-таки намного приятнее и удобнее быть на ресурсах с родным языком.

выдает ошибку — «ошибка в TDefaultComponentEditor» — «Редактор компонента для класса «TDefaultComponentEditor» вызвал ошибку. «Не могу найти метод.

Исходники FPC установил? В настройках лазаря на них указал?

так, дело в том, что в начале все было нормально — код сам генерировался, как надо. А в какой-то момент — бац! — и перестало. Причем, если заново создать application все какое-то время хорошо (по мере добавления кода) — а потом снова перестает…

исходники FPC не устанавливал, в настройках ничего не прописывал. Запустил файлик Lazarus-0.9.8-20050719-win32.exe — установил, и все.

Если вручную прописать код обработки кнопки — то она не работает, т.е. при нажатии ничего не происходит

Плохо значит прописал :)

а разве не обязательна прописка процедуры в событиях элемента (кнопки в данном случае)? (вот каких программистов порождает интернет + визуальные среды. Элементарных вещей не знаю :)) Неудобно, конечно, вручную прописывать, но может писал бы пока так, а вдальнейшем переписал.

указываю пиктограмму для главной формы — а ей хоть бы хны — не показывается она

Есть такая проблема… каким-то довольно хитрым финтом решается — это надо в конфе разработчиков порыться.

мне почему-то очень убедительно кажется, что в борбе с глюками lazarus’a, в купе с обычными ошибками своего собственного кривого кода у меня повыситься уровень этого самого программирования :)

к тому же, уже не достаточно найти в инете подходящий компонент и веселое его впихнуть в свой проект, теперь нужно изучать лицензии и выбирать подходящии компоненты.

Topic: [solved?] «Error in TdefaultComponentEditor»  (Read 10488 times)

When I try to create an event handler (e.g. OnClick procedure for TButton) I get an error, the full text in the dialog is:

The component editor of class «TDefaultComponentEditor» has created the error:
«Unable to find method. Please fix the error shown in the message window, which is normally below the source editor.»

The Message Window says:

/development/lazarus/lcl/lclclasses.pp(32,10) Error: unit not found: Classes

Version information: Lazarus 1.1 r38913M FPC 2.6.1 i386-linux-gtk 2

What gives?

« Last Edit: November 21, 2013, 11:16:37 pm by TurboRascal »


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


Had those my self a couple of times usually it was something I did on the source code forgot a»;» char somewhere or something along those recently though it surfaced after I had use the «Add unit to uses clause» something wend wrong with that I had to remove the unit names delete the extra control from the form and put back up again.I didn’t find out what exactly wend wrong the unit I added had nothing to do with the control that raised the problem.


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


This error happens all the time, and in fact before I write even one line of code (just dropped a component and double-clicked on the event). In 1.0 it does not happen, neither it did in previous trunk builds.

However similar errors do happen sometimes and the error messages can be misleading because they often point to a different part of code like you said. Unfortunately not the case here… In fact, and I forgot to mention this before, the code compiles fine, so definitely the problem is in the IDE only.


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


Have you considered reinstalling lazarus ?


Logged

I’m using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint


Have you considered reinstalling lazarus ?

Yes, I did it already… the first time this occured with an earlier SVN revision, a day or two ago. Then I got and compiled another revision and the same happens…


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


Got it. I needed to rescan FPC source. I guess something changed between revisions which required this.


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


This is NOT solved. I just downloaded latest Lazarus and fpc to a brand new iMac.

If I place a button on a form and double-click, I immediately get the error and Lazarus opens a window called Classes.

I tried the rescan FPC but that didn’t help.


Logged


I did however just upgrade to Mavericks over the weekend — could that have screwed things up? That’s the only change to my system.


Logged



Logged


DHJiMac:~ $ fpc
Free Pascal Compiler version 2.6.2 [2013/02/03] for i386

Lazarus is 1.0.12

I did reinstall the development tools (i had already found that xcode 5 link, needed to do that to get a command line program to link)

(FYI — I just resinstalled FCP and Lazarus and it makes no difference — double-clicking on a button (say) produces the same error message)

« Last Edit: October 22, 2013, 05:50:57 pm by DavidJameson »


Logged


  • Форум русскоязычного сообщества Ubuntu »
  • Ubuntu Russian LoCo »
  • Разработка (Модератор: Azure) »
  • Проблемы с Lazarus
  • Печать

Страницы: [1]   Вниз

Тема: Проблемы с Lazarus  (Прочитано 2172 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Baron Rojo

Доброго времени суток, уважаемые форумчане! У меня следующая проблема: Установил Лазарус из центра приложений. Сначала при каждом запуске мне выпадало сообщение о каталоге каком-то, который «Не выглядит корректно»(Это вообще как понимать?) Потом я через Синаптик подтянул все пакеты(АБСОЛЮТНО ВСЕ), которые были связаны с Лазарусом и эта проблема пропала, но вот когда я пытаюсь вызвать обработчик какого-либо события(ОнКлик на пример) мне выпадает следующее сообщение:Редактор компонента для класса «TDefaultComponentEditor» вызвал ошибку:
«Невозможно найти метод. Исправьте ошибки в окне сообщений.Редактор компонента для класса «TDefaultComponentEditor» вызвал ошибку:
«Невозможно найти метод. Исправьте ошибки в окне сообщений.»  Что это значит? Как это исправить?


Sviatik

« Последнее редактирование: 01 Января 2013, 19:14:47 от Sviatik »


Оффлайн
Baron Rojo


  • Печать

Страницы: [1]   Вверх

  • Форум русскоязычного сообщества Ubuntu »
  • Ubuntu Russian LoCo »
  • Разработка (Модератор: Azure) »
  • Проблемы с Lazarus

SMF 2.0.19 |
SMF © 2011, Simple Machines | Карта форума

Страница сгенерирована за 0.032 секунд. Запросов: 25.

  1. 16-Jun-13, 23:04

    #1

    Wok is nu online


    Senior Member

    Wok's Avatar


    Hallo,

    Ik heb gisteren mijn Lazarus 1.0.8 geupdate naar 1.0.10
    En sinds dien krijg ik een foutmelding als ik dmv een dubbleclick, een event wil koppelen aan een Tbutton.
    Suggestie’s over rescan, herinstalleren, clean herinstal hebben geen resultaat gegeven. (Ook de eerdere meldingen op het lazarus forum bieden geen oplossing)
    Dus ik dacht dus duidelijk aan een bug,…gemeld en
    deze is vandaag op slot gegaan, als zijn de een user probleem/instelling
    Maar ja waar moet ik zoeken ? Ik heb werkelijk geen idee.
    Ik ben nu terug naar versie 1.0.8 en deze werkt naar behoren, dat maakt het zoeken nog moeilijker.

    Tips en Suggestie’s zijn welkom
    Peter

    10.4.2, Delphi2010, of Lazarus 2.2.0


  2. 17-Jun-13, 00:09

    #2

    Bart B is offline


    Senior Member


    Ook de config dir van Lazarus verwijderd en evt. overblijfselen van fpc.cfg voordat je ging herinstalleren?

    Bart


  3. 17-Jun-13, 00:40

    #3

    Bart B is offline


    Senior Member


    Ik heb net 1.0.10 schoon ge�nstalleerd en kan het probleem niet reproduceren.

    Verwijder de Lazarus config dir (normaal geproken c:usersjouw naamappdatalocallazarus), verwijder alle Lazarus versies, verwijder fpc (ook evt. oude versies) en fpc.cfg.

    Herinstalleer Lazarus.
    Herbouw lazarus met debuginfo (Menu -> Tools -> Configure Build Lazarus: onder options invullen: -gl ).
    Start Lazarus met —debug-log=padnaardebug.txt
    Reproduceer de fout.
    Sluit Lazarus

    Heropen het issue in de bugtracker.
    Attach het logbestand en editoroptions.xml en environmentoptions.xml (beiden in de confir directory van lazarus)

    Bart


  4. 17-Jun-13, 01:26

    #4

    Wok is nu online


    Senior Member

    Wok's Avatar


    Mmmmm…
    Ik heb net Lazarus herbouwd met Debugoption -gl
    Ik kwam niet verder dan een leeg form, lazarus hing
    PC opnieuw opgestart
    Lazarus opnieuw gebouwd zonder debugoptions
    En blijkbaar is er ergens toch een setting veranderd/aangepast.
    De fout is verdwenen…
    Strange…
    Waar het fout ging laat ik in het midden, ik weet ook niet hoe de fout opgelost is.
    Het werkt nu. dus er kan een slotje op :-)

    10.4.2, Delphi2010, of Lazarus 2.2.0


Topic: [solved?] «Error in TdefaultComponentEditor»  (Read 10542 times)

When I try to create an event handler (e.g. OnClick procedure for TButton) I get an error, the full text in the dialog is:

The component editor of class «TDefaultComponentEditor» has created the error:
«Unable to find method. Please fix the error shown in the message window, which is normally below the source editor.»

The Message Window says:

/development/lazarus/lcl/lclclasses.pp(32,10) Error: unit not found: Classes

Version information: Lazarus 1.1 r38913M FPC 2.6.1 i386-linux-gtk 2

What gives?

« Last Edit: November 21, 2013, 11:16:37 pm by TurboRascal »


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


Had those my self a couple of times usually it was something I did on the source code forgot a»;» char somewhere or something along those recently though it surfaced after I had use the «Add unit to uses clause» something wend wrong with that I had to remove the unit names delete the extra control from the form and put back up again.I didn’t find out what exactly wend wrong the unit I added had nothing to do with the control that raised the problem.


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


This error happens all the time, and in fact before I write even one line of code (just dropped a component and double-clicked on the event). In 1.0 it does not happen, neither it did in previous trunk builds.

However similar errors do happen sometimes and the error messages can be misleading because they often point to a different part of code like you said. Unfortunately not the case here… In fact, and I forgot to mention this before, the code compiles fine, so definitely the problem is in the IDE only.


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


Have you considered reinstalling lazarus ?


Logged

I’m using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint


Have you considered reinstalling lazarus ?

Yes, I did it already… the first time this occured with an earlier SVN revision, a day or two ago. Then I got and compiled another revision and the same happens…


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


Got it. I needed to rescan FPC source. I guess something changed between revisions which required this.


Logged

Regards, ArNy the Turbo Rascal

«The secret is to give them what they need, not what they want.» — Scotty, STTNG:Relics


This is NOT solved. I just downloaded latest Lazarus and fpc to a brand new iMac.

If I place a button on a form and double-click, I immediately get the error and Lazarus opens a window called Classes.

I tried the rescan FPC but that didn’t help.


Logged


I did however just upgrade to Mavericks over the weekend — could that have screwed things up? That’s the only change to my system.


Logged



Logged


DHJiMac:~ $ fpc
Free Pascal Compiler version 2.6.2 [2013/02/03] for i386

Lazarus is 1.0.12

I did reinstall the development tools (i had already found that xcode 5 link, needed to do that to get a command line program to link)

(FYI — I just resinstalled FCP and Lazarus and it makes no difference — double-clicking on a button (say) produces the same error message)

« Last Edit: October 22, 2013, 05:50:57 pm by DavidJameson »


Logged


Студворк — интернет-сервис помощи студентам

на днях поставил Лазарус на opensuse 11.4.все прошло нормально но при попытке создания метода выдает ошибку Редактор компонента для класса «TDefaultComponentEditor» вызвал ошибку:
«Невозможно найти метод. Исправьте ошибки в окне сообщений.» а в окне сообщений -/usr/lib64/lazarus/lcl/lclclasses.pp(32,10) Error: модуль не найден: Classes. Пересмотрел похожие темы но ничего толкового не нашел.
Может кто-нибудь сталкивался с такой проблемой и может подсказать как ее решить.
Заранее всем благодарен.


0

1

После установки Лазаря на Ubuntu 9,10 из ихнего репозитория.
При первом(и последующих) запусках появляется сообщение:

Не найден исходный код FreePascal

Каталог исходного кода FreePascal не найден. Отдельные действия с кодом не будут работать. Рекомендуется установить его и установить путь в Параметрах окружения.

После нажатия кнопки «пропустить» запускается IDE. Далее всё кажется нормальным. Даже компилируется и запускается пустой проэкт. Но, при попытке создания какого либо обработчика событий, открывается модуль Forms с выделеной строкой

  {$ifndef wince},gettext{$endif}// remove ifdefs when gettext is fixed and a new fpc is released

Появляется окно

Ошибка в TDefaultComponentEditor

Редактор компонента для класса «TDefaultComponentEditor» вызвал ошибку:
«Невозможно найти метод. Исправте ошибки в окне сообщений.»

И появляется сообщение в окне сообщений:

/usr/lib/lazarus/lcl/forms.pp(44,19) Error: не найден исходный код: модуль /usr/lib/fpc/2.2.4/units/i386-linux/fcl-base/gettext.ppu

Прошу помощи в решении данного вопроса.

  • Регулярно занимаясь спортом вы укрепите свое здоровье где ошибка
  • Редактор исправления орфографических ошибок
  • Редактируемое показание принято к расчету ошибка при передачи данных
  • Ред дед редемпшен 2 ошибка сохранения
  • Регулировка устойчивости на бмв ошибка ф10