I'd like to try developing D in IDE. I'd like to use a scriptlike
external library (available via dub). But whatever I do, it never make it work; Mono-D complains about the module scriptlike
that it "cannot be read".
When I try to open the file "dub.json" in Mono-D with the following contents:
"dependencies": {
"scriptlike": "~>0.9.4"
}
I get the error:
Exception while reading dub package /home/Adama-docs/Adam/linux/tmp/test-d/test-scriptlike/dub.json.
Additional text encountered after finished reading JSON content: :. Path '', line 1, position 14.
Additional text encountered after finished reading JSON content: :. Path '', line 1, position 14.
So the solution in Add package dependencies with Mono-d or Visual-d doesn't really work for me.
Even if Mono-D would open the dub.json
, it will still be only partial solution: what to do if I have an already existing project in Mono-D that is not based on any .json
file, and want to add an external library to it?
I guess I miss something fairly basic, but unfortunately I cannot google out anything constructive.
I use Ubuntu 14.04 64bit, dmd --version
: DMD64 D Compiler v2.068.2, MonoDevelop version 5.9.6 and D language bindings version 2.13.5.
mono-d does not support adding dependencies directly, if u use dub editing the dub.json is the only way right now. You could however create an issue for this on mono-d's github