Description

Cross platform D language IDE based on dlangui library

Package Information

Version0.7.30 (2017-Apr-11)
Homepage https://github.com/buggins/dlangide
Repository https://github.com/buggins/dlangide
LicenseBoost
AuthorsVadim Lopatin
Registered byVadim Lopatin
Dependencies

dcd

dlangui

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

Gitter Build Status PayPayl donate button

WTF?! (What The Fork)

Now you can set dmd includes paths (for correct work with DCD) in workspace settings file (newworkspace.dlangidews) <pre> example: {

"name" : "newworkspace",
"description" : null,
"projects" : {
        "newproject" : "newproject/dub.json"<br>
},
"includePath" : [
        "/usr/include/dlang/dmd/"
]

} </pre> PS.

Sorry about bad code. Please correct me.

Dlang IDE

Cross platform D language IDE written using DlangUI library.

Currently supported features:

  • Uses DUB (dub.json or dub.sdl) project format
  • Shows tree with project source files
  • Can open and edit source files from project or file system in multi-tab editor
  • Build and run project with DUB
  • Build log highlight and navigation to place of error or warning by clicking on log line (contributed by Extrawurst)
  • DUB dependencies update
  • DUB package configuration selection (contributed by NCrashed)
  • Dependency projects are shown in workspace tree
  • New project wizard
  • Toolchain settings for DMD, LDC, GDC
  • Project specific settings
  • Basic debugger support using GDB (work in progress)

Source editor features:

  • D language source code, json, dml syntax highlight
  • Indent / unindent text with Tab and Shift+Tab or Ctrl+[ and Ctrl+]
  • Toggle line or block comments by Ctrl+/ and Ctrl+Shift+/
  • D source code autocompletion by Ctrl+Space or Ctrl+Shift+G (using DCD)
  • D source code Go To Definition by Ctrl+G or F12 (using DCD)
  • D source Doc comments display on mouse hover (using DCD)
  • D source code Smart Indents
  • Select word by mouse double click

screenshot

GitHub page: https://github.com/buggins/dlangide

Wiki: https://github.com/buggins/dlangide/wiki

DlangUI project GitHub page: https://github.com/buggins/dlangui

Mago debugger GitHub page: https://github.com/rainers/mago

Build tools

DlangIDE uses DUB as build tool, and its dub.json or dub.sdl as project file format. You can select DMD, LDC or GDC compiler toolchain.

DCD integration

Symbol lookup and autocompletion is using DCD (D completion daemon).

Hans-Albert Maritz (Freakazo) implementated DCD integration using DCD client/server.

Keywan Ghadami improved it to use DCD as a library.

Now DCD is embedded into DlangIDE, and no separate executables are needed.

Debugger support

  • Windows: use mago-mi debugger (https://github.com/buggins/dlangide/blob/master/libs/windows/x86/mago-mi.exe) or GDB
  • Linux: use GDB or lldb-mi debugger
  • OSX: use GDB or LLDBMI2 debugger

Building DlangIDE

Build and run with DUB:

git clone https://github.com/buggins/dlangide.git
cd dlangide
dub run

If you see build errors, try to upgrade dependencies:

dub clean-caches

dub upgrade --force-remove dub build --force

Needs DMD 2.066.1 or newer to build.

HINT: Try to open sample project Tetris, from workspaces/tetris with DlangIDE.

To develop in VisualD together with DlangUI, put this project on the same level as dlangui repository, and its dependencies.

Keyboard shortcut settings

Keyboard shortcuts settings support is added.

For linux and macos settings are placed in file

~/.dlangide/shortcuts.json

For Windows, in directory like

C:\Users\user\AppData\Roaming\.dlangide\shortcuts.json

If no such file exists, it's being created on DlangIDE start, filling with default values to simplify configuration.

Just edit its content to redefine some key bindings.

File format is simple and intuitive. Example:

{
    "EditorActions.Copy": "Ctrl+C",
    "EditorActions.Paste": "Ctrl+V",
    "EditorActions.Cut": "Ctrl+X",
    "EditorActions.Undo": "Ctrl+Z",
    "EditorActions.Redo": [
        "Ctrl+Y",
        "Ctrl+Shift+Z"
    ],
    "EditorActions.Indent": [
        "Tab",
        "Ctrl+]"
    ],
    "EditorActions.Unindent": [
        "Shift+Tab",
        "Ctrl+["
    ],
    "EditorActions.ToggleLineComment": "Ctrl+/",
    "EditorActions.ToggleBlockComment": "Ctrl+Shift+/"
}


Development environment setup

Howto hack DlangIDE.

For Windows, install MS Visual Studio (e.g. Community 2013) + VisualD plugin

Install GIT, DUB, DMD.

For Linux and OSX, install MonoDevelop + Mono-D plugin.

For Linux / OSX, additionally install libSDL2 and X11 development packages.

Create some folder to place sources, e.g. ~/src/d/

Clone DlangUI and DlangIDE repositories into source folder

git clone --recursive https://github.com/buggins/dlangui.git
git clone --recursive https://github.com/buggins/dlangide.git

Windows: open solution file with Visual-D

dlangui/dlangui-msvc.sln

Linux: open solution file with Mono-D

dlangide/dlangide-monod-linux.sln

OSX: open solution file with Mono-D

dlangide/dlangide-monod-osx.sln

Choose dlangide as startup project.

Coding style: https://github.com/buggins/dlangui/blob/master/CODING_STYLE.md

Available versions

0.7.30 0.7.29 0.7.28 0.7.27 0.7.26 0.7.25 0.7.24 0.7.23 0.7.22 0.7.21 0.7.20 0.7.19 0.7.18 0.7.17 0.7.16 0.7.15 0.7.14 0.7.13 0.7.12 0.7.11 0.7.10 0.7.9 0.7.8 0.7.7 0.7.6 0.7.5 0.7.4 0.7.3 0.7.2 0.7.1 0.6.19 0.6.18 0.6.17 0.6.16 0.6.15 0.6.14 0.6.13 0.6.12 0.6.11 0.6.10 0.6.9 0.6.8 0.6.7 0.6.6 0.6.5 0.6.4 0.6.3 0.6.2 0.6.1 0.5.74 0.5.73 0.5.72 0.5.71 0.5.70 0.5.69 0.5.68 0.5.67 0.5.66 0.5.65 0.5.64 0.5.63 0.5.62 0.5.61 0.5.60 0.5.59 0.5.58 0.5.57 0.5.56 0.5.55 0.5.54 0.5.53 0.5.52 0.5.51 0.5.50 0.5.49 0.5.48 0.5.47 0.5.46 0.5.45 0.5.44 0.5.43 0.5.42 0.5.41 0.5.40 0.5.39 0.5.38 0.5.37 0.5.36 0.5.35 0.5.34 0.5.33 0.5.32 0.5.31 0.5.30 0.5.29 0.5.28 0.5.27 0.5.26 0.5.25 ~master