SublimeFileSync icon indicating copy to clipboard operation
SublimeFileSync copied to clipboard

Randomly stops working

Open tablatronix opened this issue 10 years ago • 17 comments

Plugin randomly stops working, disable and renable via package control fixes issue.

Traceback (most recent call last):
  File "bin\sublimetext\sublime_plugin.py", line 256, in on_post_save
    callback.on_post_save(v)
  File "bin\sublimetext\Data\Packages\FileSync\filesync.py", line 171, in on_post_save
    sync_file(view.file_name())
  File "bin\sublimetext\Data\Packages\FileSync\filesync.py", line 234, in sync_file
    for exclusion in _settings.get("exclude_folder_names"):
AttributeError: 'NoneType' object has no attribute 'get'

tablatronix avatar Nov 06 '15 15:11 tablatronix

+1

jonathanbell avatar Jan 09 '16 22:01 jonathanbell

+1

migliori avatar Feb 13 '16 18:02 migliori

+1

colincameron avatar Mar 15 '16 16:03 colincameron

+1

juandpr avatar Mar 15 '16 20:03 juandpr

Anyone figure this out yet ? I have yet to look into the code

tablatronix avatar Jun 25 '16 15:06 tablatronix

+1

cheer021 avatar Nov 30 '16 01:11 cheer021

+1

romaopedro avatar Dec 07 '16 18:12 romaopedro

+1

wouter-muller avatar Jun 13 '17 12:06 wouter-muller

+1

twigz20 avatar Jul 31 '17 20:07 twigz20

What seems to have fixed this for me on Sublime Text 3 is adding an enabled line to my filesync settings file. I added:

"filesync_enabled": true ,

So this is what my file looks like now...

{ "exclude_folder_names": [".git", ".svn", ".hg"], "filesync_enabled": true , "mappings": [ { "source": "/Users/myname/clientname/jt3", //Unix style paths "destination": "/Volumes/Sites/dev/clientname/jt" } ] }

Hopefully this works for you. This was driving me crazy.

mtr512 avatar Jan 25 '18 17:01 mtr512

Omg I will test

tablatronix avatar Jan 25 '18 18:01 tablatronix

Wow, i also just added that! Will check back in a few days to report if the issue is fixed...

wouter-muller avatar Jan 26 '18 12:01 wouter-muller

Based on @mtr512's findings, it looks like this is the same issue as #12, which claims to be fixed in #31 - an unmerged PR from 2014.

colincameron avatar Jan 26 '18 12:01 colincameron

I have this in my user file, and have for awhile, I still have issues.

tablatronix avatar Jan 26 '18 13:01 tablatronix

Update, to confirm what @tablatronix said, while adding the filesync enabled line has seemed to improve the chances of filesync working for me, I have noticed occasional stoppages still. So it may improve chances of it working but doesn't solve it totally based on what I'm seeing.

mtr512 avatar Jan 29 '18 17:01 mtr512

Has anyone tried this pr? https://github.com/bcharbonnier/SublimeFileSync/pull/31

tablatronix avatar Mar 30 '18 12:03 tablatronix

I have tried adding the filesync enabled line and also still experience occasional stoppages...

wouter-muller avatar Mar 30 '18 12:03 wouter-muller