joyride 2025-04-16

Hi, I ran the .joyride/scripts/example/write_a_file.cljs example and it works. Then i tried to run https://github.com/BetterThanTomorrow/joyride/blob/master/examples/.joyride/src/problem_hover.cljs but i do not see the message in the hover over panel when hovering over say:

(comment
  foo
  (remove 1 2 3))
Here are the steps that i did, just in case I am missing something: 1. Copy the example code to .joyride/scripts/example/problem_hover.cljs 2. Joyride: Run Workspace script > example/problem_hover.cljs Output Panel show:
example/problem_hover.cljs evaluated.
=> nil

Hello! Long time since I wrote this example…

Where is your test code located?

joyride_hover tree .joyride 
.joyride
├── deps.edn
└── scripts
    └── example
        ├── problem_hover.cljs
        └── write_a_file.cljs

I guess what I really want to know: Is the problem listed in the Problems pane?

Just making sure, i am expecting the message to show up in here.

Hmmm. Maybe you haven’t called problem-hover/register-provider! ?

1

Yes. You are correct. It works now.

Cool. FYI I am not sure I recommend that script all that much. I think VS Code has fixed the problem it tried to solve.

Oh actually I am trying to use it to show flutter function signatures for clojuredart.

At least that the idea. Lets see what i can make.

I think CoPilot can help with the VS Code API. Function signatures has their own provider.

Also, I think clojure-lsp should already be providing signatures? Does it not work for ClojureDart?

There is an extension VS Code API Explorer that I can recommend.

okay that the name "VS Code API Explorer"

In combo with the Joyride REPL it is pretty nice. A bit of a poor mans tooling, but anyway. When there is something you wish the the Joyride REPL should show you in auto-completion, you can take it to the VS Code API Explorer terminal.

Ah okay, i see. looks like it will be really helpful. Thanks again.

🙏 1

And just holler here if you get stuck on something.

🫡 1

Or do i need to call it from .config/joyride/scripts/user_activate.cljs

Good question. Joyride will look for the workspace activation script in the classpath under .joyride in your workspace. scripts folder is good place. I think there may be a joyride command for creating a default activation script.

👍 1