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

maxSize not working in kate editor #41

Open
iarkaroy opened this issue May 19, 2021 · 5 comments
Open

maxSize not working in kate editor #41

iarkaroy opened this issue May 19, 2021 · 5 comments

Comments

@iarkaroy
Copy link

I am trying to setup the language server with kate editor. Here is my config

{
    "servers": {
        "php": {
            "command": ["intelephense", "--stdio"],
            "rootIndicationFileNames": ["composer.json"],
            "highlightingModeRegex": "^PHP.*$",
            "settings": {
                "intelephense.files.maxSize": 3000000
            }
        }
    }
}

But the maxSize config is not applied. I am still getting warnings like file:///some/path/vendor/composer/autoload_static.php is over the maximum file size of 1000000 bytes.

I am unable to detect what I am doing wrong. Please suggest.

@bmewburn
Copy link
Owner

The client needs to support the workspace/configuration request. I'm unsure if Kate supports this or how it handles settings and can't find any documentation on this.

@iarkaroy
Copy link
Author

I have found how lsp can be configured in kate. https://docs.kde.org/trunk5/en/kate/kate/kate-application-plugin-lspclient.html

In addition, each server entry object may also have an "initializationOptions" entry, which is passed along to the server as part of the 'initialize' method. If present, a "settings" entry is passed to the server by means of the 'workspace/didChangeConfiguration' notification.

Does it help to address the problem?

@bmewburn
Copy link
Owner

Does it help to address the problem?

It probably explains why it's not working for you. When workspace/didChangeConfiguration happens intelephense sends workspace/configuration . I'll put a fallback in for when workspace/configuration is not supported by the client.

@Zzombiee2361
Copy link

Any update on this?

@madalinignisca
Copy link

Hi @bmewburn.
Would you be able to tell us if the fallback is already available in recent releases or when will it be?
I'd like to use Kate for php instead of vscode.

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

No branches or pull requests

4 participants