Re: [Lazarus] Proud to announce..

2018-12-04 Thread Michael Van Canneyt via lazarus



On Tue, 4 Dec 2018, leledumbo via lazarus wrote:

See it in action for yourself: 


https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html


Good work! A little bug, though:
1. Directly press Compile, it will be an error
2. Go to Load units tab, press Load default units
3. Press Compile again, Compiler Output will always contain "Fatal:
Compilation aborted" until refreshed and correct steps are done (i.e. Load
default units before Compile)



Seems like the reset is not working correctly after an error occurred.

We'll have to check that.

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Proud to announce..

2018-12-04 Thread Michael Van Canneyt via lazarus



On Wed, 5 Dec 2018, AlexeyT via lazarus wrote:

 I see that you converted FPC project to JS and inserted it into the 
webpage. Is it correct?


It is. But this was a goal from day 1 of the project.

I expect the lazarus team to have lazarus running in the browser this time
next year. ;)

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Proud to announce..

2018-12-04 Thread AlexeyT via lazarus
 I see that you converted FPC project to JS and inserted it into the 
webpage. Is it correct?


It is achievement, yes...


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Proud to announce..

2018-12-04 Thread leledumbo via lazarus
> See it in action for yourself: 
>
> https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html

Good work! A little bug, though:
1. Directly press Compile, it will be an error
2. Go to Load units tab, press Load default units
3. Press Compile again, Compiler Output will always contain "Fatal:
Compilation aborted" until refreshed and correct steps are done (i.e. Load
default units before Compile)




--
Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Proud to announce..

2018-12-04 Thread silvioprog via lazarus
On Tue, Dec 4, 2018 at 7:26 PM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> On Tue, 4 Dec 2018, silvioprog via lazarus wrote:
>
> > Awesome news! Thanks for this incredible work. ☺
> >
> > Can we use it for online tests to report bugs via Mantis? (something like
> > JSFiddle)
>
> An interesting concept, I like it.
>
> This is something we can and should indeed think about.
>

Some ideias:

1. a clean highlighted source editor allowing:
  1.1 to link the CDN of the common JS/CSS libraries (jQuery.js, Vue.js,
Bootstrap, Modernizr...);
  1.2 to save the code and share its link (shortened?);
  1.3 to download the generated codes/logs (compressed?);
  1.4 code hinting (like Lazarus' identifier completion. This feature was
recently added to JSFiddle);
  1.5 code minify and/or uglify

(allowing to copy the single generated line).
2. an easy-to-remember link:
  2.1 a long link idea:
https://pas2js.freepascal.org//
(ex: https://pas2js.freepascal.org/michael/Q8KVC)
  2.2 a short link (*very* optional, but useful )
3. extra:
  3.1 allows the user to manage codes (something like https://pastebin.com);
  3.2 allows reviews/corrections from other users (something like a fork +
share).

Just some naive ideas and maybe hard to be implemented, but useful. 

-- 
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Proud to announce..

2018-12-04 Thread Michael Van Canneyt via lazarus



On Tue, 4 Dec 2018, silvioprog via lazarus wrote:


Awesome news! Thanks for this incredible work. ☺

Can we use it for online tests to report bugs via Mantis? (something like
JSFiddle)


An interesting concept, I like it.

This is something we can and should indeed think about.

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Wizard pages

2018-12-04 Thread Luiz Americo Pereira Camara via lazarus
Yuo can try
https://github.com/blikblum/luipack/tree/master/luicontrols/demos/wizard
from package LuiControls

Luiz

Em ter, 4 de dez de 2018 às 16:59, Torsten Bonde Christiansen via lazarus <
lazarus@lists.lazarus-ide.org> escreveu:

> Hi List.
>
> Is there any such thing as a TWizard Form/Frame/Page/Component in Lazarus?
>
> One that you can fairly easy build a set of wizard pages with title,
> text, and maybe a checkbox or input field of some sort.
>
> If not do you know of a place where i may be able to find such a component?
>
> Any help is much appreciated.
>
> Best regards,
> Torsten.
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Proud to announce..

2018-12-04 Thread silvioprog via lazarus
On Tue, Dec 4, 2018 at 7:01 PM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Hello !
>
> If anyone still doubted that Object Pascal is the best programming
> language,
> running on the most platforms:
>
> It is with considerable pride that I can announce a new major milestone
> has
> been reached in Free Pascal's pas2js story:
>
> The pas2js compiler runs now embedded in the browser itself.
>
> A picture says more than a thousand words, see attachment.
>
> See it in action for yourself:
>
> https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html
>
> How does it work ?
> 1. Enter the source of your program.
> 2. Load the necessary units on the 'load units' tab.
>(The "Load default units" button is a good start)
> 3. Hit "Compile" !
> 4. Observe the output of the compiler in the tab "Compiler output"
> 5. If all went well, the 'Run' button is now active...
> 6. Press the 'Run' button !
>
> The program will be loaded & run in an IFrame at the bottom of the page.
>
> Obviously, this is only a demo, and there is ample room for improvement
> (specifying additional options, viewing generated source code, improving
> gui)
> and you don't have all units available: only the ones in 'rtl' have been
> made available. (it's just a matter of uploading them)
>
> But it works. No server interaction other than loading the extra needed
> unit sources is necessary: all is done in the browser.
>
> All code is committed in SVN, demo/webcompiler.
>
> Last but not least:
> Once more I want to thank Mattias Gaertner for his incredible work on the
> compiler, without whose solid foundations I would not have been able to do
> this
> !
>
> Enjoy, and stay tuned for more wonderful features & cutting edge
> technology
> from the people that bring you Free Pascal & Lazarus !
>
> Michael.


Awesome news! Thanks for this incredible work. ☺

Can we use it for online tests to report bugs via Mantis? (something like
JSFiddle)

Anyway, thanks a lot for sharing it!

-- 
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Proud to announce..

2018-12-04 Thread Michael Van Canneyt via lazarus


Hello !

If anyone still doubted that Object Pascal is the best programming language, 
running on the most platforms:


It is with considerable pride that I can announce a new major milestone has 
been reached in Free Pascal's pas2js story:


The pas2js compiler runs now embedded in the browser itself.

A picture says more than a thousand words, see attachment.

See it in action for yourself:

https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html

How does it work ?
1. Enter the source of your program.
2. Load the necessary units on the 'load units' tab.
  (The "Load default units" button is a good start)
3. Hit "Compile" !
4. Observe the output of the compiler in the tab "Compiler output"
5. If all went well, the 'Run' button is now active...
6. Press the 'Run' button !

The program will be loaded & run in an IFrame at the bottom of the page.

Obviously, this is only a demo, and there is ample room for improvement
(specifying additional options, viewing generated source code, improving gui) 
and you don't have all units available: only the ones in 'rtl' have been

made available. (it's just a matter of uploading them)

But it works. No server interaction other than loading the extra needed
unit sources is necessary: all is done in the browser.

All code is committed in SVN, demo/webcompiler.

Last but not least:
Once more I want to thank Mattias Gaertner for his incredible work on the
compiler, without whose solid foundations I would not have been able to do this 
!


Enjoy, and stay tuned for more wonderful features & cutting edge technology 
from the people that bring you Free Pascal & Lazarus !


Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Wizard pages

2018-12-04 Thread Torsten Bonde Christiansen via lazarus

Hi List.

Is there any such thing as a TWizard Form/Frame/Page/Component in Lazarus?

One that you can fairly easy build a set of wizard pages with title, 
text, and maybe a checkbox or input field of some sort.


If not do you know of a place where i may be able to find such a component?

Any help is much appreciated.

Best regards,
Torsten.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] compile error svn Lazarus 2.1

2018-12-04 Thread john Landmesser via lazarus

errors start with rev. 59710

IDE: Fixed possible AV's during the dependency checks on fpmake-packages


Am 04.12.2018 um 15:10 schrieb John Landmesser via lazarus:

last working version:

Lazarus 2.1.0 r59677 FPC 3.0.4 x86_64-linux-gtk2

Am 03.12.18 um 21:57 schrieb John Landmesser via lazarus:
 /home/john1/lazarus/packager/fppkghelper.pas(28,31) Hint: (5024) 
Parameter "PackageName" not used
/home/john1/lazarus/packager/fppkghelper.pas(29,28) Hint: (5024) 
Parameter "AList" not used
/home/john1/lazarus/packager/fppkghelper.pas(131,19) Error: (5000) 
Identifier not found "FFPpkg"
/home/john1/lazarus/packager/fppkghelper.pas(131,51) Error: (5000) 
Identifier not found "pkgpkInstalled"
/home/john1/lazarus/packager/fppkghelper.pas(132,26) Error: (5038) 
identifier idents no member "PackagesStructure"
fppkghelper.pas(138) Fatal: (10026) There were 3 errors compiling 
module, stopping





--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] editorconfig support

2018-12-04 Thread Dmitry Boyarintsev via lazarus
On Tue, Dec 4, 2018 at 10:36 AM Bart via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Masks unit (/components/lazutis folder of Lazarus)?
> This however assumes all strings are UTF8 and requires the LazUtf8 unit.

 Yep. That's the one I had on my mind but could not remember.
Thanks
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] editorconfig support

2018-12-04 Thread Bart via lazarus
On Tue, Dec 4, 2018 at 4:00 AM Dmitry Boyarintsev via lazarus
 wrote:

> But are there any Pascal libraries already available that can perform file 
> masks parsing?

Masks unit (/components/lazutis folder of Lazarus)?
This however assumes all strings are UTF8 and requires the LazUtf8 unit.

It could easily be rewritten to handle singe-byte encoded strings
though (it was so in th eold days, I rewrote it to be UTF8 compatible
in the past).

-- 
Bart
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] compile error svn Lazarus 2.1

2018-12-04 Thread John Landmesser via lazarus

last working version:

Lazarus 2.1.0 r59677 FPC 3.0.4 x86_64-linux-gtk2

Am 03.12.18 um 21:57 schrieb John Landmesser via lazarus:
 /home/john1/lazarus/packager/fppkghelper.pas(28,31) Hint: (5024) 
Parameter "PackageName" not used
/home/john1/lazarus/packager/fppkghelper.pas(29,28) Hint: (5024) 
Parameter "AList" not used
/home/john1/lazarus/packager/fppkghelper.pas(131,19) Error: (5000) 
Identifier not found "FFPpkg"
/home/john1/lazarus/packager/fppkghelper.pas(131,51) Error: (5000) 
Identifier not found "pkgpkInstalled"
/home/john1/lazarus/packager/fppkghelper.pas(132,26) Error: (5038) 
identifier idents no member "PackagesStructure"
fppkghelper.pas(138) Fatal: (10026) There were 3 errors compiling 
module, stopping




--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus