Comments (8)
Cloning the LSP repo into the packages folder is exactly what you need to do.
from lsp.
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.
Can you provide output of LSP: Troubleshoot Server
?
from lsp.
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.
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.
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.
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.
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)
- [Runtime Error] ModuleNotFoundError: No module named 'wcmatch' HOT 1
- Investigate why didSave notification is not sent if view closed immediately after saving
- Two alternative hover definitions provided: one on mouseover, the other upon keyboard shortcut HOT 6
- Not Working After 3.8 Upgrade HOT 3
- Discuss removal of some APIs HOT 3
- Allow LSP packages to customize format_completion HOT 1
- Support list of commands, provided by language servers HOT 5
- Syntax highlighting in popups, returned by 3rd party language server, not work HOT 10
- Package is not installable HOT 5
- MissingUriError: View has no URI HOT 1
- `websocket_server` installs a root logger
- Cannot install LSP on clean installation HOT 15
- Updated to LSP 2.1.0 leads to FileNotFoundError and no LSP HOT 6
- `lsp_code_actions_on_save` do not work intermittently HOT 8
- KeyError on file-watcher HOT 2
- Replace `Enum` object with it's scalar value in the LSP log panel? HOT 1
- Text selection in popups HOT 2
- Unable to open URI
- Provide `Transport` as parameter when invoking `plugin.on_post_start` HOT 8
- Allow `AbstractPlugin` to handle `window/logMessage` notification HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp.