MrcSnm / redub

Alternative implementation of dub, speed and consistency oriented
https://code.dlang.org/packages/redub
MIT License
31 stars 7 forks source link

Problems building and other things #12

Closed Kapendev closed 5 months ago

Kapendev commented 5 months ago

I wanted to try redub, but I had some problems with it. Some info about my setup:

So:

  1. I cloned the repo and run dub -b debug-release --compiler=ldc2 but I get this error message: Unknown build type for redub: 'debug-release'. Building with dub build seems to work.
  2. I can build redub with redub but I can't build my project with redub. I get this error message: core.exception.RangeError@/home/alex/Documents/redub/source/redub/parsers/environment.d(259): Range violation. My project depends on one library. I also put that library inside my project's source folder but I had the same error.

For some extra info about 2, the library that I use with my project is this one.

MrcSnm commented 5 months ago

Oh sorry the first flag I put it wrong. It should be release-debug instead of debug-release .

I'll try to get into point 2 asap too

MrcSnm commented 5 months ago

I wasn't able to reproduce this issue on Windows. This looks like very strange. I'll have to take a look in unbuntu

MrcSnm commented 5 months ago

redub's redub/source/redub/parsers/environment.d(259) with imported!"std.stdio".writeln("Return: ", ret, " [Start: ", outStart, "] Source: ", str, " [Start: ", srcStart, "]");, build it and test against your project then send me what it shows?

MrcSnm commented 5 months ago

Fixed:

The problem was that the parser was failing in some situations when trying to escape $.

Test Case Added:

    assert(parseStringWithEnvironment("$$ORIGIN") == "$ORIGIN");