Request for editor scripting help

Jacob Carlborg doob at me.com
Thu Aug 15 00:27:07 PDT 2013


On 2013-08-09 08:41, Brian Schott wrote:
> I've been making some progress on a project called DCD[1], which is D's
> answer to Go's Gocode[2]. It's a command-line client/server
> autocompletion program for D built off the same lexer/parser/ast code
> that powers DScanner.
>
> I'd like to get some help writing integration scripts for the editors
> that I don't use such as Vim, Emacs, Sublime, and of course your
> favorite that I left off the list. If you have experience scripting your
> text editor of choice and some spare time to play with new and unstable
> software, please consider creating a pull request.
>
> [1] https://github.com/Hackerpilot/DCD
> [2] https://github.com/nsf/gocode

I tried to compile this and I got these errors:

acvisitor.d(289): Error: no property 'name' for type 
'stdx.d.ast.AliasInitializer'
acvisitor.d(311): Error: no property 'name' for type 
'stdx.d.ast.AliasDeclaration'
acvisitor.d(322): Error: no property 'name' for type 
'stdx.d.ast.AliasDeclaration'

I tried this on Mac OS X, yes I know it's not supported but I wanted to 
try anyway.

A couple of comments:

* If DCD depends on DScanner, why don't you add it as a submodule?

* If you don't want to include DScanner as a submodule, you should at 
least have a link to it

* If you clone with "git clone --recursive" submodules are automatically 
cloned

* Actually, "git clone --recursive" won't work. I think it's because you 
haven't used the Git protocol when including message pack

* It should be mentioned how to build the project, i.e. build.sh

* Does this even build out of the box on Linux? If you just clone 
DScanner it will create a directory "DScanner", not "dscanner" which is 
required by the build script. This only happened to work on Mac OS X 
because the file system is case insensitive

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list