Giter Club home page Giter Club logo

Comments (5)

eko234 avatar eko234 commented on June 13, 2024 1

This is a markdown package issue as far as I can tell, sorry to bother you, the config is extensible enough to work it around if you understand well your dependencies, thanks again for your work.

from hello_musl.

kaushalmodi avatar kaushalmodi commented on June 13, 2024

Normal regex works without that switch. Are you trying to enable support of unicode characters?

from hello_musl.

kaushalmodi avatar kaushalmodi commented on June 13, 2024

Also, can you provide a minimal example that fails if pcre is not compiled with that switch?

Thanks.

from hello_musl.

eko234 avatar eko234 commented on June 13, 2024

Hi again, look, my error is exactly the one the OP mentions in: crystal-lang/crystal#2662,
I'm using import regex and I'm using the following regexes to get the plain name of a file without path or extension

const b1 = re"/(.*)\.[^.]+$"
const b2 = re"\.tales/(.*)"

proc ListTales(): seq[string] =
  for file in walkFiles("./tales/*"):
    result.add file.replace(b1, "$1").replace(b2, "$1")

This might not be the best way to achieve this but it works, it seems that also the package markdown that uses regular expressions extensively fails if we don't compile pcre with said flag,

  if title in ListTales():
    readFile("./tales/" & title & ".md")
      .markdown

at least the use of markdown library should fail, I really couldn't test the other part, setting the flag in the config file solved
it.

from hello_musl.

eko234 avatar eko234 commented on June 13, 2024
when not defined(usePcreHeader):
  when hostOS == "windows":
    when defined(nimOldDlls):
      const pcreDll = "pcre.dll"
    elif defined(cpu64):
      const pcreDll = "pcre64.dll"
    else:
      const pcreDll = "pcre32.dll"
  elif hostOS == "macosx":
    const pcreDll = "libpcre(.3|.1|).dylib"
  else:
    const pcreDll = "libpcre.so(.3|.1|)"
  {.push dynlib: pcreDll.}
else:
  {.push header: "<pcre.h>".}

Upon closer inspection I think it might be due to the markdown package, this is found in the package that uses pcre.

from hello_musl.

Related Issues (6)

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.