Skip to content

Some features seems not released in the current version #7

Description

@vanaur

So, simply by adding pry as a dependency on a virgin project, and using features that are present in the documentation and examples, dub indicates that these features are non-existent. I have identified the following combinators that were not recognized: delimited, optional, skipWs, slice, utfString and also the stk atom. There may be others.

Searching in the code and in the different versions, it seems that the combinators I quoted are not part of the old versions (under 0.3.2), but it is indeed this version that I included in the blank project...

Here is a simple example (by the way, the examples in the "example" folder don't work for me either):

import pry;
import std.stdio;

void main()
{
    alias S = SimpleStream!string;
    with(parsers!S)
    {
        auto p = delimited(range!('0', '9').rep, tk!',');
        auto s = "1,2,3".stream;
        string[] values;
        S.Error err;
        auto r = p.parse(s, values, err);
        writeln(r);
    }
}

With the following dub.sdl :

name "test"
dependency "pry" version="~>0.3.2"

By building, I get:

$ dub build
pry 0.3.2: target for configuration "library" is up to date.
test ~master: building configuration "application"...
source\app.d(9,12): Error: undefined identifier delimited

What's wrong with all this? How come I'm using the "newest" version of pry, but an older version of the library seems to be used instead? Perhaps a new version should be updated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions