Add to current chat / add to new chat not working

I’ve tried changing the shortcuts, but no change - neither “add symbol to new chat” or “add symbol to current chat” actually insert any code into chat. Aside, but probably related - I’ve noticed I can’t even paste code into the chat window anymore. Nothing appears. I can chat as usual, but no code pasting is allowed.

Version: 0.42.3
VSCode Version: 1.93.1
Commit: 949de58bd3d85d530972cac2dffc4feb9eee1e40
Date: 2024-10-16T17:56:07.754Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

Hi @jamesbruce

How are you trying to insert the code? Could you record this behavior on video?

Any method of inserting code into the chat window fails. Plain old copy paste doesn’t work. Shortcut keys don’t add the code. Right clicking and manually selecting add to code doesn’t work. But weirdly, copy-pasting regular text does - just not anything that includes any kind of code.

Video: https://youtu.be/h7eTve-J0MM 0 apologies about the noise in the background, my CO2 laser is burning away! :wink:

What do the logs show? Could you share them, please?

Hmm. main.log:

2024-10-24 10:44:00.491 [info] update#setState disabled
2024-10-24 10:44:00.492 [info] update#ctor - updates are disabled as there is no update URL
2024-10-24 10:44:00.683 [error] [storage state.vscdb] error checking size of src.vs.platform.reactivestorage.browser.reactiveStorageServiceImpl.persistentStorage.workspaceUser: Error: Unexpected number of rows - 0
2024-10-24 10:44:00.684 [error] [storage state.vscdb] error checking size of composer.composerData: Error: Unexpected number of rows - 0
2024-10-24 10:44:01.004 [error] [storage state.vscdb] error checking size of workbench.panel.aichat.view.aichat.chatdata: Error: Unexpected number of rows - 0

others don’t appear to have anything significant, except this under window1 folder, perhaps?

2024-10-24 10:44:01.015 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'ms-toolsai.datawrangler' wants API proposal 'debugFocus' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-10-24 10:44:01.015 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'apidev.azure-api-center' wants API proposal 'chatParticipant' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-10-24 10:44:01.015 [warning] Via 'product.json#extensionEnabledApiProposals' extension 'apidev.azure-api-center' wants API proposal 'languageModels' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-10-24 10:44:01.649 [error] Extension 'ms-python.python' wants API proposal 'envShellEvent' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-10-24 10:44:01.650 [error] Extension 'ms-python.python' wants API proposal 'saveEditor' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
2024-10-24 10:44:01.660 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.autoImportCompletions'. This property is already registered.
2024-10-24 10:44:01.660 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.autoSearchPaths'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.stubPath'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.diagnosticMode'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.extraPaths'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.useLibraryCodeForTypes'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.typeCheckingMode'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.diagnosticSeverityOverrides'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.logLevel'. This property is already registered.
2024-10-24 10:44:01.661 [warning] [ms-python.vscode-pylance]: Cannot register 'python.analysis.typeshedPaths'. This property is already registered.
2024-10-24 10:44:01.662 [warning] [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered.
2024-10-24 10:44:01.669 [error] Ignoring cortex-debug.armToolchainPath.linux as cortex-debug.armToolchainPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.armToolchainPath.osx as cortex-debug.armToolchainPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.armToolchainPath.windows as cortex-debug.armToolchainPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.JLinkGDBServerPath.linux as cortex-debug.JLinkGDBServerPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.JLinkGDBServerPath.osx as cortex-debug.JLinkGDBServerPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.JLinkGDBServerPath.windows as cortex-debug.JLinkGDBServerPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.openocdPath.linux as cortex-debug.openocdPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.openocdPath.osx as cortex-debug.openocdPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.openocdPath.windows as cortex-debug.openocdPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.pyocdPath.linux as cortex-debug.pyocdPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.pyocdPath.osx as cortex-debug.pyocdPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.pyocdPath.windows as cortex-debug.pyocdPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.PEGDBServerPath.linux as cortex-debug.PEGDBServerPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.PEGDBServerPath.osx as cortex-debug.PEGDBServerPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.PEGDBServerPath.windows as cortex-debug.PEGDBServerPath is null
2024-10-24 10:44:01.670 [error] Ignoring cortex-debug.stutilPath.linux as cortex-debug.stutilPath is null
2024-10-24 10:44:01.671 [error] Ignoring cortex-debug.stutilPath.osx as cortex-debug.stutilPath is null
2024-10-24 10:44:01.671 [error] Ignoring cortex-debug.stutilPath.windows as cortex-debug.stutilPath is null
2024-10-24 10:44:01.671 [error] Ignoring cortex-debug.stlinkPath.linux as cortex-debug.stlinkPath is null
2024-10-24 10:44:01.673 [error] Ignoring cortex-debug.stlinkPath.osx as cortex-debug.stlinkPath is null
2024-10-24 10:44:01.673 [error] Ignoring cortex-debug.stlinkPath.windows as cortex-debug.stlinkPath is null
2024-10-24 10:44:01.673 [error] Ignoring cortex-debug.stm32cubeprogrammer.linux as cortex-debug.stm32cubeprogrammer is null
2024-10-24 10:44:01.673 [error] Ignoring cortex-debug.stm32cubeprogrammer.osx as cortex-debug.stm32cubeprogrammer is null
2024-10-24 10:44:01.673 [error] Ignoring cortex-debug.stm32cubeprogrammer.windows as cortex-debug.stm32cubeprogrammer is null
2024-10-24 10:44:03.529 [info] Started local extension host with pid 41081.
2024-10-24 10:44:04.123 [info] [perf] Render performance baseline is 17ms
2024-10-24 10:44:19.415 [error] Cannot read properties of undefined (reading 'findIndex'): TypeError: Cannot read properties of undefined (reading 'findIndex')
    at $.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4426:77252)
    at l.B (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:437:732)
    at l.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:437:949)
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4447:9885
2024-10-24 10:44:48.845 [error] Cannot read properties of undefined (reading 'toResource'): TypeError: Cannot read properties of undefined (reading 'toResource')
    at f.m (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3751:19671)
    at f.getMagicURIForText (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3751:19452)
    at Object.endElementHook (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4086:43739)
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4089:9152
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4089:9812
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1346:13201
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4089:9892
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185733
    at ne (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185501)
    at Object.fn (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185726)
    at Ye (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:188643)
    at We (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:188410)
    at Je (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190033)
    at Pe (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:191284)
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190898
    at Te (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190213)
    at De (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190891)
    at Te (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190225)
    at De (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190891)
    at Te (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190225)
    at ie (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185422)
    at N.B [as setChatData] (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:207570)
    at Pe.ac (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4447:6559)
    at Pe.submitUnifiedChat (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4428:4953)
2024-10-24 10:44:49.859 [error] Cannot read properties of undefined (reading 'toResource'): TypeError: Cannot read properties of undefined (reading 'toResource')
    at f.m (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3751:19671)
    at f.getMagicURIForText (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3751:19452)
    at Object.endElementHook (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4086:43739)
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4089:9152
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4089:9812
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1346:13201
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4089:9892
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185733
    at ne (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185501)
    at Object.fn (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185726)
    at Ye (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:188643)
    at We (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:188410)
    at Je (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190033)
    at Pe (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:191284)
    at vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190898
    at Te (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190213)
    at De (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190891)
    at Te (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190225)
    at De (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190891)
    at Te (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:190225)
    at ie (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:185422)
    at N.B [as setChatData] (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:266:207570)
    at Pe.ac (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4447:6559)
    at Pe.submitUnifiedChat (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4428:4953)

Try starting up in cursor --disable-extensions mode and see if it works. I see issues with the extensions in your logs.

That seems to have done the trick! Almost - right click and “add to current chat” doesn’t work, but the keyboard shortcuts and new chat do, so that’s good enough.

So, is a more permanent solution to just kill all my extensions then enable them one by one and find the culprit?

Thanks!

1 Like

Yes, that’s always a good approach when you suspect an extension may be causing issues.