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

Compile errors masked/silent #97

Open
kenrestivo opened this issue May 9, 2012 · 0 comments
Open

Compile errors masked/silent #97

kenrestivo opened this issue May 9, 2012 · 0 comments

Comments

@kenrestivo
Copy link
Contributor

I noticed a repeatable error, not sure the solution, but leaving it here as breadcrumbs.

Steps to repeat:

  1. Define a page with defpage

  2. Refresh that page to load it, make sure it load successfully.

  3. Put a bug in that defpage which causes the compile to fail-- like an unresolvable symbol, a var that doesn't exist, a mismatched parens, anything.

  4. Reload the page in the browser. You'll see the OLD page, with success, and no stacktrace, no errors, no clues as to what went wrong.

I hack around this by running "lein2 check" periodically. But there may be a way to integrate that kind of thing into noir. It looks like noir keeps the compojure routes in an atom. I guess the route for that page is already defined in the atom, and when the compile fails, that original route is still there, it doesn't get replaced. Seems logical. Still not sure what to do about it though.

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

1 participant