Recent

Author Topic: *SOLVED* LAMW instal problem (Error: (5000) Identifier not found "dsError" )  (Read 1948 times)

commanderz

  • New Member
  • *
  • Posts: 11
При установке LAMW (trunc/trunc on windows x64) я столкнулся с ошибкой:
 Error: (5000) Identifier not found "dsError"
при компиляции файла gdbmiserverdebuggerlamw
затем я добавил ему в uses LazDebuggerIntfBaseTypes и подсунул его измененную версию в момент установки, удалив перед этим cодержимое папки c:\fpcupdeluxe\ccr\lamw\ide_tools\lib

и все прошло отлично.

Но есть еще одна проблема:

Если запустить lazarus и создать новый проект, появится форма темного цвета, все как и должно быть, и проект даже откомпилируется и запустится на устройстве.
Но если зайти в редактирование формы, и ничего не меняя - затем вернуться то по F12 она не сможет подгрузится с диска, так же как и если закрыть и затем открыть проект:

Выдает ошибки
[Window Title]
Read error

[Content]
Stream=TAndroidModule1: Root=:TAndroidModule1
Error reading TAndroidModule1.ActivityMode: Unknown property: "ActivityMode"
Stream position: 1725

[Continue loading] [Cancel loading this resource] [Stop all loading]

И форма уже не темного цвета, а белая, и у нее нету прежних свойств, и событий.
Есть только два свойства:
Name
Tag
и два события:
OnCreate
OnDestroy

Но программа компилируется и на устройстве запускается.

Но все свойства и события из unit1.lfm исчезли:
object AndroidModule1: TAndroidModule1
  Left = 323
  Top = 129   
end


Даже не знаю связано ли это с первой ошибкой и моим методом ее преодоления, или это новая ошибка.
« Last Edit: April 23, 2022, 12:53:44 pm by commanderz »

commanderz

  • New Member
  • *
  • Posts: 11
Еще выдает ошибку:
Quote
[Error]
Unable to find the component class "jForm".
It is not registered via RegisterClass and no lfm was found.
It is needed by unit:
C:\fpcupdeluxe\projects\_TestProj\proj2\jni\unit1.pas
[Cancel loading this component] [Ignore, use TForm as ancestor]


но unit1.lfm там есть:
Quote
object AndroidModule2: TAndroidModule2
  MarginLeft = 0
  MarginTop = 0
  MarginRight = 0
  MarginBottom = 0
  Enabled = True
  Left = 346
  Top = 90
  Width = 768
  Height = 1181
  Text = 'AndroidModule2'
  ActivityMode = actRecyclable
  BackgroundColor = colbrDefault
  ActionBarTitle = abtDefault
  AnimationDurationIn = 1500
  AnimationDurationOut = 1500
  AnimationMode = animNone
end

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10662
  • Debugger - SynEdit - and more
    • wiki
Error: (5000) Identifier not found "dsError"
Quote
gdbmiserverdebuggerlamw

I could not read/understand the rest of your message.

Where is "gdbmiserverdebuggerlamw" ?
Who maintains this?

In Lazarus (git main) the debugger files have changed. gdbmiserverdebuggerlamw will need to be updated (or maybe it was, and you did not update your copy...)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
@commanderz

What about installing "stable/stable"  (not trunc/trunc ...) ?

or you can try "LAMW Manager"  installs:


https://github.com/dosza/LAMWManager-win
https://github.com/dosza/LAMWManager-linux


@ Martin_fr

I have now notified the  @Leopreo  who maintains  gdbmiserverdebuggerlamw


Thanks to All!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

commanderz

  • New Member
  • *
  • Posts: 11
*PROBLEM SOLVED*
« Reply #4 on: April 23, 2022, 12:17:24 pm »
@jmpessoa
thanks for the answer
I found what was the problem and fixed the file:

c:\fpcupdeluxe\lazarus\ide\sourcefilemanager.pas

because it seemed to me that the problem was somewhere in his methods of reading .lfm files.
so i returned a call to TryRegisteredClasses in two places.
I will attach a file with my corrections, see if it will give you the right idea.



« Last Edit: April 23, 2022, 12:47:21 pm by commanderz »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Quote
Identifier not found "dsError"


Hi, Martin_fr!


"dsError"   was  removed from  "DbgIntfDebuggerBase.pas"?
« Last Edit: April 26, 2022, 04:47:21 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

bytebites

  • Hero Member
  • *****
  • Posts: 693
Quote
Identifier not found "dsError"


Hi, Martin_fr!


"dsError"   was  removed from  "DbgIntfDebuggerBase.pas"?

Moved to LazDebuggerIntfBaseTypes

 

TinyPortal © 2005-2018