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

project.clj error results in frozen UI #93

Closed
imalooney opened this issue Feb 6, 2015 · 3 comments
Closed

project.clj error results in frozen UI #93

imalooney opened this issue Feb 6, 2015 · 3 comments

Comments

@imalooney
Copy link

Play-by-play:
I made a bunch of changes to add a new page and build to my project. I attempted to reload project.clj (First tried just stopping and autocompiling again, but then realized the refresh icon was for project.clj changes.)

Cuttle screen froze on me as below with this console log:

screen shot 2015-02-06 at 11 22 22 am

log:
main.js:27626 Uncaught All [:compiler :output-dir] options must be distinct.

I tried to add the project to Cuttle again because that instance seemed screwed. But it still didn't seem to load with updated project.clj (obvy bc there was an error). So i just wanted to shut her down by hitting the X….that froze on "shutting down" for about 4 minutes before I gave up and selected “close Atom” from the menu.

Opened Cuttle up again and old instance was still there frozen as before. I closed the new instance of my project here and closed Cuttle.

Went to project.clj. I did indeed have two builds with the same :output-dir. I made a new :output-dir for one. Re-opened Cuttle. Now everything is just peachy.

I am running v1.1 on Mac OS X 10.9.5.

And I like chocolate ice cream.

@shaunlebron
Copy link
Collaborator

Thanks @imalooney, I'll take a look at this, after getting some ice cream.

@shaunlebron
Copy link
Collaborator

Some notes:

  • Each build needs a unique :output-dir key.
  • cuttle.cljsbuild.config/set-default-output-dirs throws this error (code ripped from cljsbuild plugin)
  • need a strategy for warning malformed project.clj

@shaunlebron
Copy link
Collaborator

Closing, will track in #96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants