Re: [Lazarus] Package/New Package broken

2018-05-18 Thread Martok via Lazarus
Am 19.05.2018 um 00:27 schrieb Werner Pamler via Lazarus:
> I cannot confirm the issue either (I am German, too). I do no see the 
> space in the name. Are you sure that you did not enter it yourself?
Happens for me too, no input required. This used to work at some point...

Lazarus-1.9-57954_fpc-3.1.1-39024M

Backtrace:
> #0  0x0040f676 in fpc_raiseexception ()
> #1  0x004899e4 in CLASSES$_$TCOMPONENT_$__$$_SETNAME$ANSISTRING ()
> #2  0x0055f931 in SETNAME (this=0x2f1e68, VALUE=0xb79a07c 
> 'PackageEditor_Neues Package') at include/control.inc:3492
> #3  0x00b247ad in PACKAGEEDITOR$_$TPACKAGEEDITORFORM_$__$$_UPDATEALL$BOOLEAN 
> ()
> #4  0x00b23a70 in 
> PACKAGEEDITOR$_$TPACKAGEEDITORFORM_$__$$_SETLAZPACKAGE$TLAZPACKAGE ()
> #5  0x00b28328 in 
> PACKAGEEDITOR$_$TPACKAGEEDITORS_$__$$_CREATEEDITOR$TLAZPACKAGE$BOOLEAN$$TPACKAGEEDITORFORM
>  ()
> #6  0x0892be18 in ?? ()
> #7  0x007fbee4 in PKGMANAGER$_$TPKGMANAGER_$__$$_DONEWPACKAGE$$TMODALRESULT ()
> #8  0x007f4a48 in 
> PKGMANAGER$_$TPKGMANAGER_$__$$_MAINIDEITMPKGNEWPACKAGECLICK$TOBJECT ()
> #9  0x00732325 in MENUITEMCLICK (this=0xb4d13e0, SENDER=0xb4ce2f8) at 
> menuintf.pas:544
> #10 0x00734df5 in MENUITEMCLICK (this=0xb4d13e0, SENDER=0xb4ce2f8) at 
> menuintf.pas:1705
> #11 0x00585f40 in CLICK (this=0xb4ce2f8) at include/menuitem.inc:83
> #12 0x005865bf in DOCLICKED (this=0xb4ce2f8, MSG=0) at 
> include/menuitem.inc:293
-- 
Regards,
Martok


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


Re: [Lazarus] Package/New Package broken

2018-05-18 Thread Werner Pamler via Lazarus

Am 18.05.2018 um 20:05 schrieb John Landmesser via Lazarus:


No it occurs because of my german locale. Issue is gone with english 
and -> "NewPackage.lpk"


There are spaces in "PackageEditor_Neues Package1" and thats not 
possible for package names!


Too tired now to write the bug report :-(


I cannot confirm the issue either (I am German, too). I do no see the 
space in the name. Are you sure that you did not enter it yourself?


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


Re: [Lazarus] Package/New Package broken

2018-05-18 Thread John Landmesser via Lazarus

Am 17.05.2018 um 00:01 schrieb Cyrax via Lazarus:

On 16/05/18 10:44, John Landmesser via Lazarus wrote:

Hi,

Lazarus 1.9.0 r57942 FPC 3.0.0 x86_64-linux-gtk2

try Package/New Package

and you get an Error Dialog.


"PackageEditor_Neues Package1" is not a valid component name.





Lazarus 1.9.0 r57946 FPC 3.1.1-r39004 x86_64-linux-gtk2

I can't reprocude this bug. Maybe you can try to do full clean build 
of the IDE and see if it fixes this?




No it occurs because of my german locale. Issue is gone with english and 
-> "NewPackage.lpk"


There are spaces in "PackageEditor_Neues Package1" and thats not 
possible for package names!


Too tired now to write the bug report :-(

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


Re: [Lazarus] Lazarus-ccr Access

2018-05-18 Thread John Landmesser via Lazarus

Am 18.05.2018 um 15:44 schrieb Werner Pamler via Lazarus:

Am 17.05.2018 um 13:20 schrieb John Landmesser via Lazarus:

is that a candidate for ccr and can i get access to it?


It was Felipe who gave me commit rights for ccr, just contact him 
directly referring to this thread. You'll find his mail address by 
seeking his posts in this mailing list.


But to be honest, having exerienced a series of severe downs of 
SourceFourge recently, I'd not recommend anybody to post new 
activities to CCR (=SourceForce) any more. You are already on github, 
why don't you stay there? You just should make sure that your package 
is added to OnlinePackageManager such that it is easily reachable by 
Lazarus - but in the forum there is already a discussion about this.


done, its from today allready on Online Package Manager, OPM... a really 
great package for Lazarus IDE!


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


Re: [Lazarus] Lazarus-ccr Access

2018-05-18 Thread Werner Pamler via Lazarus

Am 17.05.2018 um 13:20 schrieb John Landmesser via Lazarus:

is that a candidate for ccr and can i get access to it?


It was Felipe who gave me commit rights for ccr, just contact him 
directly referring to this thread. You'll find his mail address by 
seeking his posts in this mailing list.


But to be honest, having exerienced a series of severe downs of 
SourceFourge recently, I'd not recommend anybody to post new activities 
to CCR (=SourceForce) any more. You are already on github, why don't you 
stay there? You just should make sure that your package is added to 
OnlinePackageManager such that it is easily reachable by Lazarus - but 
in the forum there is already a discussion about this.


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


Re: [Lazarus] Lazarus-ccr Access

2018-05-18 Thread Joost van der Sluis via Lazarus

On 05/17/2018 07:00 PM, John Landmesser via Lazarus wrote:

Am 17.05.2018 um 17:40 schrieb Joost van der Sluis via Lazarus:
just discovered "online package manager"

it gets the packages from http://packages.lazarus-ide.org

This online package manager is a great tool and this location seems to 
be the right place?


Howto upload to this URL?



p.s. never created a fpmake.pp :-(


Forget it, for now. I see that it is about TStringGrid, not TStringList. 
Packages that depend on the LCL are a little bit hard in fpmake.


I think adding it to packages.lazarus-ide.org is a good idea. I do not 
know how to do so, but others in this link must be able to tell you.


I've had a look at your code. Woudn't it be a good idea to add a setting 
on how to sort. For example: float, string, date etc? And then an 
'automatic' option for the current behaviour.


Even better would be to add this option on a per-column basis.

Regards,

Joost.

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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Anthony Walter via Lazarus
My plan is to finish the JavaScript Core package first, test on Windows,
Mac, and Linux, create some compelling demos, record a few videos, and
publish it on Github.

Then integrate the final published API of the JSC into the Webkit browser
package, and again test on Windows, Mac, and Linux, create some compelling
demos, record a few videos, and publish it on Github.

*In JSC what's currently working*

JSC ability to work on all platforms. Run any JavaScript plus latest ES6
support. Create Pascal callbacks for JavaScript. Call JavaScript
functions/methods from Pascal. Create JavaScript objects dynamically from
Pascal. Fully documented.

*In JSC what needs work:*

JSC ability to define native JavaScript classes in Pascal. testing, demos,
and videos. Synchronize changes from the JSC package back into the Webkit
browser package.

*In Webkit browser package what's currently working:*

Gtk2 and Gtk3 bindings. Custom controls working independently of bindings.
Some designers and component editors. A lot of functionality has been
included beyond what was shown in the demo, including browser element hit
testing, intercepting resources before they load, custom
alert/confirm/prompt handling. Mostly documented.

*In Webkit browser what needs work:*

Needs download manager code for handling what to do when links that want to
download files. Cocoa/Carbon and Qt4/5 all have a paths forward and I have
the sources ready. They use the same basic API so changes should be minimal
and mostly related to WSClass details. Windows has not been researched yet,
but should be possible. I need to implement a few more helper
controls. Testing,
demos, and videos. Synchronize changes from the JSC package into the Webkit
browser package.

*So in summary:*

I will finish the JSC package first, publish it, then do more work on the
Webkit browser. The JSC package code is close to done, but demos will needs
some time. Everything should work on all major platforms when complete and
offer similar experiences.

*Notes about Gtk2:*

Continued Gtk2 support for Webkit was stopped a few years ago. It works,
but there have been no updates by the Webkit team for a few years and there
are some security holes that won't be patched. Also it does not have the
same performance enhancements or improvements as the Gtk3/Mac/Qt versions.
I have made some improvements tot the LCL Gtk3 units which I will publish
to Mantis as a patch when the Webkit web browser package is published.

*Contributions:*

I am going to be looking for ideas and testing with the JSC package
relatively soon. The system I've come up with is very easy to use, and also
quite powerful. Before publishing I want to create some demos, record a few
videos, and of course test all platforms. The basic getting starting with
JSC is this easy:

uses
  JavaScript.Core;

var
   Context: JSContext;
begin
  Context := JSContext.Create;
  Context.ScriptRun(SomeJavaScriptString);
end;

Note, JSContext and all related JS types (JSValue, JSObject, JSString) are
all managed for you, meaning you do not need to free them. To create a
JevaScript object in Pascal you can use code like:

O := Context.CreateObject('RegExp');

To define a callback for JavaScript to invoke your Pascal code you would
write:

function PascalHello(Context: JSContext; Args: JSValueArray; var Error:
JSValue): JSValue;
begin
  if Length(Args) > 0 then
Result := Context.CreateString('Hi there ' + Args[0].AsString)
  else
Result := Context.CreateString('Pascal says hello');
end;

...

Context.GlobalObject.CreateFunction('hello', PascalHello);

And in JavaScript you might write:

console.log(hello("i am javascript"));

I also provide a way to define and load entire Pascal modules in
JavaScript. A Pascal module is a set of objects/functions that add
functionality to JavaScript through native Pascal code. To use a Pascal
module you write:

JSEnabledModuleSystem(Context);

And in JavaScript you might write:

system.modules.load('file', 'process');
file.writeText('hello.txt', 'hello world');
let s = process.execute('ls', '-al');
console.log(s);

Note, the module system provides a default console object even if you are
operating outside a web browser. Also, the module system is available even
if you are executing the JavaScript inside a web page. I will provide a
reference on how to write your own modules.

Finally, I have included with JSC a demo application named jsc. The jsc
application is a scripting program that allows you to run scripts on
Mac/Linux via shebangs:

#!/home/user/bin/jsc
console.log("Hello World");

You can load modules in jsc scripts as well. To run your script, assuming
it is called hello.js, from a terminal:

chmod +x hello.js
./hello.js
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus

On 2018-05-18 14:22, Zbyněk Fiala via Lazarus wrote:

As for chrome embedding;
https://github.com/dliw/fpCEF3

I used it couple years ago and it worked very 
well.https://github.com/zbyna/vcfToGigaset

FpCEF3 is maintained so far.


Even fpCEF3 has problems running well under linux - so I would love to 
see (and help) with an approach like this :)


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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Zbyněk Fiala via Lazarus
As for chrome embedding;
https://github.com/dliw/fpCEF3

I used it couple years ago and it worked very 
well.https://github.com/zbyna/vcfToGigaset
FpCEF3 is maintained so far.

18. 5. 2018 v 13:41, Torsten Bonde Christiansen via Lazarus 
:

>> On 2018-05-18 12:00, Anthony Walter via Lazarus wrote:
>> This is an open source set of controls I am working on which will be 
>> released soon on gtihub. The browser is based on the wekbit engine, and it's 
>> accompanied by a collection of native controls and other code to make 
>> working with related materials easy/easier.
>> 
>> A related portion I am working on in parallel is an interface to the webkit 
>> javascript core engine. Although it is in a separate package, the jsc tools 
>> I am working on provide the ability to intermix pascal code and javascript 
>> in your applications. But also, you can use the jsc tools to take to talk 
>> your application from inside a webpage, and your application can call 
>> javascript to interact with a webpage.
>> 
>> Or, you can not use a web browser at all, and just work with javascript 
>> inside your pascal apps.
>> 
>> Stay tuned. If you want to help me test or give me feedback (forum linked 
>> below) on some demo ideas or the programming interface (code design) before 
>> I publish, let me know.
>> 
>> https://www.getlazarus.org/forums/viewforum.php?f=23
>> 
>> 
> I would love to help you with both testing and feedback. Is there any way I 
> can help you with development too?
> 
> I would love to add (at least the browser part) to our product.
> 
> best regrads,
> 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] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus

On 2018-05-18 12:00, Anthony Walter via Lazarus wrote:
This is an open source set of controls I am working on which will be 
released soon on gtihub. The browser is based on the wekbit engine, 
and it's accompanied by a collection of native controls and other code 
to make working with related materials easy/easier.


A related portion I am working on in parallel is an interface to the 
webkit javascript core engine. Although it is in a separate package, 
the jsc tools I am working on provide the ability to intermix pascal 
code and javascript in your applications. But also, you can use the 
jsc tools to take to talk your application from inside a webpage, and 
your application can call javascript to interact with a webpage.


Or, you can not use a web browser at all, and just work with 
javascript inside your pascal apps.


Stay tuned. If you want to help me test or give me feedback (forum 
linked below) on some demo ideas or the programming interface (code 
design) before I publish, let me know.


https://www.getlazarus.org/forums/viewforum.php?f=23


I would love to help you with both testing and feedback. Is there any 
way I can help you with development too?


I would love to add (at least the browser part) to our product.

best regrads,
Torsten.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Michael Van Canneyt via Lazarus



On Fri, 18 May 2018, Anthony Walter via Lazarus wrote:


This is an open source set of controls I am working on which will be
released soon on gtihub. The browser is based on the wekbit engine, and
it's accompanied by a collection of native controls and other code to make
working with related materials easy/easier.

A related portion I am working on in parallel is an interface to the webkit
javascript core engine. Although it is in a separate package, the jsc tools
I am working on provide the ability to intermix pascal code and javascript
in your applications. But also, you can use the jsc tools to take to talk
your application from inside a webpage, and your application can call
javascript to interact with a webpage.

Or, you can not use a web browser at all, and just work with javascript
inside your pascal apps.

Stay tuned. If you want to help me test or give me feedback (forum linked
below) on some demo ideas or the programming interface (code design) before
I publish, let me know.


Great news !

It means we can create native embedded pas2js applications: 
a "Phonegap" (think cordova, native react etc.) like approach for lazarus ! 
This is going to be heaps of fun... :)


Keep up the good work, I look forward to seeing the final product :)

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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Anthony Walter via Lazarus
This is an open source set of controls I am working on which will be
released soon on gtihub. The browser is based on the wekbit engine, and
it's accompanied by a collection of native controls and other code to make
working with related materials easy/easier.

A related portion I am working on in parallel is an interface to the webkit
javascript core engine. Although it is in a separate package, the jsc tools
I am working on provide the ability to intermix pascal code and javascript
in your applications. But also, you can use the jsc tools to take to talk
your application from inside a webpage, and your application can call
javascript to interact with a webpage.

Or, you can not use a web browser at all, and just work with javascript
inside your pascal apps.

Stay tuned. If you want to help me test or give me feedback (forum linked
below) on some demo ideas or the programming interface (code design) before
I publish, let me know.

https://www.getlazarus.org/forums/viewforum.php?f=23
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Michael Van Canneyt via Lazarus



On Fri, 18 May 2018, Torsten Bonde Christiansen via Lazarus wrote:


On 2018-05-18 11:46, Michael Van Canneyt via Lazarus wrote:



On Fri, 18 May 2018, zeljko wrote:


On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote:



I thought it was perhaps chrome embedded ?


Maybe, there are Delphi bindings around for chrome embedded


Indeed and for lazarus as well.
cef4delphi was ported at some point, I think.


But afaik it was only ported for windows - and the video is from an 
Ubuntu installation. :)


Good point.

I guess Anthony Walter will have to enlighten us all... :)

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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus

On 2018-05-18 11:46, Michael Van Canneyt via Lazarus wrote:



On Fri, 18 May 2018, zeljko wrote:


On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote:



I thought it was perhaps chrome embedded ?


Maybe, there are Delphi bindings around for chrome embedded


Indeed and for lazarus as well.
cef4delphi was ported at some point, I think.


But afaik it was only ported for windows - and the video is from an 
Ubuntu installation. :)


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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Michael Van Canneyt via Lazarus



On Fri, 18 May 2018, zeljko wrote:


On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote:



I thought it was perhaps chrome embedded ?


Maybe, there are Delphi bindings around for chrome embedded


Indeed and for lazarus as well.
cef4delphi was ported at some point, I think.

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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread zeljko via Lazarus

On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote:



I thought it was perhaps chrome embedded ?


Maybe, there are Delphi bindings around for chrome embedded

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


Re: [Lazarus] Runtime error: INCLOCKED (BUG)

2018-05-18 Thread Valdas Jankūnas via Lazarus

2018-05-11 12:36, Santiago A. via Lazarus rašė:

Yes, but I think that it should be considered a FPC bug

   TList = array of TElement;
   Plist = ^TList;

   TSetting = record
   list: Plist;
   end;

const
   _List: array [0..1] of TElement = (
   (strr: 'a'),
   (strr: 'b'));

   _Settings: array [0..0] of TSetting = (
   (list: @_List)); //  <=== This line should rise a compiler error.
You are asigning a pointer to an static array to a pointer to a dynamic
array.


Reported: https://bugs.freepascal.org/view.php?id=33757

--
  Valdas Jankūnas
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Michael Van Canneyt via Lazarus



On Fri, 18 May 2018, zeljko wrote:


On 05/18/2018 09:18 AM, Michael Van Canneyt via Lazarus wrote:



On Fri, 18 May 2018, Anthony Walter via Lazarus wrote:


how-to instructions




Pretty neat ! Deceptively easy to do :)

Question: Where are the components you used, and where can I find the demo 
source code ?


Is this embedded Gecko engine ?


I thought it was perhaps chrome embedded ?

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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread zeljko via Lazarus

On 05/18/2018 09:18 AM, Michael Van Canneyt via Lazarus wrote:



On Fri, 18 May 2018, Anthony Walter via Lazarus wrote:


how-to instructions




Pretty neat ! Deceptively easy to do :)

Question: Where are the components you used, and where can I find the 
demo source code ?


Is this embedded Gecko engine ?

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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus

On 2018-05-18 09:18, Michael Van Canneyt via Lazarus wrote:



Question: Where are the components you used, and where can I find the 
demo source code ?

+1

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


Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Michael Van Canneyt via Lazarus



On Fri, 18 May 2018, Anthony Walter via Lazarus wrote:


how-to instructions




Pretty neat ! Deceptively easy to do :)

Question: 
Where are the components you used, and where can I find the demo source code ?


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