dylan-emacs-support icon indicating copy to clipboard operation
dylan-emacs-support copied to clipboard

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

Open danmidwood opened this issue 11 years ago • 5 comments

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 avatar May 15 '14 03:05 danmidwood

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

danmidwood avatar May 15 '14 04:05 danmidwood

Shouldn't it have a better error?

waywardmonkeys avatar May 15 '14 04:05 waywardmonkeys

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

cgay avatar May 15 '14 04:05 cgay

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?

danmidwood avatar May 15 '14 04:05 danmidwood

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

waywardmonkeys avatar May 15 '14 05:05 waywardmonkeys