MStadlmeier / drivesync

Google Drive synchronization for Linux
MIT License
197 stars 26 forks source link

Strange errors in Ubuntu 20.04 LTS #36

Open SwiatLinuksa opened 4 years ago

SwiatLinuksa commented 4 years ago

Hi. First sry English isnt my native language. I always use Your script in Ubuntu 18.04.4 and there it works with no problems. I just fresh installed Ubuntu 20.04 and have little issue.

drivesync works ( syncing well ) but here always many errors:

ruby drivesync.rb /var/lib/gems/2.7.0/gems/mime-types-3.1/lib/mime/types/logger.rb:28: warning:_1' is reserved for numbered parameter; consider another name /var/lib/gems/2.7.0/gems/mime-types-3.1/lib/mime/types/logger.rb:28: warning: _2' is reserved for numbered parameter; consider another name /var/lib/gems/2.7.0/gems/mime-types-3.1/lib/mime/types/logger.rb:28: warning:_3' is reserved for numbered parameter; consider another name /var/lib/gems/2.7.0/gems/faraday-0.15.2/lib/faraday/options.rb:166: warning: Capturing the given block using Proc.new is deprecated; use &block instead /var/lib/gems/2.7.0/gems/faraday-0.15.2/lib/faraday/options.rb:166: warning: Capturing the given block using Proc.new is deprecated; use &block instead /var/lib/gems/2.7.0/gems/faraday-0.15.2/lib/faraday/options.rb:166: warning: Capturing the given block using Proc.new is deprecated; use &block instead /var/lib/gems/2.7.0/gems/faraday-0.15.2/lib/faraday/options.rb:166: warning: Capturing the given block using Proc.new is deprecated; use &block instead /var/lib/gems/2.7.0/gems/faraday-0.15.2/lib/faraday/options.rb:166: warning: Capturing the given block using Proc.new is deprecated; use &block instead /var/lib/gems/2.7.0/gems/multi_json-1.13.1/lib/multi_json/options_cache.rb:12: warning: Capturing the given block using Proc.new is deprecated; use &block instead Local folder is 1 files behind and 0 files ahead of remote Starting sync at 2020-04-27 18:01:48 +0200 Downloading file baza/Hasła.kdbx ...

Sync complete. drivesync.rb:11: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open

Here linkt to pastebin https://pastebin.com/gGijwruz

Cheers

MStadlmeier commented 4 years ago

@SwiatLinuksa I see two warnings (not errors) here: One is coming from my code, the other from mime-types, one of the Google API's dependencies. The former will be fixed in the next release of DriveSync, the latter I can't fix myself, unfortunately. It might go away with the next Google API update, though. I'll look into the update.

The warnings should not have any impact on the functionality itself, though.