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

Not seeing squiggles / decorations on spelling errors in the editor (squiggles issue only) #3915

Open
arturmarc opened this issue Dec 13, 2024 · 29 comments

Comments

@arturmarc
Copy link

At some point I stopped seeing the "squiggles" in the editor.
i.e. I don't see this:
Screenshot 2024-12-13 at 12 42 10

instead I have all other functionality - suggesting fixes, the spell checker window etc..
but no squiggles in the editor:
Screenshot 2024-12-13 at 12 44 16

I have tried enabling "custom decorators" as well - they don't show up either. I also tried:

  • played around with some settings
  • re-installing the extension
  • downgrading the extension

I am pretty sure if I re-install my vscode from scratch, it will work since I tried a fresh "portable" install and it works just fine.

It seems like it's probably one those issues that happened during one of the vscode's or extension's upgrade, maybe some old settings is messing with it or some other extension 🤷‍♂️

I am trying to avoid the risk and disruption of the full re-install and wondering if there is something else I can try ?

@Jason3S
Copy link
Collaborator

Jason3S commented Dec 13, 2024

@arturmarc,

That is frustrating.
What OS are you using?
I am assuming you have restarted VS Code.

The fact that it makes suggestions, implies that it is detecting the spell error, just not displaying it.

I'm guessing it is one of the settings.

Does it happen in all workspaces or only just one?

If it happens in all, then it is most likely a User setting.

If you can open the settings.json file and share any settings that start with "cSpell., it would help. No need to share word lists.

image

Any like this:
image

@arturmarc
Copy link
Author

arturmarc commented Dec 16, 2024

I am on mac os (recently updated to v15 but the problem was there before).
I had this problem for a while, so I upgraded and restarted multiple times already..

The problem happens in all workspaces.
I have played around with enabling various settings for cspell but figured best to leave all default so no specific cSpell settings other than "userWords".
I can share my whole settings json basically if that helps:

settings
{
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "gitlens.hovers.currentLine.over": "line",
  "workbench.editor.enablePreviewFromCodeNavigation": true,
  "workbench.editor.limit.value": 12,
  "workbench.editor.revealIfOpen": true,
  "workbench.editor.limit.perEditorGroup": true,
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "gitlens.hovers.enabled": false,
  "git.openDiffOnClick": false,
  "cSpell.userWords": [
    "...",    
  ],
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "javascript.inlayHints.functionLikeReturnTypes.enabled": true,
  // "editor.codeActionsOnSave": {
  //     "source.organizeImports": true
  // },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "typescript.updateImportsOnFileMove.enabled": "always",
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "yaml.schemas": {
    "file:///.../atlassian.atlascode-3.0.15/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml"
  },
  "atlascode.bitbucket.pipelines.monitorEnabled": false,
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[astro]": {
    "editor.defaultFormatter": "astro-build.astro-vscode"
  },
  "javascript.preferences.useAliasesForRenames": false,
  "typescript.preferences.useAliasesForRenames": false,
  "editor.inlineSuggest.enabled": true,
  "editor.linkedEditing": true,
  "javascript.preferences.importModuleSpecifier": "relative",
  "typescript.preferences.importModuleSpecifier": "relative",
  "explorer.autoRevealExclude": {
    "**/node_modules": false,
    "**/node_modulesss": true
  },
  "scm.autoReveal": false,
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[njk]": {
    "editor.defaultFormatter": "douglaszaltron.nunjucks-vscode-extensionpack"
  },
  "diffEditor.ignoreTrimWhitespace": false,
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.organizeImports": "never"
  },
  "supermaven.enable": {
    "*": true
  },
  "supermaven.enableFixWithSupermaven": false,
  "workbench.editor.limit.enabled": true,
  "files.autoSave": "onFocusChange",
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "typewscript": "javascriptreact"
  },
  "search.exclude": {
    "**/.next": true,
    "**/dist": true
  },
  "editor.pasteAs.preferences": ["text.updateImports"],
  "typescript.experimental.expandableHover": true
}

@Jason3S
Copy link
Collaborator

Jason3S commented Dec 16, 2024

@arturmarc,

I tried your settings and things still work for me.

Would you try adding the following to your settings:

    "cSpell.textDecorationThickness": "2px",
    "cSpell.textDecorationColor": "#ff8f34",
    "cSpell.useCustomDecorations": true,
    "cSpell.textDecorationStyle": "wavy",

It will make the issues really stand out with orange squiggles:

image

@arturmarc
Copy link
Author

I've tried that.. no joy :(
I don't think it's an appearance problem, it looks like this part of the extension's functionality is just wotking .. either is not starting up or it died or malfunctioning 🤷‍♂️

I also looked at the logs (show logs -> extension host), but the only cSpell thing I see there is this warning:
[warning] DiagnosticCollection with name 'cSpell' does already exist.
Doesn't seem like it's related, but maybe ?

I think this is something pretty obscure :( . My editor must have gotten into a "weird" state after un upgrade or because of some other extension or smth, and it's causing this bug.

I tried disabling most of my extensions as well, but does not help.

I guess if there is no cached file to delete or something else to reload, I will just go with re-installing my vs-code route 😮‍💨. Or do you have any other ideas ?

@Jason3S
Copy link
Collaborator

Jason3S commented Dec 17, 2024

@arturmarc,

Restart VS Code

Have you restarted VSCode recently? It is acting like something is stuck running.

  1. Quit VS Code.

  2. Check the Activity Monitor for an VS Code processes that are still running.
    image

  3. Kill them.

  4. start VS Code.

Manual Cleanup of Extension

The other option, is that the extension didn't correctly install. This can occasionally happen. But it requires you to delete the extension manually.

rm -rf ~/.vscode/extensions/streetsidesoftware.code-spell-checker-*

@heinwol
Copy link

heinwol commented Dec 20, 2024

Have the same issue after update of vscode to 1.96.0 and maybe a following update of cSpell to 4.0.21. Tried solutions of @Jason3S, didn't help, as well as with the gui way to uninstalling extensions. The same warning in extension host as @arturmarc encountered:

[warning] DiagnosticCollection with name 'cSpell' does already exist.

I haven't tried removing all user config and cache for vscode for now.

@Jason3S
Copy link
Collaborator

Jason3S commented Dec 21, 2024

@heinwol,

Did you try restarting quitting VS Code and see if there were any Code Helpers still running? I would like to find out the cause of the issue.

@heinwol
Copy link

heinwol commented Dec 21, 2024

@Jason3S thank you for your desire to help, I appreciate it! Yes, i removed the extension after having ensured all code processes died. Well, didn't help.

Actually, I changed my mind and removed all user config/cache for vscode, namely

~/.cache/vscode-cpptools/
~/.config/Code/
~/.vscode/

After that cSpell (including settings for custom decorations) worked correctly. I had to tweak some non-synced settings of course. Nonetheless, I believe it's a reasonable tradeoff: just 7 minutes of messing with settings and I'm all ready to go.

@Jason3S
Copy link
Collaborator

Jason3S commented Dec 21, 2024

@heinwol,

I wonder what the setting was that stopped it from working.

@heinwol
Copy link

heinwol commented Dec 21, 2024

@Jason3S I don't think it's in settings.json as this is mostly synced via vscode -- and after reinstall this file appeared to be practically unchanged. Maybe it was some cache in ~/.vscode, or other extension, can't say more precisely.

@distbit0
Copy link

distbit0 commented Jan 6, 2025

I am getting the same error.

@distbit0
Copy link

distbit0 commented Jan 6, 2025

Here is my user settings.json

settings.json
{
    "workbench.editor.focusRecentEditorAfterClose": false,
    "workbench.editorAssociations": {
        "*.txt": "default"
    },
    "explorer.confirmDragAndDrop": false,
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "[python]": {
        "editor.formatOnType": true
    },
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "files.simpleDialog.enable": true,
    "explorer.confirmDelete": false,
    "git.confirmSync": false,
    "git.autofetch": true,
    "git.enableSmartCommit": true,
    "terminal.integrated.scrollback": 10000,
    "editor.detectIndentation": false,
    "markdown-preview-enhanced.previewTheme": "solarized-dark.css",
    "prettier.enableDebugLogs": true,
    "editor.semanticHighlighting.enabled": true,
    "files.associations": {
        "*.py": "python"
    },
    "workbench.iconTheme": null,
    "speech.speed": 1.5,
    "VSCodeCounter.exclude": [
        "**/.gitignore",
        "**/.vscode/**",
        "**/node_modules/**",
        "*.pyc",
        "*json"
    ],
    "editor.inlineSuggest.enabled": true,
    "chatgpt.chromiumPath": "brave-browser",
    "chatgpt.emailAddress": "[email protected]",
    "diffEditor.renderSideBySide": false,
    "github.copilot.enable": {
        "*": false,
        "plaintext": false,
        "markdown": false,
        "scminput": false
    },
    "http.proxySupport": "off",
    "prettier.documentSelectors": [
        "*.py"
    ],
    "prettier.prettierPath": "npx prettier",
    "prettier.useEditorConfig": false,
    "python.formatting.provider": "black",
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.folding": true,
    "editor.glyphMargin": false,
    "editor.lineDecorationsWidth": 0,
    "github.copilot.advanced": {},
    "git.openRepositoryInParentFolders": "never",
    "security.workspace.trust.untrustedFiles": "open",
    "window.menuBarVisibility": "toggle",
    "rift.codeEditModel": "openai:gpt-4",
    "rift.chatModel": "openai:gpt-4",
    "rift.openaiKey": "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",
    "python.analysis.extraPaths": [
        "/home/pimania/.vscode/extensions/continue.continue-0.1.26-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.1.27-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.1.28-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.1.29-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.0.412-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.0.413-linux-x64"
    ],
    "python.autoComplete.extraPaths": [
        "/home/pimania/.vscode/extensions/continue.continue-0.1.26-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.1.27-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.1.28-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.1.29-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.0.412-linux-x64",
        "/home/pimania/.vscode/extensions/continue.continue-0.0.413-linux-x64"
    ],
    "workbench.startupEditor": "none",
    "settingsSync.ignoredExtensions": [
        "tintinweb.vscode-solidity-language"
    ],
    "codeium.enableExplainProblem": false,
    "codeium.enableConfig": {
        "*": true,
        "markdown": false
    },
    "window.zoomLevel": 2,
    "diffEditor.codeLens": true,
    "editor.inlineSuggest.suppressSuggestions": true,
    "bitoAI.codeCompletion.setAutoCompletionTriggerLogic": 250,
    "bitoAI.codeCompletion.enableAutoCompletion": true,
    "workbench.activityBar.location": "hidden",
    "extensions.experimental.affinity": {
        "asvetliakov.vscode-neovim": 1
    },
    "vscode-neovim.ctrlKeysForInsertMode": [
        "a",
        "c",
        "d",
        "o",
        "r",
        "t",
        "u",
        "w"
    ],
    "vscode-neovim.ctrlKeysForNormalMode": [
        "a",
        "c",
        "d",
        "e",
        "f",
        "i",
        "k",
        "l",
        "o",
        "r",
        "t",
        "u",
        "v",
        "w",
        "x",
        "y",
        "z",
        "/",
        "]",
        "right",
        "left",
        "up",
        "down",
        "backspace",
        "delete"
    ],
    "keyboard.dispatch": "keyCode",
    "cody.autocomplete.formatOnAccept": true,
    "workbench.editor.revealIfOpen": true,
    "bitoAI.codeCompletion.enableCommentToCode": true,
    "editor.inlineSuggest.showToolbar": "onHover",
    "codeium.aggressiveShutdown": true,
    "codeium.enableCodeLens": false,
    "codeium.enableSearch": true,
    "todomd.defaultFile": "/home/pimania/notes/Work/Fringe/Fringe todo.md",
    "todomd.sortTagsView": "count",
    "todo.symbols.box": "[ ]",
    "todo.symbols.cancelled": "[c]",
    "todo.symbols.done": "[x]",
    "todo.archive.remove.emptyProjects": false,
    "todo.file.defaultContent": "",
    "todo.file.name": "*todo.md",
    "todo.archive.project.enabled": false,
    "todo.file.include": [
        "**/TODO",
        "**/TODOS",
        "**/*.TODO",
        "**/*.TODOS",
        "**/*.todo",
        "**/*.todos",
        "**/*.task",
        "**/*.tasks",
        "**/*.taskpaper",
        "**/todolist.txt",
        "**/*todo.md"
    ],
    "todo.embedded.view.sort": "label",
    "editor.indentSize": "tabSize",
    "solidity.telemetry": true,
    "solidity.compileUsingRemoteVersion": "v0.8.18+commit.87f61d96",
    "editor.lineNumbers": "relative",
    "supermaven.logFilePath": "",
    "wordcounter.side.left": [],
    "markdown.extension.toc.updateOnSave": false,
    "markdown.extension.list.indentationSize": "inherit",
    "markdownShortcuts.bullets.marker": "-",
    "typescript.updateImportsOnFileMove.enabled": "always",
    "editor.wordWrap": "on",
    "markdown.extension.theming.decoration.renderLink": true,
    "explorer.autoReveal": false,
    "workbench.panel.opensMaximized": "always",
    "autoHide.panelDelay": 3,
    "autoHide.autoHidePanel": false,
    "autoHide.sideBarDelay": 1,
    "diffEditor.hideUnchangedRegions.minimumLineCount": 30,
    "python.terminal.activateEnvInCurrentTerminal": true,
    "autoHide.hideOnOpen": true,
    "autoHide.autoHideRightSideBar": false,
    "wordcounter.side.right": [
        "word"
    ],
    "codetime.statusBarInfo": "24h",
    "codingTracker.showStatus": false,
    "autoHide.autoHideSideBar": false,
    "debug.disassemblyView.showSourceCode": false,
    "cSpell.userWords": [
    ],
    "cSpell.language": "en,en-GB,en-AU,en-US",
    "search.quickOpen.history.filterSortOrder": "recency",
    "supermaven.enable": {
        "*": true,
        "markdown": true
    },
    "foam.completion.label": "title",
    "[markdown]": {
        "editor.defaultFormatter": "yzhang.markdown-all-in-one"
    },
    "vscodeMarkdownNotes.allowPipedWikiLinks": true,
    "vscodeMarkdownNotes.slugifyCharacter": "NONE",
    "vscodeMarkdownNotes.newNoteTemplate": "",
    "editor.definitionLinkOpensInPeek": true,
    "supermaven.allowGitignore": false,
    "cSpell.enabledFileTypes": {
        "python": false
    },
    "explorer.confirmPasteNative": false,
    "editor.unicodeHighlight.ambiguousCharacters": false,
    "editor.minimap.enabled": false,
    "editor.accessibilitySupport": "off",
    "cSpell.enabled": true,
    "workbench.colorTheme": "RBE Matrix Skin Theme"
}

@Jason3S
Copy link
Collaborator

Jason3S commented Jan 6, 2025

@distbit0,

Thank you for sharing.

  • Are you seeing the issues in the spell checker, but not on the screen?
  • Do you have a lot of "problems" listed? If there are many problems, VS Code will stop showing them.
  • Are other problems visible? Is it broken only for the spell checker or all coding issues?

@distbit0
Copy link

distbit0 commented Jan 6, 2025

Are you seeing the issues in the spell checker, but not on the screen?

Yeah I can see the issues in the spellchecker.
image

Do you have a lot of "problems" listed? If there are many problems, VS Code will stop showing them.

0 problems listed

Are other problems visible? Is it broken only for the spell checker or all coding issues?

Other code problems are visible/underlined

@Jason3S
Copy link
Collaborator

Jason3S commented Jan 7, 2025

@distbit0,

Please make sure the cSpell.diagnosticLevel is set to Information, not Hint:
image

Note: The setting might be in the workspace or folder.

@distbit0
Copy link

distbit0 commented Jan 8, 2025

Unfortunately that didn't solve the problem :/ @Jason3S

I just set it to Information and restarted vscode, yet still no error highlights/underlining in the editor

@arturmarc
Copy link
Author

For me nothing worked so I followed @heinwol 's example, and did a full re-install. Including deleting /Library/Application Support/Code (just deleting ~/.vscode without re-install didn't work).

Syncing the settings made it quick and relatively painless.
Seems to be the best solution so far for anyone encountering this issue.

@heinwol
Copy link

heinwol commented Jan 8, 2025

A small note: I didn't reinstall vscode itself since it's, well, a nix package and therefore all the application files are read-only. So the problem is not in the actual vscode program

@distbit0
Copy link

distbit0 commented Jan 9, 2025

Ok yeah that also worked for me. thx

I just deleted (in linux) ~/.vscode and also ~/.config/Code then restored my settings from github

@Articles-Joey
Copy link

I am also getting this issue. Issues show in the spell checker panel but not on the screen via underline. This started around a week ago on Windows 11. At this point, I tried all suggestions besides reinstalling VScode. I guess I'm going to try that now.

@Jason3S
Copy link
Collaborator

Jason3S commented Jan 9, 2025

@arturmarc,

Just to verify. You did not hide image the spelling issues. Click on {} to see:

image

If you did, click the menu and Show Spelling Issues.
image

There is also a command to toggle the visibility.

@distbit0, @arturmarc, and @heinwol is it possible that this happened to you?

Please try hiding and showing the spelling issues.

@Jason3S
Copy link
Collaborator

Jason3S commented Jan 9, 2025

The commands:

> Spell: Show Spelling Issues
> Spell: Hide Spelling Issues
> Spell: Toggle Spelling issues
image

@distbit0
Copy link

@Jason3S hiding spelling issues as you describe causes the same issue I was having before, and unhiding them resolves it. I can not say for sure though whether this was the actual cause of my problem, as I didn't check the state of this setting when I was having the issue. I also do not recall ever intentionally hiding spelling issues, so not sure how this setting would have ended up in the state necessary to manifest the issue.

@frantisekhanzlikbl
Copy link

I can confirm having an issue that manifested in ways consistent with what was described here, and toggling that setting fixing it.

I don't understand how it would get set to that state, though, as I wasn't even aware that the setting existed, and certainly did not toggle it intentionally.

if it could be of any relevance, I also have both vscode (well, vscodium) and the extension installed via nix, and an impermanence setup that wipes everything outside .config/VSCodium/User/{globalStorage,workspaceStorage} on every boot, which is likely where the setting is stored.

@Jason3S
Copy link
Collaborator

Jason3S commented Jan 11, 2025

The ability to hide/show issues was added to help with a general complaint that "spelling issues were cluttering the screen" when the user was trying to do something different. The command are designed to easily toggle the visibility (in the editor and problems pane) of issues while still keeping track of them in the spelling pane.

The spell checker uses ExtensionContext.globalState to store the visibility. By default issues should be visible, but it persists between restarts of VSCode. The visible state should not be synced across machines.

There are several ways to hide issues. The easiest is to right click on an issue:
image

The challenge here is how to make is clear that the issues have been hidden and how to show them again.

@hilja
Copy link

hilja commented Jan 11, 2025

My 2¢: removing deprecated configs fixed it.

@heinwol
Copy link

heinwol commented Jan 12, 2025

In reply to #3915 (comment)

@Jason3S, toggling the switch option described brings the editor to the state resembling the one with the issue we encountered: cSpell reports several issues (in its appropriate tab at the bottom of the screen), but they're not squiggled in text. If I remember correctly, the issues were also not reported in the "problems" tab. Therefore it could be we just had the "toggle show spelling issues" switched somehow, though I'm sure I didn't do it manually

@Articles-Joey
Copy link

In reply to #3915 (comment)

I feel dumb, this fixed it for me... Thank you! I have no clue how or why it got hidden as this command is not in my history.

@Jason3S
Copy link
Collaborator

Jason3S commented Jan 14, 2025

@Articles-Joey,

I think there is a bug here. It has happened to me. I'm just not sure of the cause.

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

No branches or pull requests

7 participants