auxves / vscode-syncify

A reliable way of syncing your VSCode settings and extensions
https://arnohovhannisyan.space/vscode-syncify
MIT License
15 stars 1 forks source link

[BUG] Can't sync settings across windows and linux #23

Closed allenyllee closed 4 years ago

allenyllee commented 4 years ago

Syncify Version

I am using Syncify v3.5.2

Describe the bug

A clear and concise description of what the bug is.

I can upload settings on Windows or Ubuntu separately(with different repo), but I can not sync settings between Windows and Ubuntu (with same repo).

To Reproduce

Steps to reproduce the behavior:

  1. Do uploading on Windows(Linux) with new created repo
  2. Move to Linux(Windows) machine, do downloading
  3. Will generate error

Expected behavior

A clear and concise description of what you expected to happen.

Downloading without error

Screenshots

If applicable, add screenshots to help explain your problem.

Deepin 截圖_選取範圍_20191114115341

Additional context

Add any other context about the problem here.

My extension list:

13xforever.language-x86-64-assembly
Anjali.clipboard-history
DougFinke.vscode-pandoc
HexcodeTechnologies.vscode-prettydiff
RolandGreim.sharecode
Thog.vscode-asl
aaghabeiki.gitdiffer
aaron-bond.better-comments
aaronpowell.vscode-profile-switcher
adamhartford.vscode-base64
adamvoss.vscode-languagetool
adamvoss.vscode-languagetool-zh
ahmadawais.shades-of-purple
alefragnani.Bookmarks
alefragnani.project-manager
anseki.vscode-color
arnohovhannisyan.syncify
atian25.copy-syntax
attilathedud.data-converter
austin.code-gnu-global
b4456609.theme-atom-one-light
b5261b62-5943-495a-a2cd-2b281ddb7a76.vscode-nier-automata-theme
bierner.emojisense
brunnerh.file-properties-viewer
brunnerh.insert-unicode
cg-cnu.vscode-path-tools
chrisdias.vscode-opennewinstance
christian-kohler.npm-intellisense
chrmarti.regex
CoenraadS.bracket-pair-colorizer-2
Compulim.vscode-chinese-translation
cssho.vscode-svgviewer
dakara.transformer
dan-c-underwood.arm
DavidAnson.vscode-markdownlint
dbaeumer.vscode-eslint
deerawan.vscode-hasher
drphrozen.escaping-characters
eamodio.gitlens
ebicochineal.select-highlight-cochineal-color
eg2.vscode-npm-script
emilast.LogFileHighlighter
espresso3389.insert-file
everettjf.filter-line
evilz.vscode-reveal
fabiospampinato.vscode-highlight
fabiospampinato.vscode-open-in-terminal
fabiospampinato.vscode-open-multiple-files
fgcintra.longsight-light-theme
fisheva.eva-theme
formulahendry.code-runner
Fr43nk.seito-openfile
galarius.vscode-opencl
galend.vsc-lorem-cn
ginfuru.ginfuru-vscode-jekyll-syntax
ginfuru.vscode-jekyll-snippets
GrapeCity.gc-excelviewer
hars.CppSnippets
heaths.vscode-guid
heyimfuzz.banner-comments
holmescn.vscode-wordcount-cjk
HookyQR.beautify
Horla.horla-light-theme
humy2833.ftp-simple
IBM.output-colorizer
idleberg.emoji-code
Ikuyadeu.r
ilich8086.launcher
ionutvmi.path-autocomplete
ivanhofer.git-assistant
ivomachado.configure-c-compiling
iwyvi.chinolor
jakob101.RelativePath
jakob101.relativepathrefactor
James-Yu.latex-workshop
jbenden.c-cpp-flylint
jebbs.plantuml
jebbs.super-replace
jithurjacob.nbpreviewer
JohannesRudolph.file-ext-switcher
JonaDuran.my-light-theme
jrebocho.vscode-random
kenhowardpdx.vscode-gist
keroc.hex-fmt
kevinkyang.auto-comment-blocks
kisstkondoros.vscode-gutter-preview
kondratiev.sshextension
konstantin.wrapSelection
kriegalex.vscode-cudacpp
markvincze.code-fragments
mechatroner.rainbow-csv
mhutchie.git-graph
michelemelluso.gitignore
mitaki28.vscode-clang
mitchdenny.ecdc
mkxml.vscode-filesize
mohsen1.prettify-json
ms-azuretools.vscode-docker
MS-CEINTL.vscode-language-pack-zh-hant
ms-python.python
ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode-remote.remote-ssh-explorer
ms-vscode-remote.remote-wsl
ms-vscode-remote.vscode-remote-extensionpack
ms-vscode.cmake-tools
ms-vscode.powershell
msjsdiag.debugger-for-chrome
mushan.vscode-paste-image
nhoizey.gremlins
nopjmp.fairyfloss
octref.vetur
oderwat.indent-rainbow
paragdiwan.gitpatch
patrys.vscode-code-outline
pavan.VSNotebooksBeta
pflannery.vscode-versionlens
piotrpalarz.vscode-gitignore-generator
psioniq.psi-header
raymcclain.theme-timer
redhat.java
redhat.vscode-yaml
REditorSupport.r-lsp
rexebin.f12-open-file
ritwickdey.LiveServer
rpinski.shebang-snippets
rubbersheep.gi
ryu1kn.partial-diff
ryu1kn.text-marker
sadesyllas.vscode-workspace-switcher
satokaz.vscode-findinpage
searKing.preview-vscode
Shan.code-settings-sync
shardulm94.trailing-spaces
shd101wyy.markdown-preview-enhanced
shyykoserhiy.git-autoconfig
sidneys1.gitconfig
slevesque.shader
slevesque.vscode-hexdump
spywhere.guides
streetsidesoftware.code-spell-checker
TabNine.tabnine-vscode
teabyii.ayu
thekalinga.bootstrap4-vscode
tomphilbin.gruvbox-themes
torn4dom4n.latex-support
twxs.cmake
Tyriar.shell-launcher
uloco.theme-bluloco-light
vahidk.tensorflow-snippets
vincaslt.highlight-matching-tag
VisualStudioExptTeam.vscodeintellicode
vscjava.vscode-java-debug
vscjava.vscode-java-dependency
vscjava.vscode-java-pack
vscjava.vscode-java-test
vscjava.vscode-maven
wayou.vscode-todo-highlight
webfreak.debug
wix.vscode-import-cost
wmaurer.change-case
xaver.clang-format
xaver.theme-ysgrifennwr
xyz.local-history
YoshinoriN.current-file-path
yzane.markdown-pdf
yzhang.markdown-all-in-one
zeithaste.cursorCharCode
zoxon.monokai-light
auxves commented 4 years ago

@allenyllee Can you please reply with the full error?

allenyllee commented 4 years ago
error: The following untracked working tree files would be overwritten by checkout:
    globalStorage/humy2833.ftp-simple/ftp-simple.json
    globalStorage/mhutchie.git-graph/avatars/4bdb36e27701d86cc80919cba423d4c9.png
    globalStorage/mhutchie.git-graph/avatars/9377eac1c3103b715214d0c42091b218.png
    globalStorage/mhutchie.git-graph/avatars/b97d9081f8a51413ef1866d5d735aeba.jpeg
    snippets/c.json
    snippets/json.json
    snippets/plaintext.json
Please move or remove them before you switch branches.
Aborting
auxves commented 4 years ago

@allenyllee If you don't have any important files on the Linux machine, please try this:

  1. Run Syncify: Reset in the command palette
  2. Configure Syncify again
  3. Download
allenyllee commented 4 years ago

@arnohovhannisyan Still get this error....

auxves commented 4 years ago

@allenyllee Can you install this VSIX and try again?


To install the VSIX, follow the instructions here

allenyllee commented 4 years ago

@arnohovhannisyan Seems work! But I can't see any message about "download successfully", so I'm not sure it is actually work or not.

auxves commented 4 years ago

@allenyllee

I can't see any message about "download successfully", so I'm not sure it is actually work or not.

Can you test it by changing something on Windows and downloading on Linux?

allenyllee commented 4 years ago

@arnohovhannisyan I've changed some setting on Linux and trying to download on Windows, while download successful(it says: Already up to date), the actual settings.json doesn't change...

auxves commented 4 years ago

@allenyllee Have you verified that the remote repository has been updated with the new change?

allenyllee commented 4 years ago

...and I noticed that CPU usage was very high when I upload some changes on Windows, the whole process takes about 5 mins!

allenyllee commented 4 years ago

@arnohovhannisyan OK, I guess the reason is that: the uploading/downloading takes so long, but I have no information about the progress. So I repeat uploading/downloading many times, and modify some thing, then restart VScode. I don't know which is latest modify, until I can check it on my repo, but it's too late, because it takes about 5 mins to upload!

auxves commented 4 years ago

@allenyllee Can you try these steps on the computer with the performance issues?

Record button: image

Save button: image

  1. Launch VSCode from the command line with code --inspect-extensions=9993
  2. Run Developer: Show Running Extensions
  3. Click the record button on the top right corner
  4. Run Syncify: Upload
  5. Wait for the process to finish
  6. Click the record button again to stop the profiling
  7. Click the save button to save the profile
  8. Attach the profile by dragging it into the comment box
allenyllee commented 4 years ago

I have recorded it about 1000s, because I don't know the exact time it finished. So the txt file is very large, I can't attach it without compress.

CPU-20191115T025110.969Z.cpuprofile.zip

auxves commented 4 years ago

@allenyllee Can you try uploading with all extensions disabled besides Syncify? You have a lot of extensions, so that may be the cause.

Edit: Also, can you run code --status while uploading and reply with the results?

allenyllee commented 4 years ago

I have disabled all extensions and recorded it again, with the code --status result.

CPU-20191115T035235.554Z.cpuprofile.zip

C:\Users\allen>code --status

Version:          Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:49:35.976Z)
OS Version:       Windows_NT x64 10.0.18363
CPUs:             Intel(R) Core(TM) i5-6198DU CPU @ 2.30GHz (4 x 2400)
Memory (System):  11.87GB (1.46GB free)
VM:               0%
Screen Reader:    no
Process Argv:     --inspect-extensions=9993
GPU Status:       2d_canvas:                     enabled
                  flash_3d:                      enabled
                  flash_stage3d:                 enabled
                  flash_stage3d_baseline:        enabled
                  gpu_compositing:               enabled
                  metal:                         disabled_off
                  multiple_raster_threads:       enabled_on
                  oop_rasterization:             disabled_off
                  protected_video_decode:        unavailable_off
                  rasterization:                 enabled
                  skia_renderer:                 disabled_off
                  surface_control:               disabled_off
                  surface_synchronization:       enabled_on
                  video_decode:                  enabled
                  viz_display_compositor:        enabled_on
                  viz_hit_test_surface_layer:    disabled_off
                  webgl:                         enabled
                  webgl2:                        enabled

CPU %   Mem MB     PID  Process
    0       89   18664  code main
    4      114    4360     gpu-process
    0       14   13948     electron-crash-reporter
    2      187   17656     window (Running Extensions - custody-prediction-modeling - Visual Studio Code)
   50      896    5800       extensionHost
    0        5   12884       "C:\Program Files\Git\bin\bash.exe"
    0       10   13024         "C:\Program Files\Git\bin\..\usr\bin\bash.exe"
    0        6   17772       console-window-host (Windows internal process)
    0       11   18388       watcherService
    0       11    1608         console-window-host (Windows internal process)
    0       83   17752     shared-process

Workspace Stats:
|  Window (Running Extensions - custody-prediction-modeling - Visual Studio Code)
|    Folder (custody-prediction-modeling): more than 33065 files
|      File types: txt(4959) json(4616) seg(4600) clean(4600) xlsx(379)
|                  ipynb(30) py(27) msg(27) md(6) sh(6)
|      Conf files: settings.json(1)
allenyllee commented 4 years ago

@arnohovhannisyan I found the root cause of this problem. In the %APPDATA%\Code\User, there is ftp-simple folder which contains extension ftp-simple's old stuff, which include 33,705 files and 3,761 folders. I try to remove it and everything work fine!