Fork me on GitHub
#calva
<
2022-02-28
>
dabrazhe09:02:32

Getting this error message. Can it be the reason I am not getting doc strings on autocomplete, and how can I resolve this?

pez09:02:21

What are your settings for clojureLspPath and clojureLspVersion?

dabrazhe10:02:25

These two are not set

pez10:02:56

Try setting clojureLspVersion to latest (Or just reset the setting, which should give you the default of latest.

dabrazhe10:02:07

The reset option did not work, had to reset it manually. What's the best way to restart Calva and the language server?

pez11:02:08

Developer: Reload Window from the command palette or the help menu.

pez11:02:15

Which version of Calva are you using?

dabrazhe20:02:47

Still getting the same error "could not start Clojure Language Client". [Error - 9:02:22 PM] Starting client failed Launching server using command latest failed.

dabrazhe20:02:00

Calva v 2.0.246

bringe04:03:46

> Launching server using command latest failed That looks strange, like the code is using latest as the command for starting the server. You didn’t by chance accidentally set the clojure-lsp path setting as latest rather than the version, did you? Can you paste the logs from the developer console after this issue occurs? Help -> Toggle Developer Tools -> Console tab

dabrazhe11:03:03

Log is here

dabrazhe11:03:10

just in case, here is my settings.json

{
    "workbench.colorTheme": "Visual Studio Light",
    "atomKeymap.promptV3Features": true,
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.formatOnPaste": true,
    "gitlens.currentLine.enabled": false,
    "gitlens.hovers.currentLine.over": "line",
    // "terminal.integrated.rendererType": "dom",
    "calva.jokerPath": "lein repl :connect",
    "calva.autoConnect": false,
    "terminal.external.osxExec": "",
    "editor.fontSize": 14,
    "calva.lintOnSave": true,
    "calva.sendAsyncOutputTo": "Both",
    "terminal.integrated.fontSize": 15,

    "editor.tokenColorCustomizations": {
            "[Visual Studio Light]": {
                "textMateRules": [
                    {
                        "scope": [
                            "constant.keyword.clojure"
                        ],
                        "settings": {
                            "foreground": "#0520BB"
                        }
                    }
                ]
            },
        },
    "python.linting.banditEnabled": true,
    "editor.minimap.enabled": false,
    "files.hotExit": "onExitAndWindowClose",
    "gitlens.views.search.files.layout": "tree",
    "editor.renderIndentGuides": false,
    // "terminal.integrated.fontSize": 13,
    "calva.paredit.defaultKeyMap": "original",
    "editor.wordWrap": "on",
    "calva.prettyPrintingOptions": {

        "enabled": true,
        "width": 25,
        "maxLength": 100,
        "printEngine": "calva"
    },
    "git.enableSmartCommit": true,
    "explorer.confirmDragAndDrop": false,
    "git.smartCommitChanges": "tracked",
    "gitlens.views.repositories.files.layout": "list",
    "gitlens.views.repositories.location": "gitlens",
    "gitlens.views.fileHistory.location": "gitlens",
    "gitlens.views.lineHistory.location": "gitlens",
    "gitlens.views.compare.location": "gitlens",
    "gitlens.views.search.location": "gitlens",
    "diffEditor.renderSideBySide": true,
    "git.countBadge": "tracked",
    "git.autofetch": true,
    "gitHistory.showEditorTitleMenuBarIcons": false,
    "explorer.compactFolders": false,
    "explorer.incrementalNaming": "smart",
    "diffEditor.ignoreTrimWhitespace": false,
    "calva.highlight.rainbowIndentGuides": true,
    "workbench.iconTheme": "material-icon-theme",
    "material-icon-theme.folders.color": "#003311",
    "calva.customREPLCommandSnippets": [


    ],
    "calva.openREPLWindowOnConnect": true,
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter.notebook.ipynb"
    },
    "workbench.colorCustomizations": {},
    "calva.replConnectSequences": [
        {
            "name": "bb",
            "projectType": "generic",
            "nReplPortFile": [
                ".bb-nrepl-port"
            ],
            "cljsType": "none"
        }
    ],
    "files.autoSaveDelay": 2000,
    "security.workspace.trust.untrustedFiles": "open",
    "terminal.integrated.scrollback": 5000,
    "terminal.integrated.persistentSessionScrollback": 200,

    "terminal.explorerKind": "external",
    "gitlab.ignoreCertificateErrors": true,
    "gitlab.instanceUrl": "https: //gitlab.com",
    "gitlab.remoteName": "origin",
    "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;'\",.<>/?:",

 "[clojure]": {

    "editor.wordSeparators": "\t ()\"',;~@#$%^&{}[]`"
},

"[ini]": {
    "breadcrumbs.showArrays": true,
    "editor.wordSeparators": "\t ()\"',;~@#$%^&{}[]`="
},
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.integrated.profiles.osx": {
    "/bin/bash (migrated)": {
        "path": "/bin/bash",
        "args": [
            "-l"
        ]
    }
},
"files.autoSave": "afterDelay",
"gitlens.gitCommands.skipConfirmations": [
    "fetch:command",
    "stash-push:command",
    "switch:command",
    "branch-create:command"
],
"editor.unicodeHighlight.allowedCharacters": {
    "꞉": true,
    " ": true
},
"terminal.integrated.fontFamily": "Menlo",
"git.fetchOnPull": true,
"calva.showDocstringInParameterHelp": true

}

dabrazhe11:03:57

The lsp path was wrong in the workspace settings ( Cleared it, now blank. Clojure language is starting fine now, with no error but the warning: Mar 01, 2022 12:33:55 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation WARNING: Unmatched cancel notification for request id 13

dabrazhe11:03:44

But still no docstring on autocomple. Connected to the Babashka repl with Jack-in

pez12:03:33

I think it is a bug where clojure-lsp and nrepl are conflicting-

dabrazhe14:03:51

It started about 3 weeks ago, cant recall what happened around this time

dabrazhe14:03:14

Any ideas how to resolve this?

pez14:03:41

Which version of bb are you using?

dabrazhe14:03:02

the latest. 0.7.x

pez14:03:35

I'm out of ideas. This just works for me. Have you tested it on a fresh minimal project?

dabrazhe17:03:04

I have but I can try again now. Can it be caused by an issue in bb.edn, or is it not related?

pez17:03:44

I honestly don't know. Probably not. bb is not providing docs and lookups so we rely on clojure-lsp here. Don't know if it reads bb.edn or if it wants something more to start serving.

pez17:03:39

I can create a minimal project that works for me, and you can test that one. To eliminate this source of error.

dabrazhe18:03:10

Sure, let's try.