Re: [fpc-pascal] Error: compilation raised exception internally (Rafael Picanço)

2023-10-22 Thread Rafael Picanço via fpc-pascal
It is really not related to specific lines. But sometimes the error will
repeat a lot on some lines.

Please, can you confirm if a zip file containing the project it self is a
minimal valid example? (I am afraid that changing the trying to simplify
the project will "solve" the error).

With some more specific instructions, I can try to figure out how to build
an as minimal as possible example.

Best,
R

Em dom., 22 de out. de 2023 07:00, 
escreveu:

> Send fpc-pascal mailing list submissions to
> fpc-pascal@lists.freepascal.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> or, via email, send a message with subject or body 'help' to
> fpc-pascal-requ...@lists.freepascal.org
>
> You can reach the person managing the list at
> fpc-pascal-ow...@lists.freepascal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fpc-pascal digest..."
>
>
> Today's Topics:
>
>1. Re:  Error: compilation raised exception internally (Thomas Kurz)
>2. Re:  Error: compilation raised exception internally (Sven Barth)
>
>
> --
>
> Message: 1
> Date: Sat, 21 Oct 2023 19:18:55 +0200
> From: Thomas Kurz 
> To: FPC-Pascal users discussions 
> Subject: Re: [fpc-pascal] Error: compilation raised exception
> internally
> Message-ID: <1201074545.20231021191...@smtp.mailbox.org>
> Content-Type: text/plain; charset=us-ascii
>
> > An exception or an internal error during compilation should *always* be
> > reported.
> > Please also provide a minimal, self contained example that shows the
> > problem.
>
> This is not always trivial because the internal errors are sometimes quite
> fiddly. I have a project in which an internal error occurs sometimes. When
> I do a "cleanup and build" (in Lazarus), it works well. There seems to be
> an influence of the order in which units are compiled, because I can change
> code in many places without getting the internal error again. But when I
> change code in other units, I get the internal error, but it's clearly
> uncorrelated to the line at which it occurs.
>
>
>
> --
>
> Message: 2
> Date: Sat, 21 Oct 2023 22:25:45 +0200
> From: Sven Barth 
> To: FPC-Pascal users discussions 
> Subject: Re: [fpc-pascal] Error: compilation raised exception
> internally
> Message-ID:
>  fuw3hpbkm...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Thomas Kurz via fpc-pascal  schrieb am
> Sa., 21. Okt. 2023, 19:22:
>
> > > An exception or an internal error during compilation should *always* be
> > > reported.
> > > Please also provide a minimal, self contained example that shows the
> > > problem.
> >
> > This is not always trivial because the internal errors are sometimes
> quite
> > fiddly. I have a project in which an internal error occurs sometimes.
> When
> > I do a "cleanup and build" (in Lazarus), it works well. There seems to be
> > an influence of the order in which units are compiled, because I can
> change
> > code in many places without getting the internal error again. But when I
> > change code in other units, I get the internal error, but it's clearly
> > uncorrelated to the line at which it occurs.
> >
>
> Without a way to reproduce and debug the issue it's very unlikely to get
> solved especially if it's a problem that only occurs in very specific
> circumstances.
>
> Regards,
> Sven
>
> >
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20231021/18bacdcf/attachment-0001.htm
> >
>
> --
>
> Subject: Digest Footer
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
>
> --
>
> End of fpc-pascal Digest, Vol 232, Issue 12
> ***
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error: compilation raised exception internally

2023-10-21 Thread Sven Barth via fpc-pascal
Thomas Kurz via fpc-pascal  schrieb am
Sa., 21. Okt. 2023, 19:22:

> > An exception or an internal error during compilation should *always* be
> > reported.
> > Please also provide a minimal, self contained example that shows the
> > problem.
>
> This is not always trivial because the internal errors are sometimes quite
> fiddly. I have a project in which an internal error occurs sometimes. When
> I do a "cleanup and build" (in Lazarus), it works well. There seems to be
> an influence of the order in which units are compiled, because I can change
> code in many places without getting the internal error again. But when I
> change code in other units, I get the internal error, but it's clearly
> uncorrelated to the line at which it occurs.
>

Without a way to reproduce and debug the issue it's very unlikely to get
solved especially if it's a problem that only occurs in very specific
circumstances.

Regards,
Sven

>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error: compilation raised exception internally

2023-10-21 Thread Thomas Kurz via fpc-pascal
> An exception or an internal error during compilation should *always* be
> reported.
> Please also provide a minimal, self contained example that shows the
> problem.

This is not always trivial because the internal errors are sometimes quite 
fiddly. I have a project in which an internal error occurs sometimes. When I do 
a "cleanup and build" (in Lazarus), it works well. There seems to be an 
influence of the order in which units are compiled, because I can change code 
in many places without getting the internal error again. But when I change code 
in other units, I get the internal error, but it's clearly uncorrelated to the 
line at which it occurs.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Error: compilation raised exception internally

2023-10-21 Thread Sven Barth via fpc-pascal
Rafael Picanço via fpc-pascal  schrieb am
Sa., 21. Okt. 2023, 02:50:

> Hi everyone,
>
> I am getting a strange error when compiling a project. I am really not
> sure what is going on, because it occurs sometimes, consistently in some
> lines of the code with calls to this static variable:
> ...
> function NextID(ID : word) : word;
> ...
> NextID(ContainerClass.SomeTypeInstance.ID)
> ...
> type
>   TSomeType = class(TSomeBaseClass)
>   public
> ID : TTrialID; static;
>   end;
>
> I hit F9 again and then the project compiles with error.
>
> Any suggestions? Should I care about this error and report it??
>

An exception or an internal error during compilation should *always* be
reported.
Please also provide a minimal, self contained example that shows the
problem.

Regards,
Sven

>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal