Closed justorez closed 1 year ago
Please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions.
I'm having this problem with every extensions disabled and just {}
for my user settings.json and my profile settings.json. It's not just when creating a new file, I flat-out can't type the period character at all. When I press that key, I get a command '' not found
alert exactly like OP.
Weirdly, if I create a new, blank profile, the period key starts working again. But on any of my existing profiles the issue occurs right from a fresh start, with no extensions and fully defaulted settings.
Oh my god. I just tried creating a new profile from existing to continue testing, and it opened what I'm assuming is a new UI feature to allow me to choose what to migrate from the existing profile. I clicked on keybindings.json
, and here's what's at the very top of the file:
// Place your key bindings in this file to overwrite the defaults
[
{
"key": ".",
"command": ""
},
// ...
I am 100% confident I did not configure that myself. Is this possibly some sort of legacy entry that was just ignored before the latest update?
@gjsjohnmurray I disabled all extensions, but the problem still persists.
@gjsjohnmurray I disabled all extensions, but the problem still persists.
I have same problem, and tried to disable all ext, it's doesn't work.
From Command Palette (F1) the Preferences: Open Keyboard Shortcuts (JSON)
command will let you check directly for an unexpected entry like the one mentioned at https://github.com/microsoft/vscode/issues/181469#issuecomment-1534168939
Some weird keybindings appeared since the last update. Did not add either of these. The first one makes it so the enter key does not work in my code editor. Removing these does fix the issues.
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "enter", "command": ""},
{ "key": "period", "command": ""}
//"when": "acceptSuggestionOnEnter && editorTextFocus && suggestWidgetVisible" },
]
To: @tgreiser @ZedG2 @dannymcgee and anyone who faces this bug
I'm trying to figure out how to reproduce this and learn if you share common setup.
Could you please share your setup - VS Code info, System Info and Installed Extensions?
For VS Code info, you can invoke command "Help: About" from the Command Palette (press F1
to open the Command Palette).
For System info and Installed extensions, you can invoke command "Help: Report Issue..." , click on "show" for System info and Enabled extensions and copy paste those here.
It seems to me that you can invoke command "Preferences: Open Keyboard Shortcuts (JSON)" from the Command Palette (press F1
to open the Command Palette) and remove suspicious keybindings:
{ "key": "enter", "command": ""},
{ "key": "period", "command": ""}
Sure thing, here's my "Default" profile. I haven't modified this one since the issue cropped up, and it is affected.
Version: 1.78.0 Commit: 252e5463d60e63238250799aef7375787f68b4ee Date: 2023-05-03T20:09:00.748Z Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.78.0 Chrome/108.0.5359.215 Electron/22.4.8 Safari/537.36
Please, share your setup to come up with repro
To: @tgreiser @ZedG2 @dannymcgee and anyone who faces this bug
I'm trying to figure out how to reproduce this and learn if you share common setup.
Could you please share your setup - VS Code info, System Info and Installed Extensions?
For VS Code info, you can invoke command "Help: About" from the Command Palette (press
F1
to open the Command Palette).For System info and Installed extensions, you can invoke command "Help: Report Issue..." , click on "show" for System info and Enabled extensions and copy paste those here.
Workaround / temporary fix
It seems to me that you can invoke command "Preferences: Open Keyboard Shortcuts (JSON)" from the Command Palette (press
F1
to open the Command Palette) and remove suspicious keybindings:{ "key": "enter", "command": ""}, { "key": "period", "command": ""}
Sorry, it can't be reproduced. In fact, it was not added in the last version after update. In my settings sync log, it shows that it was added at least two years ago.
A colleague does not have the problem, but I had the same problem with the empty keybinding. When I start the new version, it mentioned that sync extension is depreciated so I uninstalled it. Could this be the reason? Can anybody confirm, that they also uninstalled the (old external) sync extension?
I had the same problem and had to remove the "."
keybinding from keybindings.json
I didn't set this keybinding myself
Related on Stack Overflow: Getting a command " not found error whenever I press "." (dot/period) key in VS Code 1.78. Several people are getting this issue and having { "key": ".", "command": "" }
mysteriously appear in their keybindings.json file.
If you have flagging or closing privileges on Stack Overflow, please help close duplicates as a dup of the post I linked above. Ex. This duplicate just popped up: can't use "." on all vscode interface.
I found that Path Intellisense
is recommending Windows users to add { "key": ".", "command": "" }
.
https://github.com/ChristianKohler/PathIntellisense#are-you-a-windows-user
I don't remember whether I added on my own but I did have { "key": ".", "command": "" }
in keybindings.json
and have Path Intellisense
installed.
@sapphi-red that's good info. I've updated my Stack Overflow answer. I also found ChristianKohler/PathIntellisense#220.
This should be fixed in this week's release - 1.78.2. Thank you everyone for help and sorry for the inconvenience!
Type: Bug
Cannot input the dot character when entering the file name for a new file. Alert
command " not found
.VS Code version: Code 1.78.0 (252e5463d60e63238250799aef7375787f68b4ee, 2023-05-03T20:09:00.748Z) OS version: Windows_NT x64 10.0.19043 Modes: Sandboxed: No
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz (4 x 3312)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.84GB (3.59GB free)| |Process Argv|--crash-reporter-id 03052edb-eb5a-4a74-b897-b3bae9454ab4| |Screen Reader|no| |VM|0%|
Extensions (20)
Extension|Author (truncated)|Version ---|---|--- gitignore|cod|0.9.0 vscode-eslint|dba|2.4.0 EditorConfig|Edi|0.16.4 prettier-vscode|esb|9.12.0 vscode-jest-runner|fir|0.4.60 code-runner|for|0.12.0 todo-tree|Gru|0.0.226 vscode-drawio|hed|1.6.6 vscode-env|Iro|0.1.0 svg|joc|1.5.2 intellij-idea-keybindings|k--|1.5.9 git-graph|mhu|1.30.0 vscode-language-pack-zh-hans|MS-|1.78.2023050309 subtitles-editor|pep|1.1.7 material-icon-theme|PKi|4.27.0 minapp-vscode|qiu|2.4.9 LiveServer|rit|5.7.9 even-better-toml|tam|0.19.0 pdf|tom|1.2.2 volar|Vue|1.6.4A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30610679 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30730054 vsccsb:30705552 azdwalk:30721579 pythonms35:30701012 pythonfmttext:30731395 fixhidewlkth:30730051 showsbindicator:30730056 ```