Short demo of DCD

John Colvin john.loughran.colvin at gmail.com
Sun Aug 18 06:02:33 PDT 2013


On Sunday, 18 August 2013 at 10:15:49 UTC, Brian Schott wrote:
> http://www.youtube.com/watch?v=Vo2POmn2_9U
>
> DCD is an autocompletion client/server for D. It is designed to 
> be usable by text editors and IDEs. It's still under 
> development at Github: https://github.com/Hackerpilot/DCD
>
> The reference implementation of an editor integration is for 
> Textadept. Modules for Emacs, Vim, and Kate/KDevelop are under 
> development by various members of the D community. Pull 
> requests for other editors are welcome.

I decided to give it a try, following the instructions in the 
textadept folder, but quickly came unstuck with lua errors and 
some form of endless loop in textadept.

What I did:
built dcd
installed textadept 6.6
copied DCD/modules/dmd/dcd.lua to ~/.textadept/modules/dmd/dcd.lua
created new ~/.textadept/modules/dmd/init.lua with content:

_M.dcd = require "dmd.dcd"

events.connect(events.CHAR_ADDED, function(ch)
     _M.dcd.autocomplete(ch)
end)

started the server
started textadept
saved a .d file
got errors:
/opt/textadept/modules/textadept/menu.lua:365: attempt to index 
field '?' (a boolean value)
/opt/textadept/modules/textadept/mime_types.lua:97: bad argument 
#1 to '__index' (this buffer is not the current one)

any activity in the code window causes a repeat of the 1st error. 
file->close opens a duplicate code window (WFT?) and 
file->closeall starts an infinite loop of opening and closing 
windows.


More information about the Digitalmars-d-ide mailing list