Code Monkey home page Code Monkey logo

Comments (20)

davewood avatar davewood commented on July 4, 2024

hi, any updates on this?

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

Sorry, I lost momentum. I can reproduce it, though.

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

Let me write notes here.
It's the path parser's fault, which creates the path steps. In the first phase it correctly creates them:

$VAR1 = [
          bless( [
                   'ROOT',
                   ''
                 ], 'Data::DPath::Step' ),
          bless( [
                   'KEY',
                   'details',
                   '[ value eq \'foo bar baz\' ]'
                 ], 'Data::DPath::Step' )
        ];

In the contained-newline case it only searches for the root node:

$VAR1 = [
          bless( [
                   'ROOT',
                   ''
                 ], 'Data::DPath::Step' )
        ];

Let me think about it...

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

Missing regex options /s to handle multilines when parsing [filters] in lib/Data/DPath/Path.pm. Now I just need to recover from the merge mess I created in this repository to apply this fix.

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

Please check if v0.58 fixes this for you, too. If not, please reopen this issue. Thanks for reporting and especially preparing the minimalistic example code.

from data-dpath.

davewood avatar davewood commented on July 4, 2024

hi and thanks for the patch, please see my test case and tell me what you think about the behaviour im testing.

from data-dpath.

davewood avatar davewood commented on July 4, 2024

im not sure this is the correct behaviour. the path says that we are looking for a value that includes a newline. your fixed code however returns something even though a node with such a value does not exist. the test should make this clear.

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

Thanks. I already extended the tests for the corresponding fix in t/regressions.t, see 52d9b6a - but we can certainly make it a dedicated test if you prefer.

from data-dpath.

davewood avatar davewood commented on July 4, 2024

oh, my bad, you can do however you want with the PR.

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

Ah, you mean the fix is not yet correct and your test shows that better? I will have a deeper look later then.

from data-dpath.

davewood avatar davewood commented on July 4, 2024

exactly.

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

Ok, I will look at it later. :-)

from data-dpath.

davewood avatar davewood commented on July 4, 2024

any news?

from data-dpath.

davewood avatar davewood commented on July 4, 2024

sorry for being persistent but since the ticket is closed I am afraif you will loose track unless I keep bumping this up.

from data-dpath.

davewood avatar davewood commented on July 4, 2024

hi, just curious, if anything happend in the last months.

from data-dpath.

davewood avatar davewood commented on July 4, 2024

still curious over here. :)

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

...and still exhausted here, sorry, I simply don't have a contiguous block of spare time hours available to focus and concentrate.

from data-dpath.

davewood avatar davewood commented on July 4, 2024

thats okay, hope you are doing well. :)

from data-dpath.

davewood avatar davewood commented on July 4, 2024

Is there anything I can do to help out?

from data-dpath.

renormalist avatar renormalist commented on July 4, 2024

You could simply doing the actual debugging on your own. Your distance to the code is not greater than mine after the years. I ran out of energy. In that particular case I even exhaust by understanding which part of the string escaping in the unittest is about escaping whitespace to which layer of the problem. I only have a huge black dontcare in me and even tend to simply declare that dpath is just made for non-newline-problems only. Sorry.

from data-dpath.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.