Closed RedCMD closed 6 months ago
Does this reproduce in the latest VS Code insiders build with all extensions disabled?
If it does, please share the file which causes this
I just experienced this while doing a first test with Github Copilot inline chat refactorisation
Cannot read properties of undefined (reading 'getModelColumnOfViewPosition'
)This was repetable.
Interestingly, when I only selected the first 10 LOC it worked as expected.
Version: 1.85.0 (user setup)
Commit: af28b32d7e553898b2a91af498b1fb666fdebe0c
Date: 2023-12-06T20:48:09.019Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19044
Github Copilot v1.141.594 (pre-release)
Please share the TS code and copilot prompt you used
I have experienced the same error under the same circumstances as mjbvz
I recently ran into the same issue when asking Copilot to write a simple ETL script using TS and Node 20. Didn't resolve even when I disabled all other extensions. There's nothing in logs other than successful [fetchCompletions]
requests
Make this code take every file inside ../api/schemas/ (including nested files) and compile it using compileFromFile() and then write the result to a corresponding file in ../api/types overwriting if needed
win-ca
installed?: falsemac-ca
installed?: falseI too got the same error for Github Co-pilot. It stopped generating the response with the below error
If i modify this prompt to "Convert to module" it generated the response.
FYI
Same issue here. Only happens when I select all lines in a file and use CTRL + I to request an edit.
Same issue here. What's strange is that the prompt worked fine for another file, that uses the same structure overall. Cannot share the prompt publicly as it uses some information from a database.
If this happens to anyone just restart the application it solves it everytime it appears for me
Hey @alexdima, this issue might need further attention.
@RedCMD, you can help us out by closing this issue if the problem no longer exists, or adding more information.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
2nd time I got the error
Cannot read properties of undefined (reading 'getModelColumnOfViewPosition')
has only happened twice both times it was when I ctrl+A ctrl+X all the code in a
.tmLanguage.json
fileWindows 11 x64 zip installation VSCode 1.8.4 stable
related: https://github.com/microsoft/vscode/issues/97449