spectest fail

2015-06-20 Thread mt1957
l.s. Just to mention... Spectest 'S17-supply/start.t' fails on my system. $ uname -a Linux h03-fedora 3.19.8-100.fc20.x86_64 #1 SMP Tue May 12 17:08:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux $ perl6 -v This is perl6 version 2015.06-22-g70c5bc5 built on MoarVM version 2015.06-16-g46e941c

Re: [perl #125400] Fwd: problem pushing pairs onto an array of pairs

2015-06-15 Thread mt1957
: a = 42 # a Pair :a(42) # a named parameter I could also see going as far as making a named parameter an Enum, or a(nother) subclass of it. Liz === Begin forwarded message: Date: 13 Jun 2015 04:25:43 GMT-6 From: mt1957 mt1...@gmail.com To: perl6 users perl6-us...@perl.org

Re: Problem documentation and/or compiler

2015-06-18 Thread mt1957
Sorry I've been too fast, It's in the doc. However, why can't I assign it to a Buf with automatic coercion from utf8 to Buf which is more generic? Marcel On 06/18/2015 11:12 AM, mt1957 wrote: L.s. At http://doc.perl6.org/type/Str#method_encode it says that string encoding returns a Buf

Problem documentation and/or compiler

2015-06-18 Thread mt1957
L.s. At http://doc.perl6.org/type/Str#method_encode it says that string encoding returns a Buf. It returns a utf8 instead see repl session below. my Str $s = 'abcdef'; abcdef my Buf $b = $s.encode; Type check failed in assignment to '$b'; expected 'Buf' but got 'utf8' in block unit at

Bug returning objects directly from called methods using some form of named arguments

2015-10-26 Thread mt1957
Two samples of code for which the problem is closely related The first problem; return MongoDB::Cursor.new( collection => self, OP_REPLY=> $OP_REPLY, criteria=> %@criteria ); Generates the error; 'Default constructor for

Problem detecting identifiers in some grammar rules

2015-09-02 Thread mt1957
Problem is found in the following piece of code; 3 grammar Grammar { 4rule TOP { <.sentence>+ } 5rule sentence { ('c1'|'c2') '=' <+ dutch-chars - [aeiou]>+ } 6token dutch-chars { <[a..z]> } 7 } Grammar.parse('c1 = sdwbh') ~~ Match || say 'Matched dutch characters'; Error message

Re: [perl #126212] [BUG] SEGV on 16-bit-sized arg insertion

2015-09-29 Thread mt1957
On 09/28/2015 06:52 PM, Larry Wall (via RT) wrote: # New Ticket Created by Larry Wall # Please include the string: [perl #126212] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126212 > 09:24 < TimToady> m: say 1, |(2 xx

Re: Bug creating objects using some form of named arguments

2015-09-29 Thread mt1957
The trouble I get at the moment is an error generared by the following piece of code return MongoDB::Cursor.new( collection => self, OP_REPLY=> $OP_REPLY, criteria=> %@criteria ); It generates the error; Default constructor for

Re: Bug creating objects using some form of named arguments

2015-09-28 Thread mt1957
On 09/28/2015 07:16 PM, mt1957 wrote: False alarm, had a typing error in the code so, mea culpa poli :-[ . Hi Below a set of tests where all object creates are done well except for the last one using a sub or method returning the created object. class X { has Str $.a; } my X $x .= new

Bug creating objects using some form of named arguments

2015-09-28 Thread mt1957
Hi Below a set of tests where all object creates are done well except for the last one using a sub or method returning the created object. class X { has Str $.a; } my X $x .= new(a => 'abc'); say "\$x = {$x.perl}"; $x .= new(:a('abc')); say "\$x = {$x.perl}"; $x .= new :a('abc'); say

type mistakes creating unhelpful error messages

2015-10-03 Thread mt1957
In great need of proper message ... I have a bad habit of writing defined/undefined(:D or :U) constraint after the variable instead of after the type before the variable in a call signature(Don't ask why ;-|). The error given is Cannot invoke this object Perl is not able to parse the

error message about here doc

2015-09-28 Thread mt1957
Using a heredoc and by accident adding '#' unindented, generated the following error; Asked to remove 2 spaces, but the shortest indent is 0 spaces in any trim_heredoc at gen/moar/m-Perl6-Actions.nqp:78 The here doc used was; spurt 'Sandbox/m-auth.conf', $config ~ qq:to/EOCNF/; security:

Misunderstanding when usng elems on undefined Array

2015-09-25 Thread mt1957
Found the following using Array; > my Array $a; > say $a.elems; 1 > $a.push(1) [1] > say $a.perl [1] > say $a.elems 1 > my Array $a .= new; [] > say $a.elems; 0 Seems that an uninitialized Array reports one element but pushing values on the array will define the properly. In this case it is

Re: [perl #126688] bug detecting circular dependencies

2015-12-31 Thread mt1957
On 12/31/2015 06:58 AM, Dave Rolsky via RT wrote: I can confirm that this is still happening as of today's rakudo. It seems like an important bug to fix, but maybe more importantly, how are we supposed to handle circular deps? Consider a pair of classes, Tree and Node, which both need to

Re: [perl #127107] "duplicate definition of symbol grammar" using Grammar::Tracer in .pm6 file

2015-12-31 Thread mt1957
On 12/31/2015 01:47 PM, Faye (via RT) wrote: # New Ticket Created by Faye # Please include the string: [perl #127107] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127107 > $ cat Foo.pm6 use Grammar::Tracer; $ perl6 -I. -e

lack of info in error message

2015-12-30 Thread mt1957
I get the following error; perl6 t/070-run-command.t ===SORRY!=== P6M Merging GLOBAL symbols failed: duplicate definition of symbol C-MD5-SIZE Searching for the symbol gave me exactly one location where it was defined. So the error should be more explicit in where it was first found and

Re: [perl #127247] [BUG] Circular dependancy lock rakudo in an infinite loop

2016-01-12 Thread mt1957
On 01/12/2016 02:26 PM, Sylvain Colinet (via RT) wrote: # New Ticket Created by Sylvain Colinet # Please include the string: [perl #127247] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127247 > Using

Re: [perl #128289] localhost in IO::Socket::INET

2016-05-29 Thread mt1957
On 05/29/2016 07:47 PM, Brandon Allbery via RT wrote: getent hosts > getent hosts on faulty system 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 127.0.0.1 localhost localhost.localdomain localhost6 localhost6.localdomain6 On ok system. It differs

Re: [perl #127340] no line number on error

2016-01-21 Thread mt1957
On 01/21/2016 06:35 PM, mt1957 (via RT) wrote: # New Ticket Created by mt1957 # Please include the string: [perl #127340] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127340 > L.s. Got this error; Internal error: zer

Re: [perl #127340] no line number on error

2016-01-23 Thread mt1957
On 01/21/2016 06:44 PM, mt1957 wrote: On 01/21/2016 06:35 PM, mt1957 (via RT) wrote: # New Ticket Created by mt1957 # Please include the string: [perl #127340] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127340 >

Re: [perl #127340] no line number on error

2016-01-23 Thread mt1957
On 01/23/2016 06:04 PM, jn...@jnthn.net via RT wrote: On Sat Jan 23 07:08:17 2016, mt1...@gmail.com wrote: On 01/21/2016 06:44 PM, mt1957 wrote: On 01/21/2016 06:35 PM, mt1957 (via RT) wrote: # New Ticket Created by mt1957 # Please include the string: [perl #127340] # in the subject line

Re: [perl #127339] problem using Duration

2016-01-22 Thread mt1957
On 01/22/2016 01:52 PM, Sam S. via RT wrote: This is the root of the problem: ➜ say ($d + 2).WHAT; (Duration) ➜ say ($d * 2).WHAT' (Num) The behavior of += and *= is just a consequence of that. Then the question remains why the multiplication results in Num if it multiplies

Re: [perl #128036] Bug filling hash using $_

2016-04-30 Thread mt1957
More simplified code producing the same error; $_ = 'some message'; my Hash $h = { f1 => $_, } greetings Marcel # New Ticket Created by mt1957 # Please include the string: [perl #128036] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Tic

Re: [perl #128156] dependency errors

2016-05-24 Thread mt1957
Hi, Another symptom from the same bug. After modifying a sub module I get an error like the following; Type 'Semi-xml::Sxml' is not declared at /home/marcel/Languages/Perl6/Projects/Semi-xml/t/108-xml.t:43 --> my Semi-xml::Sxml⏏ $x .= new; Malformed my at

Re: [perl #128628] problem using semaphore with many threads

2016-07-28 Thread mt1957
On 07/28/2016 03:00 PM, Jonathan Worthington via RT wrote: On Fri, Jul 22, 2016 at 10:46 AM, mt1957 via RT < perl6-bugs-follo...@perl.org> wrote: I'm afraid the test I've created still hangs in rakudo version 2016.07.1-37-g60f256d built on MoarVM version 2016.07-3-gc01472d implementing

Re: [perl #128628] problem using semaphore with many threads

2016-07-24 Thread mt1957
On 07/21/2016 02:52 PM, jn...@jnthn.net via RT wrote: On Fri Jul 15 12:32:30 2016, mt1...@gmail.com wrote: With Rakudo version 2016.06-234-g0189851 built on MoarVM version 2016.06-9-g8fc21d5 implementing Perl 6.c on a Asus laptop running Fedora 23 I see the following happen. Running the code

Re: [perl #128655] Mixup in candidates through optimizer

2016-07-18 Thread mt1957
Hi Elizabeth, Need to mention that there was a ticket #128624 created 'Buf initialization error'. Regards, Marcel Timmerman

Re: [perl #127339] problem using Duration

2016-08-07 Thread mt1957
On 08/06/2016 05:39 AM, Zoffix Znet via RT wrote: Then the question remains why the multiplication results in Num if it multiplies with an integer It's merely a matter that such things require addition of three extra operators per operation (e.g. Duration * Duration, Duration * Num, Num *

Re: [perl #127340] no line number on error

2016-08-07 Thread mt1957
On 08/06/2016 05:22 AM, Zoffix Znet via RT wrote: Hi, Are you able to see if the issue is still there with the latest and greatest Rakudo? I haven't seen this anymore in the code while testing. There have been so many changes in the perl6 compiler on threads since the this ticket is

Re: [perl #130603] Test (module) fails while all tests return ok

2017-01-21 Thread mt1957
Thanks very much for the explanation, Tried the following to get the Test/TAP crying... use Test; is 1, 1, 'test 1'; say "ok 1 - pestering 1"; say "nok 5 - pestering 2"; done-testing; It then generates ok 1 - test 1 ok 1 - pestering 1 nok 5 - pestering 2 1..1 Failed -1/1 subtests Test

Re: [perl #130603] Test (module) fails while all tests return ok

2017-01-21 Thread mt1957
test should be is 1, 1, 'test 1'; say "ok 1 - pestering 1"; say "not ok 5 - pestering 2"; resulting in ok 1 - test 1 ok 1 - pestering 1 not ok 5 - pestering 2 1..1 Failed -1/1 subtests Test Summary Report --- confuse-TAP.t (Wstat: 0 Tests: 3 Failed: 1) Failed test: 5

Re: [perl #130603] Test (module) fails while all tests return ok

2017-01-20 Thread mt1957
Hi Will, How can it happen that a test gets hurt in this way? If I know this I could better search for the problem. Regards, Marcel On 01/20/2017 05:24 PM, Will Coleda via RT wrote: On Fri, 20 Jan 2017 06:09:00 -0800, mt1...@gmail.com wrote: Hi, Since using Log::Async in MongoDB I get

Re: Unexpected feature

2016-10-18 Thread mt1957
On 10/17/2016 11:34 PM, Parrot Raiser wrote: I just downloaded the 2016.10 RC (into a different directory than 2016.07, in case it broke something). Testing the REPL, scrolling back through the commands continued back into the history of previous sessions with the older version. (I.e, they

Re: [perl #130114] IO::Path.resolve on windows prefixed with \

2016-11-17 Thread mt1957
On 11/16/2016 09:17 PM, Zoffix Znet via RT wrote: On Wed, 16 Nov 2016 03:01:30 -0800, mt1...@gmail.com wrote: Hi, On windows the path created by method resolve on windows is prefixed with a '\' which is wrong e.g. in project config-datalang-refine on appveyor the statement say 'Resolve:

Re: [perl #129212] problem mixing in role with multi builds

2016-10-17 Thread mt1957
Hi, Revisiting the problem using rakudo version 2016.10-31-g6ed3a68 built on MoarVM version 2016.10 implementing Perl 6.c. The issue still exist but tried to rewrite things to get it working role RR1 { submethod BUILD ( Int :$i ) { say $i // 'No i'; } } role RR2 { submethod BUILD ( Str

Re: [perl #130338] perl6 changes breaking code

2016-12-14 Thread mt1957
Hi, How did you build your Perl 6? That version number looks suspicious. You say you're on 2016.11-238-g2f502b4, but the current HEAD/nom is 2016.11-226-g1d46004, 12 commits fewer than yours. The most obvious answer is you're in possession of a time machine and are reporting bugs from the

Re: [perl #130338] perl6 changes breaking code

2016-12-14 Thread mt1957
Hi, I've rebuild rakudo from the ground up. Version I get now is 2016.11-236-g7b09bee built on MoarVM version 2016.11-41-gd2139b5 which looks better now. However, problem still exist. Can do for now with the unit package line before all use statements.

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957
I understand that the symbols must be used in the same block as the require statement. There is then still a problem, namely the difference between linux and windows. In the mean time I will try to get the usage of the functions to the block where it is required. Marcel On 17-04-17 19:12,

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957
On 17-04-17 19:12, Zoffix Znet via RT wrote: thanks for the link, I will look into it. The code for which the windows implementation fails but not on linux, can be found here; https://github.com/MARTIMM/config-datalang-refine/blob/master/lib/Config/DataLang/Refine.pm6 the requires are at

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957 via RT
I understand that the symbols must be used in the same block as the require statement. There is then still a problem, namely the difference between linux and windows. In the mean time I will try to get the usage of the functions to the block where it is required. Marcel > On 17-04-17 19:12,

Re: [perl #131168] problems when using require ::($m)

2017-04-17 Thread mt1957 via RT
On 17-04-17 19:12, Zoffix Znet via RT wrote: thanks for the link, I will look into it. The code for which the windows implementation fails but not on linux, can be found here; https://github.com/MARTIMM/config-datalang-refine/blob/master/lib/Config/DataLang/Refine.pm6 the requires are at line

Re: [perl #131780] [Double Free] Crash while running test

2017-07-22 Thread mt1957 via RT
On 07/22/2017 12:03 PM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > Is there any code snippet to reproduce it? > > The backtrace mentions mongo-perl6-driver… True, its in the mongodb driver project. The test is in the attachment and it crashed around line 98 or 99. Just finished the 'Find

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > say IntStr ~~ Str > say Str ~~ IntStr False

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: > sub s (Str() :$str) {say $str.WHAT}; s(:str<1>) # IntStr > sub s (Str :$str) {say $str.Str.WHAT}; s(:str<1>) # Str I think the last one is coerced explicitly. Btw I didn't know about 'Str() :$str' specification. What does

Re: [perl #131493] changed type of variable

2017-06-03 Thread mt1957 via RT
After some discussion I've understood that I have to do some homework and that this bug can be closed. Thanks Jnhtn and Araraloren for your help Regards, Marcel

Re: [perl #131242] Bug IO::Path method move

2017-05-02 Thread mt1957 via RT
Thanks very much Marcel

Re: [perl #132316] [Double Free] Crash while running program

2017-10-18 Thread mt1957 via RT
On 10/17/2017 09:27 PM, Timo Paulssen via RT wrote: > if you can, please re-compile MoarVM passing the same options that were > used before (you can find them on the first screenfuls of the Makefile > inside moarvm's source folder) to Configure.pl but also include > --debug=3 and --optimize=0.

Re: [perl #132316] [Double Free] Crash while running program

2017-10-18 Thread mt1957 via RT
@Aleks-Daniel Jakimenko-Aleksejev > How can I reproduce this issue? What code did you use? > Well, 1) Install a mongod server and start it up. Its address  might be 127.0.0.1:27017 which is the default for mongod servers. Servers can be downloaded using $ curl -O

Re: [perl #132316] [SEGV] Crash while running program (MongoDB module)

2017-10-28 Thread mt1957 via RT
Hi @Zoffix Znet Do you have any pointers or howto's to write thread-save code? Otherwise I'd remove all of the promises. It gave some other problems in the past. Regards Marcel > On Thu, 26 Oct 2017 06:04:51 -0700, alex.jakime...@gmail.com wrote: >> FWIW, when toasting I observed double free or