Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danmidwood opened this issue May 15, 2014 · 5 comments
Open

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

danmidwood opened this issue May 15, 2014 · 5 comments
Labels

Comments

@danmidwood
Copy link

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
Copy link
Author

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
Copy link
Member

Shouldn't it have a better error?

@cgay
Copy link
Member

cgay commented May 15, 2014

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

@cgay cgay changed the title Cannot compile files through dime DIME: #f is not of type <project-object> May 15, 2014
@cgay cgay reopened this May 15, 2014
@danmidwood
Copy link
Author

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
Copy link
Member

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

@cgay cgay added the dime label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants