Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
147 stars 23 forks source link

plugin's jump prompt missing after clicking on API #295

Closed razerdp closed 1 year ago

razerdp commented 1 year ago

Basic informations

Problem

When I click on the API with Ctrl+Mouse, the jump prompt for my plugin disappears and auto-completion doesn't work. This also happens after I build the plugin, and I have to reopen VSCode.

Here is my JSON setting:

{
    "workbench.colorTheme": "Default Dark+",
    "files.autoSave": "onFocusChange",
    "svn.defaultCheckoutDirectory": "",
    "settingsSync.ignoredSettings": [
        "sourcepawn.SourcemodHome",
        "sourcepawn.trace.server",
        "svn.defaultCheckoutDirectory",
        "sourcepawn.SpcompPath"
    ],
    "editor.defaultFormatter": "Sarrus.sourcepawn-vscode",
    "sourcepawn.formatterSettings": [
        "BasedOnStyle: Microsoft",
        "AccessModifierOffset: 0",
        "AlignAfterOpenBracket: Align",
        "AlignConsecutiveMacros: true",
        "AlignConsecutiveAssignments: false",
        "AlignConsecutiveDeclarations: false",
        "AlignTrailingComments: true",
        "AllowAllArgumentsOnNextLine: false",
        "AllowAllConstructorInitializersOnNextLine: false",
        "AllowAllParametersOfDeclarationOnNextLine: false",
        "AllowShortBlocksOnASingleLine: false",
        "AllowShortCaseLabelsOnASingleLine: true",
        "AllowShortIfStatementsOnASingleLine: Never",
        "AlwaysBreakAfterDefinitionReturnType: None",
        "AlwaysBreakBeforeMultilineStrings: false",
        "AlwaysBreakAfterReturnType: None",
        "BinPackParameters: false",
        "BinPackArguments: false",
        "BreakBeforeBraces: Attach",
        "IndentCaseLabels: true",
        "BreakBeforeTernaryOperators: false",
        "SortIncludes: false",
        "BreakStringLiterals: false",
        "IndentPPDirectives: AfterHash",
        "KeepEmptyLinesAtTheStartOfBlocks: false",
        "MaxEmptyLinesToKeep: 3",
        "ColumnLimit: 0",
        "SpaceAfterLogicalNot: false",
        "SpaceBeforeAssignmentOperators: true",
        "SpaceBeforeRangeBasedForLoopColon: false",
        "SpaceBeforeInheritanceColon: false",
        "SpaceBeforeParens: Never",
        "SpaceInEmptyParentheses: false",
    ],
    "git.ignoreWindowsGit27Warning": true,
    "editor.fontSize": 16,
    "window.openFilesInNewWindow": "on",
    "window.openFoldersInNewWindow": "on",
    "diffEditor.ignoreTrimWhitespace": false,
    "sourcepawn.UploadOptions": {

        "user": "",
        "password": "",
        "host": "",
        "port": 21,
        "localRoot": "",
        "remoteRoot": "/public_html/remote-folder/",
        "include": [
            "**"
        ],
        "exclude": [
            "scripting/**/",
            ".vscode/**/",
            ".github/**/",
            ".gitignore",
            "*.md",
            ".git"
        ],
        "deleteRemote": false,
        "forcePasv": true,
        "sftp": false,
        "isRootRelative": true
    },
    "explorer.confirmDelete": false,
    "editor.accessibilitySupport": "off",
    "SourcePawnLanguageServer.includesDirectories": [
        "E:\\l4d2_plugins\\sourcemod_sdk\\addons\\sourcemod\\scripting\\include"
    ],
    "SourcePawnLanguageServer.spcompPath": "E:\\l4d2_plugins\\sourcemod_sdk\\addons\\sourcemod\\scripting\\spcomp.exe",
    "sourcepawn.SourceServerOptions": {
        "host": "",
        "port": 27015,
        "encoding": "ascii",
        "timeout": 1000,
        "password": ""
    },
    "sourcepawn.outputDirectoryPath": "E:/l4d2_plugins/plugins/"

}
Sarrus1 commented 1 year ago

Hi, thanks for reporting this. When this happens, does "sourcepawn-lsp" becomes red in the bottom left corner of the screen?

Can you also open a new terminal in vscode, click on "Output" then "SourcePawnLanguageServer" and please copy paste the output here.

razerdp commented 1 year ago

"sourcepawn-lsp" is ready, but the output is showing error logs.

image

Sarrus1 commented 1 year ago

Can you try to do "ctrl+shift+p" then "install language server" to make sure you are running the latest version of the server?

razerdp commented 1 year ago

I tried to download the latest version from your another repository (https://github.com/Sarrus1/sourcepawn-lsp/releases) and replaced the local lsp exe. It seems to be working now. image

razerdp commented 1 year ago

"ctrl+shift+p" and "install language server" will get 403 status code