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.cljsI guess what I really want to know: Is the problem listed in the Problems pane?
Yes
Just making sure, i am expecting the message to show up in here.
Hmmm. Maybe you haven’t called problem-hover/register-provider! ?
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.
Awesome.
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.
Please
okay that the name "VS Code API Explorer"
Let me check.
Yes.
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.
And just holler here if you get stuck on something.
And this workspace_activate.cljs needs to placed where? https://github.com/BetterThanTomorrow/joyride/blob/435fbce9b1a93503d89efa862e1bd456fae8f75b/assets/getting-started-content/workspace/scripts/workspace_activate.cljs#L26 I guess this is the file right? https://github.com/BetterThanTomorrow/joyride/blob/435fbce9b1a93503d89efa862e1bd456fae8f75b/assets/getting-started-content/workspace/scripts/workspace_activate.cljs#L26
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.
@pez Thanks for your help. Here is the initial woking version. https://clojurians.slack.com/archives/C03A6GE8D32/p1744911124442529?thread_ts=1744620092.518429&cid=C03A6GE8D32