[fpc-pascal] Porting from Turbo Pascal to FPC

2020-04-29 Thread Francisco Glover via fpc-pascal
Overt the years I have developed programs in Turbo Pascal for student lab use, in which the student can easily send to an attached printer contents of the text or VGA graphics screens. These no longer work on Windows 10. In shifting to FPC , certain key procedures which worked in Turbo Pascal runn

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Ryan Joseph via fpc-pascal
> On Apr 29, 2020, at 3:15 PM, Ryan Joseph wrote: > > This wasn't doing what I thought. It still doesn't give an error until I > query at another point in the unit. I thought it would pre-parse or something > but it seems to be on demand. I may have to handle the errors in another way. > >

Re: [fpc-pascal] Question about compiling FPC trunk after revision 44849

2020-04-29 Thread Marco van de Voort
Op 2020-04-29 om 19:50 schreef Jonas Maebe: Yes, but you cannot use "clean" and "all" in the same make invocation. This was in fact never supported, and did not work on all platforms either. So simply split it: make -j 9 clean make -j 9 all install Does "clean" have a valid return value of m

Re: [fpc-pascal] Question about compiling FPC trunk after revision 44849

2020-04-29 Thread Victor Campillo via fpc-pascal
On 29/4/20 20:01, Sven Barth via fpc-pascal wrote: Jonas Maebe mailto:jo...@freepascal.org>> schrieb am Mi., 29. Apr. 2020, 19:50: So simply split it: make -j 9 clean make -j 9 all install Also you should specify FPMAKEOPT="-T 9" in addition to -j. Regards, Sven Ok, thank yo

Re: [fpc-pascal] Question about compiling FPC trunk after revision 44849

2020-04-29 Thread Sven Barth via fpc-pascal
Jonas Maebe schrieb am Mi., 29. Apr. 2020, 19:50: > On 29/04/2020 19:39, Victor Campillo via fpc-pascal wrote: > > For years I have been using the same script to compile FPC, in this > > script I use the next command: > > > > make -j 9 clean all install > > > > After the revision 44849 the use of

Re: [fpc-pascal] Question about compiling FPC trunk after revision 44849

2020-04-29 Thread Jonas Maebe
On 29/04/2020 19:39, Victor Campillo via fpc-pascal wrote: > For years I have been using the same script to compile FPC, in this > script I use the next command: > > make -j 9 clean all install > > After the revision 44849 the use of the jobs option does not work > anymore, it fails to compile, r

[fpc-pascal] Question about compiling FPC trunk after revision 44849

2020-04-29 Thread Victor Campillo via fpc-pascal
Hi, For years I have been using the same script to compile FPC, in this script I use the next command: make -j 9 clean all install After the revision 44849 the use of the jobs option does not work anymore, it fails to compile, reviewing the changes in revision 44849 shows that was removed t

Re: [fpc-pascal] Converting http date back to TDateTime

2020-04-29 Thread Zamrony P. Juhara via fpc-pascal
Yes, it works if I remove timezone part from pattern as suggested by Santiago. This one works adatetime := scanDateTime(     'ddd, dd mmm hh:mm:ss',     'Tue, 28 Apr 2020 10:11:12 GMT'); So i guess, we must convert timezone information to local timezone manually. Thank you Zamrony P. Juhara

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Ryan Joseph via fpc-pascal
Testing this more I'm having a problem getting overwhelmed by completions for classes because of methods from TObject (and other parents) so I'd like to add some information about this. Using this method: if CodeToolBoss.GatherIdentifiers(Code,X + 1,Y + 1) then begin Count := Code

Re: [fpc-pascal] Converting http date back to TDateTime

2020-04-29 Thread Santiago A.
El 29/04/2020 a las 04:44, Zamrony P. Juhara via fpc-pascal escribió: No it does not work. Docs says literal string needs to be quoted with " Zamrony P. Juhara On Wed, Apr 29, 2020 at 9:37, Alexander Grotewohl wrote: ___ fpc-pascal ma

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Michael Van Canneyt
On Wed, 29 Apr 2020, Ryan Joseph via fpc-pascal wrote: On Apr 29, 2020, at 3:37 PM, Michael Van Canneyt wrote: if the Lazarus team can implement a LSP plugin for the editor, then we'd have instant language support for a whole bunch of languages. That would be awesome... but language se

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Ryan Joseph via fpc-pascal
> On Apr 29, 2020, at 3:37 PM, Michael Van Canneyt > wrote: > > if the Lazarus team can implement a LSP plugin for the editor, then we'd have > instant language support > for a whole bunch of languages. That would be awesome... but language servers don't do any syntax styling so they're only

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Michael Van Canneyt
On Wed, 29 Apr 2020, Ryan Joseph via fpc-pascal wrote: On Apr 29, 2020, at 3:23 PM, Michael Van Canneyt wrote: and then it should be a matter of creating a descendent of the language client. The C# one seems easy enough to convert :-) Let me know if you can figure it out. Will do.

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Ryan Joseph via fpc-pascal
> On Apr 29, 2020, at 3:23 PM, Michael Van Canneyt > wrote: > > and then it should be a matter of creating a descendent of the language > client. > The C# one seems easy enough to convert :-) Let me know if you can figure it out. VSCode looks pretty difficult: https://github.com/donaldpip

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Michael Van Canneyt
On Wed, 29 Apr 2020, Ryan Joseph via fpc-pascal wrote: On Apr 28, 2020, at 7:47 PM, Michael Van Canneyt wrote: Incredibly looking forward to test-driving this in Atom... :-) Michael, do you actually know how to setup a language server in Atom? I've only tested on Sublime Text but I do

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Ryan Joseph via fpc-pascal
> On Apr 28, 2020, at 10:01 PM, Mattias Gaertner via fpc-pascal > wrote: > > Yes This wasn't doing what I thought. It still doesn't give an error until I query at another point in the unit. I thought it would pre-parse or something but it seems to be on demand. I may have to handle the erro

Re: [fpc-pascal] Pascal Language Server

2020-04-29 Thread Ryan Joseph via fpc-pascal
> On Apr 28, 2020, at 7:47 PM, Michael Van Canneyt > wrote: > > Incredibly looking forward to test-driving this in Atom... :-) Michael, do you actually know how to setup a language server in Atom? I've only tested on Sublime Text but I do plan to learn how to setup VSCode also when I find