Difference between revisions of "Mono-D"
Line 88: | Line 88: | ||
* Github: [https://github.com/aBothe/D_Parser/issues Code completion issues] or [https://github.com/aBothe/Mono-D/issues General issues] | * Github: [https://github.com/aBothe/D_Parser/issues Code completion issues] or [https://github.com/aBothe/Mono-D/issues General issues] | ||
− | + | == Support == | |
+ | |||
+ | If you like Mono-D you may [http://mono-d.alexanderbothe.com/donate.html support Alex] for letting Mono-D become better :-) |
Revision as of 13:18, 11 July 2014
Mono-D brings D support to the cross-platform XamarinStudio/MonoDevelop IDE.
Contents
Features
- D Project management
- Managing files & resources
- Managing inter-project dependencies in a solution
- Build projects and prepare them for being deployed
- Ad hoc dub support. Despite the dub.json file not being a native format that is supported by the Mono/.Net facilities, there's still a bunch of things wrapped for being used within MD.
- Read-only opening dub.json files as projects
- Resolving package dependencies and subpackages and opening all of them as projects, too
- Build support
- ...
- Basic Visual-D project format support
- dmd, gdc, ldc2, rdmd, dub, make toolchain support
- Rich editing & refactoring facilities:
- Halfway™ decent auto code completion including pre-compile time
- template deduction & evaluation,
- mixins & mixin expression,
- expression value as well as
- compiler traits,
- op overload evaluation & deduction that is used to provide extremely more accurate information about which symbols could be accessed or typed in a particular code context
- Obligatory things like definition lookup,
- Code symbol reference highlighting,
- Semantic type identifer highlighting,
- Optional diff-based syntax highlighting,
- Diet template file highlighting.
- Mixin expression pre-compilation to see what a mixin will look like when being compiled
- Code declaration foldings
- User-generated foldings via
- Halfway™ decent auto code completion including pre-compile time
//region My Region
int myCodes;
//endregion
- Obligatory AST outlining for easy access of stuff declared in a D source file
- Intelligent code indentation
- Basic code formatting support which reorganizes all kinds of code elements, not only line beginnings
- Invoking a project's unit tests via pressing Ctrl+T
- ...
How to install Mono-D
Install MonoDevelop
On Windows/OSX
- Go to [1], download & install the latest MonoDevelop setup. Note that there's a gtk# package required to be installed as well.
- Open XS. Open the Help menu and 'Check for updates'.
- Select the Alpha channel to be used for searching updates.
Generally it's recommended to stick to the latest 'Alpha' version of XS because only then, you'll get the very latest & most recent changes & bug fixes.
On Linux
- Check your distro's software manager for any recent MonoDevelop version >v5.0 and try install that one.
MD >5.0 is mandatory due to massive API changes etc.! - If no proper build hasn't been uploaded, go to [2], download the .xz matching your OS architecture.
- Follow the instructions given in the readme.txt in order to deploy everything properly.
The archives are maintained by me, so please check the site regularly (like 1-2 times per month) for updates!
Install Mono-D
- Make sure you've got dmd, optionally dub installed
Either via downloading the zip distributables or your linux distro's package manager - Launch MD
- Click on the Tools => Addin manager menu
- In the Gallery tab, hit the Refresh-button
- If there's an exception that some .mrep files could not be found,
- Open the repository drop-down menu
- click the Manage Repositories entry
- Add http://addins.monodevelop.com/Stable/Win32/5.0 (or, if it still fails: http://mono-d.alexanderbothe.com/repo)
- In the Language Bindings group, install the D Language Binding
Mono-D is now installed and theoretically ready to be used! - Open Tools => Options
You'll find all D-related options in the Environment => D tree item. - If the dmd executable cannot be found via $PATH or %PATH, adjust the compiler's bin path in the Compiler Toolchains settings to the absolute path.
This also counts for OSX-Installations where XS is somehow not able to pass /usr/local/bin as default PATH entry..so just set the bin path over there as well! - Do the same for dub or the Win32 ResourceCompiler.zip.
- In order to get the code completion running for phobos etc., activate the Includes tab in your compiler's settings and add the following lines (which you may fit to your machine's setup, of course)<pre>
D:\Programs\D\dmd2\src\druntime\import
D:\Programs\D\dmd2\src\phobos
</pre>
on Windows or the other respective paths for Linux:/usr/sha/include/dlang
or/usr/include/dmd
or for OSX:/usr/share/dmd/src
You can of course add custom globally used libraries as well.
Note that it's not sufficient to just reference the ...\dmd2\src\-path alone -- the \druntime\src\-folder will cause trouble otherwise! - Create or open a D project.
- Enjoy coding!
- Concerning updating Mono-D on Windows:
Before installing any new version of Mono-D, make sure you never opened any D project since the last start of XS or MD.
Otherwise, you'll get some installation errors etc which are caused by the fact that dlls cannot be overwritten once being loaded.
Changelog
See http://mono-d.alexanderbothe.com/changelog.html
Feedback
- IRC: #d.mono-d on freenode.
- Github: Code completion issues or General issues
Support
If you like Mono-D you may support Alex for letting Mono-D become better :-)