dylan-lang / dylan-emacs-support

Emacs mode for indenting and highlighting Dylan code
GNU General Public License v2.0
27 stars 8 forks source link

DIME: #f is not of type <project-object> #18

Open danmidwood opened 10 years ago

danmidwood commented 10 years ago

File compilation through dime fails with an error,

Evaluation aborted on {<type-error> : #f is not of type {<class>: <project-object>}}.

I've tried importing, opening and building all through the repl and that is working perfectly, but I can't compile a file from the buffer with C-c C-k without hitting this error.

I've created a Vagrant environment (Ubuntu, Emacs 24.3.1) where this can be reproduced, https://github.com/danmidwood/dime-error-repro

danmidwood commented 10 years ago

Actually, the problem was mine.

I was running in the context of opendylan> and hadn't realised that I needed to change the project before I could run the compile command on my file.

Switching to the repl and running , change-project sets everything up correctly

waywardmonkeys commented 10 years ago

Shouldn't it have a better error?

cgay commented 10 years ago

So now that you mention it, this was exactly the problem I ran into. Yeah, a better error would be nice.

danmidwood commented 10 years ago

Yes, that would have helped.

The DIME documentation does explain setting the project, but I realise now that I must have jumped straight past that part and then fell down all of the wrong rabbit holes when I saw the error.

I also had an assumption that dime-compile-file could infer the project from the file, is that possible?

waywardmonkeys commented 10 years ago

Not currently but my newer build tool (deft) has a way to improve this.