Recent

Author Topic: On start lazarus get error not code pascal in "unit1.pas"  (Read 306 times)

gradunet

  • Newbie
  • Posts: 1
On start lazarus get error not code pascal in "unit1.pas"
« on: January 24, 2026, 04:44:50 pm »

### TCodeToolManager.HandleException: [20170421194936] "не найдено кода Паскаля (первый элемент - )" in "unit1.pas"

unit Unit1;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs;

type
  TForm1 = class(TForm)
  private

  public

  end;

var
  Form1: TForm1;

implementation

initialization
  {$I unit1.lrs}

end.   
« Last Edit: January 24, 2026, 07:45:30 pm by gradunet »

Bart

  • Hero Member
  • *****
  • Posts: 5674
    • Bart en Mariska's Webstek
Re: On start lazarus get error not code pascal in "unit1.pas"
« Reply #1 on: January 24, 2026, 05:54:13 pm »
Well, what does unit1.pas look like then?

Bart

jamie

  • Hero Member
  • *****
  • Posts: 7518
Re: On start lazarus get error not code pascal in "unit1.pas"
« Reply #2 on: January 24, 2026, 09:36:32 pm »
 {$I unit1.lrs}

I really think that should be
{$R *.lrs}

Maybe..

Jamie
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018