Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did not receive workspace/didChangeConfiguration notification after 5 seconds. Using default settings. #217

Closed
2 tasks done
npearson72 opened this issue Apr 24, 2020 · 5 comments · Fixed by #222
Closed
2 tasks done

Comments

@npearson72
Copy link

npearson72 commented Apr 24, 2020

When I open an .ex file in neovim, I get the following message after 5 seconds:

[coc.nvim] Did not receive workspace/didChangeConfiguration notification after 5 seconds. Usin
g default settings.
Press ENTER or type command to continue

Any ideas? Thank you.

Environment

  • Elixir & Erlang versions (elixir --version): Elixir 1.9.4 (compiled with Erlang/OTP 20) & Erlang/OTP 22
  • Operating system: MacOS 10.15.4 (19E287)
  • Editor or IDE name (e.g. Emacs/VSCode): NVIM v0.4.3
  • LSP Client name: neoclide/coc.nvim (languageserver.elixirLS)
    • If using VSCode, are you using "ElixirLS: Elixir support and debugger"?

Troubleshooting

  • Restart your editor (which will restart ElixirLS) sometimes fixes issues
  • Stop your editor, remove the entire .elixir_ls directory, then restart your editor
    • NOTE: This will cause you to have to re-run the dialyzer build for your project

Logs

[Trace - 1:21:40 AM] Sending request 'initialize - (0)'.
Params: {
    "processId": 24234,
    "rootPath": "/Users/me/Dev/empty",
    "rootUri": "file:///Users/me/Dev/empty",
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
                "failureHandling": "textOnlyTransactional"
            },
            "didChangeConfiguration": {
                "dynamicRegistration": true
            },
            "didChangeWatchedFiles": {
                "dynamicRegistration": true
            },
            "symbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                }
            },
            "executeCommand": {
                "dynamicRegistration": true
            },
            "configuration": true,
            "workspaceFolders": true
        },
        "textDocument": {
            "publishDiagnostics": {
                "relatedInformation": true,
                "versionSupport": false
            },
            "synchronization": {
                "dynamicRegistration": true,
                "willSave": true,
                "willSaveWaitUntil": true,
                "didSave": true
            },
            "completion": {
                "dynamicRegistration": true,
                "contextSupport": true,
                "completionItem": {
                    "snippetSupport": true,
                    "commitCharactersSupport": true,
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "deprecatedSupport": true,
                    "preselectSupport": true
                },
                "completionItemKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25
                    ]
                }
            },
            "hover": {
                "dynamicRegistration": true,
                "contentFormat": [
                    "markdown",
                    "plaintext"
                ]
            },
            "signatureHelp": {
                "dynamicRegistration": true,
                "signatureInformation": {
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "parameterInformation": {
                        "labelOffsetSupport": true
                    }
                }
            },
            "definition": {
                "dynamicRegistration": true
            },
            "references": {
                "dynamicRegistration": true
            },
            "documentHighlight": {
                "dynamicRegistration": true
            },
            "documentSymbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "hierarchicalDocumentSymbolSupport": true
            },
            "codeAction": {
                "dynamicRegistration": true,
                "isPreferredSupport": true,
                "codeActionLiteralSupport": {
                    "codeActionKind": {
                        "valueSet": [
                            "",
                            "quickfix",
                            "refactor",
                            "refactor.extract",
                            "refactor.inline",
                            "refactor.rewrite",
                            "source",
                            "source.organizeImports"
                        ]
                    }
                }
            },
            "codeLens": {
                "dynamicRegistration": true
            },
            "formatting": {
                "dynamicRegistration": true
            },
            "rangeFormatting": {
                "dynamicRegistration": true
            },
            "onTypeFormatting": {
                "dynamicRegistration": true
            },
            "rename": {
                "dynamicRegistration": true,
                "prepareSupport": true
            },
            "documentLink": {
                "dynamicRegistration": true,
                "tooltipSupport": true
            },
            "typeDefinition": {
                "dynamicRegistration": true
            },
            "implementation": {
                "dynamicRegistration": true
            },
            "declaration": {
                "dynamicRegistration": true
            },
            "colorProvider": {
                "dynamicRegistration": true
            },
            "foldingRange": {
                "dynamicRegistration": true,
                "rangeLimit": 5000,
                "lineFoldingOnly": true
            },
            "selectionRange": {
                "dynamicRegistration": true
            }
        },
        "window": {
            "workDoneProgress": true
        }
    },
    "initializationOptions": {},
    "trace": "verbose",
    "workspaceFolders": [
        {
            "uri": "file:///Users/me/Dev/empty",
            "name": "empty"
        }
    ],
    "workDoneToken": "9962f2d4-9839-4874-9953-c505d69d81c4"
}


[Trace - 1:21:41 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Started ElixirLS v0.3.3",
    "type": 4
}


Started ElixirLS v0.3.3
[Trace - 1:21:41 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Elixir version: \"1.9.4 (compiled with Erlang/OTP 20)\"",
    "type": 4
}


Elixir version: "1.9.4 (compiled with Erlang/OTP 20)"
[Trace - 1:21:41 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Erlang version: \"22\"",
    "type": 4
}


Erlang version: "22"
[Trace - 1:21:41 AM] Received response 'initialize - (0)' in 624ms.
Result: {
    "capabilities": {
        "codeLensProvider": {
            "resolveProvider": false
        },
        "completionProvider": {
            "triggerCharacters": [
                ".",
                "@"
            ]
        },
        "definitionProvider": true,
        "documentFormattingProvider": true,
        "documentOnTypeFormattingProvider": {
            "firstTriggerCharacter": "\n"
        },
        "documentSymbolProvider": true,
        "executeCommandProvider": {
            "commands": [
                "spec"
            ]
        },
        "hoverProvider": true,
        "macroExpansion": true,
        "referencesProvider": true,
        "signatureHelpProvider": {
            "triggerCharacters": [
                "("
            ]
        },
        "textDocumentSync": {
            "change": 2,
            "openClose": true,
            "save": {
                "includeText": true
            }
        },
        "workspace": {
            "workspaceFolders": {
                "changeNotifications": true,
                "supported": true
            }
        },
        "workspaceSymbolProvider": true
    }
}


[Trace - 1:21:41 AM] Sending notification 'initialized'.
Params: {}


[Trace - 1:21:41 AM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///Users/me/Dev/empty/lib/empty.ex",
        "languageId": "elixir",
        "version": 1,
        "text": "defmodule Empty do\n  @moduledoc \"\"\"\n  Documentation for Empty.\n  \"\"\"\n\n  @doc \"\"\"\n  Hello world.\n\n  ## Examples\n\n      iex> Empty.hello()\n      :world\n\n  \"\"\"\n  def hello do\n    :world\n  end\nend\n"
    }
}


[Trace - 1:21:41 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "diagnostics": [],
    "uri": "file:///Users/me/Dev/empty/lib/empty.ex"
}


[Trace - 1:21:41 AM] Received request 'client/registerCapability - (1)'.
Params: {
    "registrations": [
        {
            "id": "B63DDB275E15ED256156A5090CE35EB12FC8CC8C",
            "method": "workspace/didChangeWatchedFiles",
            "registerOptions": {
                "watchers": [
                    {
                        "globPattern": "**/*.ex"
                    },
                    {
                        "globPattern": "**/*.exs"
                    }
                ]
            }
        }
    ]
}


[Trace - 1:21:41 AM] Sending response 'client/registerCapability - (1)'. Processing request took 2ms
No result returned.


[Trace - 1:21:46 AM] Received notification 'window/showMessage'.
Params: {
    "message": "Did not receive workspace/didChangeConfiguration notification after 5 seconds. Using default settings.",
    "type": 2
}


[Trace - 1:21:46 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Compiling with Mix env test",
    "type": 4
}


Compiling with Mix env test
[Trace - 1:21:46 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Compiling 1 file (.ex)",
    "type": 4
}


Compiling 1 file (.ex)
[Trace - 1:21:47 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Generated empty app",
    "type": 4
}


Generated empty app
[Trace - 1:21:47 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Compile took 1120 milliseconds",
    "type": 3
}


[Info  - 1:21:47 AM] Compile took 1120 milliseconds
[Trace - 1:21:47 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS Dialyzer] Checking for stale beam files",
    "type": 3
}


[Info  - 1:21:47 AM] [ElixirLS Dialyzer] Checking for stale beam files
[Trace - 1:21:47 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS Dialyzer] Found 7 changed files in 5 milliseconds",
    "type": 3
}


[Info  - 1:21:47 AM] [ElixirLS Dialyzer] Found 7 changed files in 5 milliseconds
[Trace - 1:21:47 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS Dialyzer] Analyzing 19 modules: [Collectable, Empty, Enumerable, IEx.Info, IEx.Info.Any, IEx.Info.Atom, IEx.Info.BitString, IEx.Info.Float, IEx.Info.Function, IEx.Info.Integer, IEx.Info.List, IEx.Info.Map, IEx.Info.PID, IEx.Info.Port, IEx.Info.Reference, IEx.Info.Tuple, Inspect, List.Chars, String.Chars]",
    "type": 3
}


[Info  - 1:21:47 AM] [ElixirLS Dialyzer] Analyzing 19 modules: [Collectable, Empty, Enumerable, IEx.Info, IEx.Info.Any, IEx.Info.Atom, IEx.Info.BitString, IEx.Info.Float, IEx.Info.Function, IEx.Info.Integer, IEx.Info.List, IEx.Info.Map, IEx.Info.PID, IEx.Info.Port, IEx.Info.Reference, IEx.Info.Tuple, Inspect, List.Chars, String.Chars]
[Trace - 1:21:47 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS Dialyzer] Analysis finished in 657 milliseconds",
    "type": 3
}


[Info  - 1:21:47 AM] [ElixirLS Dialyzer] Analysis finished in 657 milliseconds
[Trace - 1:21:47 AM] Received notification 'window/logMessage'.
Params: {
    "message": "Dialyzer analysis is up to date",
    "type": 3
}


[Info  - 1:21:47 AM] Dialyzer analysis is up to date
[Trace - 1:21:48 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS Dialyzer] Writing manifest...",
    "type": 3
}


[Info  - 1:21:48 AM] [ElixirLS Dialyzer] Writing manifest...
[Trace - 1:21:48 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS Dialyzer] Done writing manifest in 711 milliseconds.",
    "type": 3
}


[Info  - 1:21:48 AM] [ElixirLS Dialyzer] Done writing manifest in 711 milliseconds.
[Trace - 1:21:48 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS WorkspaceSymbols] Indexing...",
    "type": 3
}


[Info  - 1:21:48 AM] [ElixirLS WorkspaceSymbols] Indexing...
[Trace - 1:21:51 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS WorkspaceSymbols] Module discovery complete",
    "type": 3
}


[Info  - 1:21:51 AM] [ElixirLS WorkspaceSymbols] Module discovery complete
[Trace - 1:21:51 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS WorkspaceSymbols] 20 callbacks added to index",
    "type": 3
}


[Info  - 1:21:51 AM] [ElixirLS WorkspaceSymbols] 20 callbacks added to index
[Trace - 1:21:51 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS WorkspaceSymbols] 250 modules added to index",
    "type": 3
}


[Info  - 1:21:51 AM] [ElixirLS WorkspaceSymbols] 250 modules added to index
[Trace - 1:21:52 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS WorkspaceSymbols] 391 types added to index",
    "type": 3
}


[Info  - 1:21:52 AM] [ElixirLS WorkspaceSymbols] 391 types added to index
[Trace - 1:21:53 AM] Received notification 'window/logMessage'.
Params: {
    "message": "[ElixirLS WorkspaceSymbols] 5067 functions added to index",
    "type": 3
}


[Info  - 1:21:53 AM] [ElixirLS WorkspaceSymbols] 5067 functions added to index

@axelson
Copy link
Member

axelson commented Apr 24, 2020

This isn't a warning or anything, it's just a notice that the default settings are being used. Would different wording make that more clear?

@npearson72
Copy link
Author

npearson72 commented Apr 24, 2020

Is it possible to not display the message in the cmd line at all? Maybe send to messages or logs. It requires the I hit <CR> to close the message, which I would prefer not to do.

Thank you.

@axelson
Copy link
Member

axelson commented Apr 25, 2020

Well how it is displayed in the client is controlled by the client. Messages of type Warning do not require a key to clear in Emacs lsp-mode (which I use), or VSCode. But with that said I think it makes sense to downgrade this from Warning to Info since operating based on the defaults is very much an expected condition.

@npearson72
Copy link
Author

Ah, that makes sense. Thanks for the explanation. Also very much appreciate the change, and thank you in general for maintaining this project!

axelson added a commit that referenced this issue Apr 28, 2020
Change from warning to info since it is very much expected on most clients, and
in coc.vim warnings require the user to clear them.

Fixes #217
@axelson
Copy link
Member

axelson commented Apr 28, 2020

You're welcome! Thanks for the report :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants