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

Random file save failures #132136

Closed
rob99 opened this issue Sep 2, 2021 · 7 comments
Closed

Random file save failures #132136

rob99 opened this issue Sep 2, 2021 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-serialization

Comments

@rob99
Copy link

rob99 commented Sep 2, 2021

Issue Type: Bug

Behaviour

When editing a ipynb file, seeing some erratic behaviour. Often when saving file, tab icon turns from dot to X (indicating file has saved) yet the file has not saved. Sometimes screen flickers and changes are lost (previously saved file is reloaded). Or else closing and reopening the file I can see that changes have not been saved. Also can confirm file is not saving by monitoring ipynb file from Notepad++

Other oddness: Running a cell, sometimes the timer disappears, or cell output disappears, and it looks like the cell has finished running (but it has not).

I have completely uninstalled and reinstalled VS Code and extensions. Also manually deleted %appdata%/Roaming/Code and %home%/.vscode.

Expected

File to save

Actual

File not saving (on random occasions). Old file is reloaded, changes are lost.

Steps to reproduce:

  1. Not known.

Diagnostic data

Version: 1.59.1 (user setup)

Commit: 3866c35

Date: 2021-08-19T11:56:46.957Z

Electron: 13.1.7

Chrome: 91.0.4472.124

Node.js: 14.16.0

V8: 9.1.269.36-electron.0

OS: Windows_NT x64 10.0.19041

"Python" channel in the OUTPUT panel

User Settings


 

defaultLS: {"defaultLSType":"Pylance"}

 

showStartPage: true

 

downloadLanguageServer: true

 

envFile: "<placeholder>"

 

venvPath: "<placeholder>"

 

venvFolders: "<placeholder>"

 

condaPath: "<placeholder>"

 

pipenvPath: "<placeholder>"

 

poetryPath: "<placeholder>"

 

languageServer: "Pylance"

 

logging: {"level":40}

 

linting

• enabled: true

• cwd: "<placeholder>"

• Flake8Args: "<placeholder>"

• flake8Enabled: false

• flake8Path: "<placeholder>"

• lintOnSave: true

• banditArgs: "<placeholder>"

• banditEnabled: false

• banditPath: "<placeholder>"

• mypyArgs: "<placeholder>"

• mypyEnabled: false

• mypyPath: "<placeholder>"

• pycodestyleArgs: "<placeholder>"

• pycodestyleEnabled: false

• pycodestylePath: "<placeholder>"

• prospectorArgs: "<placeholder>"

• prospectorEnabled: false

• prospectorPath: "<placeholder>"

• pydocstyleArgs: "<placeholder>"

• pydocstyleEnabled: false

• pydocstylePath: "<placeholder>"

• pylamaArgs: "<placeholder>"

• pylamaEnabled: false

• pylamaPath: "<placeholder>"

• pylintArgs: "<placeholder>"

• pylintEnabled: true

• pylintPath: "<placeholder>"

• pylintUseMinimalCheckers: true

 

analysis

• completeFunctionParens: false

• autoImportCompletions: true

• autoSearchPaths: "<placeholder>"

• stubPath: "<placeholder>"

• diagnosticMode: "openFilesOnly"

• extraPaths: "<placeholder>"

• useLibraryCodeForTypes: true

• typeCheckingMode: "off"

• errors: []

• warnings: []

• information: []

• disabled: []

• typeshedPaths: "<placeholder>"

• cacheFolderPath: "<placeholder>"

• memory: {"keepLibraryAst":false}

• logLevel: "Error"

 

sortImports

• args: "<placeholder>"

• path: "<placeholder>"

 

formatting

• autopep8Args: "<placeholder>"

• autopep8Path: "<placeholder>"

• provider: "autopep8"

• blackArgs: "<placeholder>"

• blackPath: "<placeholder>"

• yapfArgs: "<placeholder>"

• yapfPath: "<placeholder>"

 

autoComplete

• addBrackets: false

• extraPaths: "<placeholder>"

• showAdvancedMembers: true

• typeshedPaths: "<placeholder>"

 

workspaceSymbols

• ctagsPath: "<placeholder>"

• enabled: false

• exclusionPatterns: ["**/site-packages/**"]

• rebuildOnFileSave: true

• rebuildOnStart: true

• tagFilePath: "<placeholder>"

 

testing

• cwd: "<placeholder>"

• debugPort: 3000

• nosetestArgs: "<placeholder>"

• nosetestsEnabled: false

• nosetestPath: "<placeholder>"

• promptToConfigure: true

• pytestArgs: "<placeholder>"

• pytestEnabled: false

• pytestPath: "<placeholder>"

• unittestArgs: "<placeholder>"

• unittestEnabled: false

• autoTestDiscoverOnSaveEnabled: true

 

terminal

• activateEnvironment: true

• executeInFileDir: "<placeholder>"

• launchArgs: "<placeholder>"

 

experiments

• enabled: true

• optInto: []

• optOutFrom: []

 

insidersChannel: "off"

 

tensorBoard

• logDirectory: "<placeholder>"

 

Extension version: 2021.8.1236758218

VS Code version: Code 1.59.1 (3866c35, 2021-08-19T11:56:46.957Z)

OS version: Windows_NT x64 10.0.19041

Restricted Mode: No

System Info

|Item|Value|

|---|---|

|CPUs|Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)|

|GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled|

|Load (avg)|undefined|

|Memory (System)|15.88GB (3.96GB free)|

|Process Argv||

|Screen Reader|no|

|VM|0%|

A/B Experiments

vsliv368cf:30146710

vsreu685:30147344

python383cf:30185419

vspyt653:30270858

pythonvspyt602:30300191

vspor879:30202332

vspor708:30202333

vspor363:30204092

pythonvspyt639:30300192

pythontb:30283811

pythonvspyt551cf:30345471

pythonptprofiler:30281270

vshan820:30294714

vstes263cf:30335440

pythondataviewer:30285071

pythonvsuse255:30340121

vscod805cf:30301675

pythonvspyt200:30340761

vscextlang:30333561

binariesv615:30325510

vsccppwtct:30329789

pythonvssor306:30344512

bridge0708:30335490

pygetstartedt2:30360495

bridge0723:30353136

javagetstartedc:30351792

vsdyn321cf:30356811

vscus224cf:30358040

 

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-jupyter Sep 2, 2021
@DonJayamanne DonJayamanne removed their assignment Sep 2, 2021
@bpasero bpasero assigned rebornix and unassigned bpasero Sep 3, 2021
@rebornix
Copy link
Member

@rob99 can you please update to the latest Stable and see if you can still reproduce?

@rebornix rebornix added the info-needed Issue requires more information from poster label Sep 15, 2021
@rob99
Copy link
Author

rob99 commented Sep 16, 2021

@rebornix I have updated to the August release and the problem has not reoccurred.

@rob99
Copy link
Author

rob99 commented Oct 14, 2021

I have now updated to v1.61 and the problem is back

@rebornix
Copy link
Member

File not saving (on random occasions). Old file is reloaded, changes are lost.

From what you described above, it's probably the same as #135516

@rebornix rebornix added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Oct 22, 2021
@julie777
Copy link

I am not sure if my problem is the same.

I frequently use ctrl-k, s to save all files and sometimes not all of them are saved.

@rebornix
Copy link
Member

rebornix commented Dec 8, 2022

It would be great if anyone of you open Developer Tools and share the logs there if you run into this again.

@rebornix rebornix added the info-needed Issue requires more information from poster label Dec 8, 2022
@VSCodeTriageBot
Copy link
Collaborator

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!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-serialization
Projects
None yet
Development

No branches or pull requests

8 participants
@rob99 @roblourens @rebornix @bpasero @DonJayamanne @julie777 @VSCodeTriageBot and others