RejectedSoftware Forums

Sign up

dub 1.6.0 gets into indefinite loop

Hi, DUB gets into an infinite while loop for dub clean --all-packages, dub build, dub upgrade, etc. I've uploaded the strace here: https://drive.google.com/open?id=1GgLIw1dCCpY0STsfwmlaivAgXDLERO96

My dub.json looks like this:

{
    "name": "aimes-test-client",
    "authors": [
        "Arun Chandrasekaran"
    ],
    "description": "Test application for AIM Edge Service.",
    "copyright": "2017 © Arun Chandrasekaran",
    "license": "proprietary",
    "dependencies" : {
        "darg": "~>0.0.4",
        "dproto": "~>2.1.3",
        "painlessjson": "~>1.3.8",
        "requests": "~>0.6.0"
    },

    "stringImportPaths": ["../proto"]
}

dub.selection.json:

{
    "fileVersion": 1,
    "versions": {
        "darg": "0.0.4",
        "dproto": "2.1.3",
        "dunit": "1.0.14",
        "painlessjson": "1.3.8",
        "painlesstraits": "0.3.0",
        "botan": "1.12.9",
        "botan-math": "1.0.3",
        "diet-ng": "1.4.3",
        "eventcore": "0.8.27",
        "libasync": "0.8.3",
        "libevent": "2.0.2+2.0.16",
        "memutils": "0.4.9",
        "openssl": "1.1.6+1.0.1g",
        "requests": "0.6.0",
        "taggedalgebraic": "0.10.8",
        "vibe-core": "1.3.0",
        "vibe-d": "0.8.2"
    }
}

Is there anyway to solve this?

Re: dub 1.6.0 gets into indefinite loop

Apparently the issue was due to wrong code auto req = HTTPRequests; instead of auto req = HTTPRequest();

Not sure if the bug is in ikod's dlang-requests or in dub.

Re: dub 1.6.0 gets into indefinite loop

On Sat, 23 Dec 2017 02:42:34 GMT, Arun Chandrasekaran wrote:

Apparently the issue was due to wrong code auto req = HTTPRequests; instead of auto req = HTTPRequest();

Not sure if the bug is in ikod's dlang-requests or in dub.

I've created a project to reproduce this

https://github.com/carun/dub-error

Reproduced with dub master and LDC 1.7.0