Giter Club home page Giter Club logo

dcd.snap's Introduction

dcd.snap

This project defines a snap package for DCD, an auto-complete program for the D programming language. It is an 'external' snap, meaning that it downloads and builds the source from the official DCD git repo. For more information on DCD, see: https://github.com/dlang-community/DCD

The D programming language is a systems programming language with C-like syntax and static typing. It combines efficiency, control and modelling power with safety and programmer productivity. For more information on the D language, see: https://dlang.org/

Snap packages are designed to provide secure, containerized applications that are appropriately sandboxed away from the rest of the system they are running on. For more information on snap packages, see: http://snapcraft.io/

Building

On Ubuntu 16.04 or higher with snapcraft installed (sudo apt install snapcraft):

git clone https://github.com/dlang-snaps/dcd.snap.git
cd dcd.snap
snapcraft

To ensure a clean build, install lxd (sudo apt install lxd), configure its network settings, and then:

snapcraft cleanbuild

Installing

DCD has been packaged as a classic snap, so installing it requires the --classic flag to be used in order to grant the necessary confinement permissions. Self-built snaps are unsigned and therefore also require the --dangerous flag in order to install them:

sudo snap install --classic --dangerous dcd_VERSION_amd64.snap

replacing VERSION as appropriate.

For more information on classic confinement, see: https://insights.ubuntu.com/2017/01/09/how-to-snap-introducing-classic-confinement/

Configuration

To make the DCD server work properly, you must manually specify the import directories paths for D module imports, this snap does not do this automatically to allow the user to use dmd with any druntime + phobos configuration.

If you simply want to configure DCD to work with our DMD package (snapcraft.io/dmd) you just need to run this command which will enable the import paths of the DMD snap package in the current user:

echo -e "/snap/dmd/current/import/druntime\n/snap/dmd/current/import/phobos" > ~/.config/dcd/dcd.conf

For other dmd, druntime and phobos providers, consult their documentation to find out their import path.

More information is available on the official DCD documentation: https://github.com/dlang-community/DCD#configuration-files

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.