Giter Club home page Giter Club logo

Comments (8)

LDAP avatar LDAP commented on July 3, 2024 1

Cloning the LSP repo into the packages folder is exactly what you need to do.

from lsp.

Jimbly avatar Jimbly commented on July 3, 2024

Further investigation seems to indicate that all settings in my LSP.sublime-settings file are being ignored, not just this one. I've tried deleting the file and letting the Preferences: LSP Settings palette action re-create it, and still no luck.

from lsp.

rchl avatar rchl commented on July 3, 2024

Can you provide output of LSP: Troubleshoot Server?

from lsp.

Jimbly avatar Jimbly commented on July 3, 2024

Thanks for responding! Sure, here ya go (it seems to show the correct settings here, however I'm still seeing the underlining and hint-level messages in the LSP Diagnostics panel).

Troubleshooting: LSP-typescript

Version

  • LSP: 1.24.0
  • Sublime Text: 4143

Server Test Run

  • exit code: 0
  • output

Server Configuration

  • command
[
  "${node_bin}", 
  "${server_path}", 
  "--stdio"
]
  • shell command
"C:\Program Files\nodejs\node.EXE" "C:\Apps\Sublime Text 4\Data\Package Storage\LSP-typescript\16.13.2\typescript-language-server\node_modules\typescript-language-server\lib\cli.mjs" --stdio
  • selector
source.js, source.jsx, source.ts, source.tsx
  • priority_selector
source.js, source.jsx, source.ts, source.tsx
  • init_options
{
  "completionDisableFilterText": true, 
  "disableAutomaticTypingAcquisition": false, 
  "locale": "en", 
  "logVerbosity": "off", 
  "maxTsServerMemory": 0, 
  "npmLocation": "", 
  "plugins": [], 
  "preferences": {
    "allowIncompleteCompletions": true, 
    "allowRenameOfImportPath": true, 
    "allowTextChangesInNewFiles": true, 
    "autoImportFileExcludePatterns": [], 
    "disableSuggestions": false, 
    "displayPartsForJSDoc": true, 
    "generateReturnInDocTemplate": true, 
    "importModuleSpecifierEnding": "auto", 
    "importModuleSpecifierPreference": "shortest", 
    "includeAutomaticOptionalChainCompletions": true, 
    "includeCompletionsForImportStatements": true, 
    "includeCompletionsForModuleExports": true, 
    "includeCompletionsWithClassMemberSnippets": true, 
    "includeCompletionsWithInsertText": true, 
    "includeCompletionsWithObjectLiteralMethodSnippets": true, 
    "includeCompletionsWithSnippetText": true, 
    "includePackageJsonAutoImports": "auto", 
    "jsxAttributeCompletionStyle": "auto", 
    "lazyConfiguredProjectsFromExternalProject": false, 
    "organizeImportsAccentCollation": true, 
    "organizeImportsCaseFirst": false, 
    "organizeImportsCollation": "ordinal", 
    "organizeImportsCollationLocale": "en", 
    "organizeImportsIgnoreCase": "auto", 
    "organizeImportsNumericCollation": false, 
    "providePrefixAndSuffixTextForRename": true, 
    "provideRefactorNotApplicableReason": true, 
    "quotePreference": "auto", 
    "useLabelDetailsInCompletionEntries": true
  }, 
  "tsserver": {
    "logDirectory": "", 
    "logVerbosity": "off", 
    "path": "", 
    "trace": "off", 
    "useSyntaxServer": "auto"
  }
}
  • settings
{
  "diagnostics": {
    "ignoredCodes": []
  }, 
  "implicitProjectConfiguration": {
    "checkJs": false, 
    "experimentalDecorators": false, 
    "module": "ESNext", 
    "strictFunctionTypes": true, 
    "strictNullChecks": true, 
    "target": "ES2020"
  }, 
  "javascript": {
    "format": {
      "insertSpaceAfterCommaDelimiter": true, 
      "insertSpaceAfterConstructor": false, 
      "insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, 
      "insertSpaceAfterKeywordsInControlFlowStatements": true, 
      "insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false, 
      "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, 
      "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, 
      "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, 
      "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, 
      "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, 
      "insertSpaceAfterSemicolonInForStatements": true, 
      "insertSpaceAfterTypeAssertion": false, 
      "insertSpaceBeforeAndAfterBinaryOperators": true, 
      "insertSpaceBeforeFunctionParenthesis": false, 
      "insertSpaceBeforeTypeAnnotation": false, 
      "placeOpenBraceOnNewLineForControlBlocks": false, 
      "placeOpenBraceOnNewLineForFunctions": false, 
      "semicolons": "ignore", 
      "trimTrailingWhitespace": true
    }, 
    "inlayHints": {
      "includeInlayEnumMemberValueHints": false, 
      "includeInlayFunctionLikeReturnTypeHints": false, 
      "includeInlayFunctionParameterTypeHints": false, 
      "includeInlayParameterNameHints": "none", 
      "includeInlayParameterNameHintsWhenArgumentMatchesName": false, 
      "includeInlayPropertyDeclarationTypeHints": false, 
      "includeInlayVariableTypeHints": false, 
      "includeInlayVariableTypeHintsWhenTypeMatchesName": false
    }
  }, 
  "statusText": "$version, $source", 
  "typescript": {
    "format": {
      "insertSpaceAfterCommaDelimiter": true, 
      "insertSpaceAfterConstructor": false, 
      "insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, 
      "insertSpaceAfterKeywordsInControlFlowStatements": true, 
      "insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false, 
      "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, 
      "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, 
      "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, 
      "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, 
      "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, 
      "insertSpaceAfterSemicolonInForStatements": true, 
      "insertSpaceAfterTypeAssertion": false, 
      "insertSpaceBeforeAndAfterBinaryOperators": true, 
      "insertSpaceBeforeFunctionParenthesis": false, 
      "insertSpaceBeforeTypeAnnotation": false, 
      "placeOpenBraceOnNewLineForControlBlocks": false, 
      "placeOpenBraceOnNewLineForFunctions": false, 
      "semicolons": "ignore", 
      "trimTrailingWhitespace": true
    }, 
    "inlayHints": {
      "includeInlayEnumMemberValueHints": false, 
      "includeInlayFunctionLikeReturnTypeHints": false, 
      "includeInlayFunctionParameterTypeHints": false, 
      "includeInlayParameterNameHints": "none", 
      "includeInlayParameterNameHintsWhenArgumentMatchesName": false, 
      "includeInlayPropertyDeclarationTypeHints": false, 
      "includeInlayVariableTypeHints": false, 
      "includeInlayVariableTypeHintsWhenTypeMatchesName": false
    }
  }
}
  • env
{
  "PATH": "C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;C:\\Program Files\\nodejs;"
}

Active view

  • File name
C:\path\file.ts
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": true, 
  "syntax": "Packages/JavaScript/TypeScript.sublime-syntax"
}
  • base scope
source.ts

Project / Workspace

  • folders
[
  "C:\\path"
]
  • is project: True
  • project data:
{
  "folders": [
    {
      "binary_file_patterns": [
        "*.glb", 
        "*.gltf", 
        "*.gz", 
        "*.mp3", 
        "*.ogg", 
        "*.wav", 
        "*.xraw", 
        "font/*.json", 
        "package-lock.json"
      ], 
      "file_exclude_patterns": [
        "*.00?"
      ], 
      "folder_exclude_patterns": [
        "node_modules", 
        ".gbcache", 
        ".gbstate", 
        "build.dev", 
        "build.prod", 
        "build.test", 
        "logs", 
        "data_store", 
        "data_restore", 
        "mobile", 
        "log_filter/out"
      ], 
      "path": "."
    }
  ]
}

LSP configuration

{
  "diagnostics_panel_include_severity_level": 3, 
  "document_highlight_style": "", 
  "inhibit_word_completions": false, 
  "link_highlight_style": "", 
  "show_code_actions": "", 
  "show_diagnostics_severity_level": 3
}

System PATH

  • J:\Oculus\Support\oculus-runtime
  • C:\Windows\system32
  • C:\Windows
  • C:\Windows\System32\Wbem
  • C:\Windows\System32\WindowsPowerShell\v1.0\
  • C:\Windows\System32\OpenSSH\
  • C:\bin\Python27
  • C:\bin\Python27\Scripts
  • C:\Program Files\TortoiseSVN\bin
  • C:\Program Files\nodejs\
  • C:\Program Files\dotnet\
  • C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
  • C:\bin
  • C:\bin\git\cmd
  • C:\Users\waste\AppData\Local\Microsoft\WindowsApps
  • C:\Users\waste\AppData\Roaming\npm
  • C:\Program Files\Docker\Docker\resources\bin

from lsp.

Jimbly avatar Jimbly commented on July 3, 2024

Is there an easy-ish way to grab old versions of the LSP package? I'd happily grab an old one (or do a git bisect if it's as simple as cloning this repo into the appropriate package folder?) and narrow down the cause (and get a temporary workaround in place).

from lsp.

Jimbly avatar Jimbly commented on July 3, 2024

I restarted Sublime this morning to find LSP 1.25.0 installed, and the problem has gone away, configuration file is now being respected (though nothing relevant in the changelog, it seems, though I see some changes in the diff to WindowConfigManager, so that seems related). Closing this issue as apparently it's been resolved.

from lsp.

Jimbly avatar Jimbly commented on July 3, 2024

This happened again today - first restart of Sublime in a long while, LSP was updated, and it appears to ignore all of my settings. Disabling and re-enabling LSP did not fix it. Took a complete restart of Sublime before settings were respected again.

from lsp.

predragnikolic avatar predragnikolic commented on July 3, 2024

Hello Jimbly,

LSP had a release recently.
There were some code changes in LSP that affected other LSP-* packages and lsp_utils.

Well, when a case like that happens,
in order for LSP, LSP-* and lsp_utils to load the new changes and to function properly,
a ST restart is necessary.

Even in LSP releases where we do not introduce such code changes,
we still advice users to restart ST after an update.

So we decided to put a warning text in each update, just to remind users
https://github.com/sublimelsp/LSP/blob/main/messages/1.28.0.txt

from lsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.