Giter Site home page Giter Site logo

Comments (4)

DilumAluthge avatar DilumAluthge commented on July 23, 2024

Praise be to PkgEval

from mirrorupdater.jl.

DilumAluthge avatar DilumAluthge commented on July 23, 2024

It looks like I'm doing something like

my_match = match(my_regex, x)
y = some_function(first(my_match.captures))

What is the appropriate way for me to get the first capture from the match?

from mirrorupdater.jl.

KristofferC avatar KristofferC commented on July 23, 2024

Actually, sorry. The error came from within HTTP.jl:

ERROR: LoadError: LoadError: type Regex has no field match_data
Stacktrace:
 [1] getproperty(::Any, ::Symbol) at ./Base.jl:20
 [2] exec(::Regex, ::String, ::Int64) at /root/.julia/packages/HTTP/YjRCz/src/parseutils.jl:4 (repeats 2 times)
 [3] #parse_uri_reference#6(::Bool, ::typeof(HTTP.URIs.parse_uri_reference), ::String) at /root/.julia/packages/HTTP/YjRCz/src/URIs.jl:126
 [4] parse_uri_reference(::String) at /root/.julia/packages/HTTP/YjRCz/src/URIs.jl:126
 [5] HTTP.URIs.URI(::String) at /root/.julia/packages/HTTP/YjRCz/src/URIs.jl:144
 [6] top-level scope at /root/.julia/packages/GitHub/Y0gpt/src/utils/requests.jl:15
 [7] include at ./boot.jl:328 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1105
 [9] include at ./Base.jl:31 [inlined]
 [10] include(::String) at /root/.julia/packages/GitHub/Y0gpt/src/GitHub.jl:1
 [11] top-level scope at /root/.julia/packages/GitHub/Y0gpt/src/GitHub.jl:35
 [12] include at ./boot.jl:328 [inlined]
 [13] include_relative(::Module, ::String) at ./loading.jl:1105
 [14] include(::Module, ::String) at ./Base.jl:31
 [15] top-level scope at none:2
 [16] eval at ./boot.jl:330 [inlined]
 [17] eval(::Expr) at ./client.jl:433
 [18] top-level scope at ./none:3
in expression starting at /root/.julia/packages/GitHub/Y0gpt/src/utils/requests.jl:15
in expression starting at /root/.julia/packages/GitHub/Y0gpt/src/GitHub.jl:35

So likely nothing to do here.

from mirrorupdater.jl.

KristofferC avatar KristofferC commented on July 23, 2024

It is fixed in HTTP but you need HTTP.jl 0.8 which is not compatible with this package.

from mirrorupdater.jl.

Related Issues (18)

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.