dlang-community / drepl

A REPL for D
Boost Software License 1.0
78 stars 20 forks source link

Cannot read deimos/linenoise.d #68

Closed nikoskaragiannakis closed 6 years ago

nikoskaragiannakis commented 6 years ago

I am trying to create a dynamic library of drepl using autowrap, but when I run dub build I get this

src/console.d(8,8): Error: module linenoise is in file 'deimos/linenoise.d' which cannot be read
import path[0] = src/
import path[1] = ../../../.dub/packages/autowrap-0.0.3/autowrap/source/
import path[2] = ../../../.dub/packages/excel-d-0.3.7/excel-d/source/
import path[3] = ../../../.dub/packages/nogc-0.0.1/nogc/source/
import path[4] = ../../../.dub/packages/pyd-master/pyd/infrastructure/
import path[5] = ../../../.dub/packages/colorize-1.0.5/colorize/source
import path[6] = ../../../.dub/packages/libdparse-0.8.4/libdparse/src/
import path[7] = ../../../.dub/packages/stdx-allocator-2.77.1/stdx-allocator/source/
import path[8] = /usr/include/dmd/phobos
import path[9] = /usr/include/dmd/druntime/import
dmd failed with exit code 1.

Any idea what's going on here?

nikoskaragiannakis commented 6 years ago

My bad. Found was going on

wilzbach commented 6 years ago

Cool. Would you mind sharing what went wrong for posterity in case someone bumps into this in the future?

nikoskaragiannakis commented 6 years ago

Nothing important. I just forgot to add the linenoise dependancy and subConfiguration in the configuration I created for the wrapping.

The configuration that finally worked for me is

        {
            "name": "python35",
            "targetType": "dynamicLibrary",
            "dependencies": {
                "autowrap": ">0.0.2",
                "linenoise": "~>1.1.0"
            },
            "subConfigurations": {
                "autowrap": "python35",
                "linenoise": "vendored"
            }
        }