workspaced.com.dub

Members

Enums

ErrorType
enum ErrorType

Functions

archType
string archType()

Returns the current selected arch type

archTypes
string[] archTypes()

List all possible arch types for current set compiler

build
void build(AsyncCallback cb)

Asynchroniously builds the project WITHOUT OUTPUT. This is intended for linting code and showing build errors quickly inside the IDE.

buildType
string buildType()

Returns the current selected build type

buildTypes
string[] buildTypes()

Lists all build types defined in the package description AND the predefined ones from dub ("plain", "debug", "release", "release-debug", "release-nobounds", "unittest", "docs", "ddox", "profile", "profile-gc", "cov", "unittest-cov")

compiler
string compiler()

Returns the current selected compiler

configuration
string configuration()

Gets the current selected configuration

configurations
string[] configurations()

Lists all configurations defined in the package description

dependencies
auto dependencies()

Lists all dependencies. This will go through all dependencies and contain the dependencies of dependencies. You need to create a tree structure from this yourself.

fileImports
string[] fileImports()

Lists all import paths to files

imports
string[] imports()

Lists all import paths

name
string name()

Returns the project name

path
auto path()

Returns the project path

rootDependencies
auto rootDependencies()

Lists dependencies of the root package. This can be used as a base to create a tree structure.

setArchType
bool setArchType(JSONValue request)

Selects a new arch type and updates the import paths accordingly

setBuildType
bool setBuildType(JSONValue request)

Selects a new build type and updates the import paths accordingly

setCompiler
bool setCompiler(string compiler)

Selects a new compiler for building

setConfiguration
bool setConfiguration(string configuration)

Selects a new configuration and updates the import paths accordingly

startup
void startup(string dir, bool registerImportProvider = true, bool registerStringImportProvider = true, bool registerImportFilesProvider = false)

Load function for dub. Call with {"cmd": "load", "components": ["dub"]} This will start dub and load all import paths. All dub methods are used with "cmd": "dub" Note: This will block any incoming requests while loading.

stop
void stop()

Stops dub when called.

stringImports
string[] stringImports()

Lists all string import paths

update
void update(AsyncCallback callback)

Reloads the dub.json or dub.sdl file from the cwd

upgrade
void upgrade()

Calls dub upgrade

validateConfiguration
void validateConfiguration()

Throws if configuration is invalid, otherwise does nothing.

Structs

BuildIssue
struct BuildIssue

Returned by build

Meta