Calva: Jack-in causes error

Created on 1 May 2020  路  8Comments  路  Source: BetterThanTomorrow/calva

When I jack in, I get the error in Tasks output:

Error: the task 'Calva: Calva Jack-in' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "shell",
    "id": "shell,lein,update-in,:dependencies,conj,'[nrepl\"0.6.0\"]',--,update-in,:dependencies,conj,'[clj-kondo\"2020.04.05\"]',--,update-in,:plugins,conj,'[cider/cider-nrepl\"0.23.0\"]',--,update-in,'[:repl-options :nrepl-middleware]',conj,'[\"cider.nrepl/cider-middleware\"]',--,with-profile,+dev,repl,:headless,",
    "problemMatcher": [],
    "label": "Calva: Calva Jack-in"
}

Nevertheless, the connection works fine.

bug jack-in

Most helpful comment

i think it indicates that we are using the Task API a bit wrong. It doesn't make things break. Yet. But should be looked at.

All 8 comments

What's your OS and Calva version? This happens every time you jack-in or are there some situations where it works? If it works sometimes, can you provide a repro case for when it does not work?

What's your OS and Calva version?

macOS Mojavie. Don't remember which version was 11 days ago, just installed the latest 2.0.100.

This happens every time you jack-in

Yes, at least it seems so.

If it works sometimes, can you provide a repro case for when it does not work?

I think it works in 100% cases at least to me. So, I can conclude that it's a minor bug.

i think it indicates that we are using the Task API a bit wrong. It doesn't make things break. Yet. But should be looked at.

The relevant code is here: https://github.com/Microsoft/vscode/commit/46e4970f427f83bcbceccf766113b30ae37f3bb6#diff-02ad35ffcf1a9d19f2d4149ac96864d7R762

But I don't know why it would happen for some users and not others. Not sure on a solution yet either.

Edit: This does happen for me too, maybe it is all users.

But I don't know why it would happen for some users and not others.

Hm, where does this assumption come from?

Sorry, I misunderstood you before. Looks like I edited my comment at the same time you were responding. :smile:

We don't currently use a task provider to provide the jack-in task, and this may help/fix this issue: https://code.visualstudio.com/api/extension-guides/task-provider. I may spend some time on this soon, but it seems a bit low priority.

Right, thanks.

Was this page helpful?
0 / 5 - 0 ratings