Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Xiana hotreload/livereload#287

Open
gmsvalente wants to merge 9 commits into
main from
feature/hotreload
Open

Xiana hotreload/livereload #287
gmsvalente wants to merge 9 commits into
main from
feature/hotreload

Conversation

@gmsvalente

@gmsvalente gmsvalente commented Apr 9, 2024

Copy link
Copy Markdown
Contributor

Xiana hotreload/livereload

Description

This PR adds a Hotreload/Livereload to Xiana.

Tester info

Check if server is restarted when saving changes.

Completion Checklist

  • Add description of the changes made here to the changelog file
  • Update the documentation as necessary

@puchka puchka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got this error while testing the hot reloading feature

Exception in thread "async-dispatch-1" java.lang.NullPointerException: Cannot invoke "clojure.lang.IFn.invoke()" because "this.restart_fn" is null
 at xiana.hotreload$hotreload$fn__11268$state_machine__8002__auto____11285$fn__11287$fn__11289.invoke(hotreload.clj:42)
 at xiana.hotreload$hotreload$fn__11268$state_machine__8002__auto____11285$fn__11287.invoke(hotreload.clj:38)
 at xiana.hotreload$hotreload$fn__11268$state_machine__8002__auto____11285.invoke(hotreload.clj:38)
 at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:978)
 at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:977)
 at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:982)
 at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:980)
 at xiana.hotreload$hotreload$fn__11268.invoke(hotreload.clj:38)
 at clojure.lang.AFn.run(AFn.java:22)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
 at clojure.core.async.impl.concurrent$counted_thread_factory$reify__1774$fn__1775.invoke(concurrent.clj:29)
 at clojure.lang.AFn.run(AFn.java:22)
 at java.base/java.lang.Thread.run(Thread.java:833)

I made a minimal reproducible example here: https://github.com/puchka/hello-xiana/tree/test/hotreload

Comment thread src/xiana/hotreload.clj Outdated

Copy link
Copy Markdown

Why is this still open? Can we finish it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@g-krisztian g-krisztian Awaiting requested review from g-krisztian

1 more reviewer

@puchka puchka puchka requested changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /