ment4list / sublimezilla Goto Github PK
View Code? Open in Web Editor NEWA Sublime Text 2 & 3 plugin that imports server entries from FileZilla to Sublime Text as a sftp-config.json file for use with the excellent Sublime SFTP plugin
A Sublime Text 2 & 3 plugin that imports server entries from FileZilla to Sublime Text as a sftp-config.json file for use with the excellent Sublime SFTP plugin
Path to ssh key file and time shift was not copied
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 797, in run_
return self.run()
File "/home/radist/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 24, in run
self.quick_panel()
File "/home/radist/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 27, in quick_panel
server_names = self.get_server_names()
File "/home/radist/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 166, in get_server_names
self.servers = self.get_server_entries()
File "/home/radist/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 220, in get_server_entries
PassValTmp = base64.b64decode(PassVal).decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 0: invalid continuation byte
See #5 (comment)
Traceback (most recent call last):
File "./sublime_plugin.py", line 339, in run_
File "./SublimeZilla.py", line 14, in run
File "./SublimeZilla.py", line 113, in get_xml
TypeError: cannot concatenate 'str' and 'NoneType' objects
Unfortunately I do not have access to the mentioned OS. Perhaps @vallovic can assists?
I've spent hours with this plugin. It looks like it was never finished.
So, what's up with this plugin? Or ... please tell me where I'm missing the details noted here.
(Might be an opportunity to update the README.)
If I'm correct about all of that, I've made a number of changes to accommodate those issues, and I will submit a PR at some point when I've verified the changes. But for now it looks like it's going to be a while before I get that done.
Thanks!
"Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 526, in run_
return self.run()
File "C:\Users\anale_000\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 22, in run
self.quick_panel()
File "C:\Users\anale_000\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 25, in quick_panel
server_names = self.get_server_names()
File "C:\Users\anale_000\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 164, in get_server_names
self.servers = self.get_server_entries()
File "C:\Users\anale_000\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 210, in get_server_entries
if Pass[0].firstChild is not None:
IndexError: list index out of range
"
sublimezilla is not running. This is message.
no pop up and not happen anything.
what can I handle this??
I tried to use the extension on Linux Ubuntu, Sublime text 2, filezilla 3.6.0.2.
The extension is installed, I fire it up, I see the default path to the sitemanager.xml path, I choose enter to accept, and... nothing happens. No server list is coming up, no error message.
The path and file name are correct, and the server details are in that file.
On Mac OS Sierra I can't import my FileZilla servers. The alternate location instructions didn't help. It says "A new file will have been created in /Packages/User/SublimeZilla.sublime-settings and it will contain a path to the default FileZilla DB" but I don't have that file..
Hey, just a heads up that SublimeZilla doesn't work on Windows XP because it has a different folder structure.
The issue is that the sitemanager.xml file is located at C:\Documents and Settings[USER_NAME]\Application Data\FileZilla\sitemanager.xml .
When attempting to launch SublimeZilla, it pops up the error at line 127:
"File sitemanager.xml not found. Is FileZilla installed?".
So my temporary solution was to change line 117 to:
default_xml = user_home + os.sep + "Application Data\\FileZilla\\sitemanager.xml"
Although I'm sure you could create a more elegant solution by checking the operating system.
Anyway, just wanted to let you know.
Thanks for the great plugin!
Couldn't execute the plugin in Windows 7 with ST3.
Error was IndexError: list index out of range
on the if User[0].firstChild is not None:
, line 208.
Had to update to if len(User) > 0 and User[0].firstChild is not None:
for it to work.
Just to let you know. Great plug, thanks.
Hi
I got an error in get_server_entries function:
https://github.com/ment4list/SublimeZilla/blob/master/SublimeZilla.py#L170-L171
It was because I had one entry in my Server List wich has an empty Pass Node in it. I assume this can be a normal thing if you working with Filezilla and SSH keys.
I changed the code a little bit. This worked for me...
Pass = server.getElementsByTagName('Pass')
if( Pass[0].firstChild is not None ):
PassVal = Pass[0].firstChild.nodeValue
server_obj["password"] = str(PassVal)
else:
server_obj["password"] = ""
Thx for this nice Sublime Plugin!
Problem after install pluggin and run pluggin:
File sitemanager.xml not found. Is FileZilla installed?
If the sitemanager.xml file is located elsewhere please see https://github.com/ment4list/SublimeZilla#alternate-locations
file /home/[USER_NAME]/.filezilla/sitemanager.xml i created with 777
I am unable to open SublimeZilla with "ctrl+alt+z" or by clicking "SublimeZilla" in the Tools menu.
Below is the error that is showing in the Sublime Text 3 console:
Unable` to open /C/Users/[UserName]/AppData/Roaming/Sublime Text 3/Packages/Default/Default (Windows).sublime-keymap
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1052, in run_
return self.run()
File "C:\Users\[UserName]\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 28, in run
self.quick_panel()
File "C:\Users\[UserName]\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 31, in quick_panel
server_names = self.get_server_names()
File "C:\Users\[UserName]\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 178, in get_server_names
self.servers = self.get_server_entries()
File "C:\Users\[UserName]\AppData\Roaming\Sublime Text 3\Packages\FileZilla SFTP Import\SublimeZilla.py", line 258, in get_server_entries
if RemoteDir[0].firstChild is not None:
IndexError: list index out of range
I am running the latest version of both Sublime Text 3 (3.2.2) and FileZilla (3.47.1).
Any ideas?
Thanks.
i'm try to use sublimeZilla 3 on osx 10.11
i have to installa manually (i put the sublime-text package into Packages folder) because i can't find the package into Package Controll. If i click on tools--> SublimeZilla i get this advice:
"File sitemanager.xml not found. Is FileZilla installed?
If the sitemanager.xml file is located elsewhere please see https://github.com/ment4list/SublimeZilla#alternate-locations"
i think this i due to the fact that i use filezilla with sitemanager.xml as a symlink, the original is on my cloud folder (google drive). For this way i try to edit this file /Packages/User/SublimeZilla.sublime-settings to add the original path manually but i can't find this file under /Packages/User
can someone help me to understand what's the problem?
I'm looking forward to using your plugin as it will save me a lot of time.
After installing it into ST2 via Package Manager, I restarted ST2 and tried to run it but got no response. When I checked the ST2 console, I found:
Traceback (most recent call last):
File "./sublime_plugin.py", line 339, in run_
File "./SublimeZilla.py", line 14, in run
File "./SublimeZilla.py", line 110, in get_xml
TypeError: cannot concatenate 'str' and 'NoneType' objects
I'm running Lubuntu 12.04 with a standard FileZilla installation (even checked the location of the XML file to make sure and it matches the pattern used in SublimeZilla.py", line 110
Thanks in advance for any help you can offer.
Jeff.
I'm using Sublime Text 3 on Ubuntu 14.04 LTS and getting this error:
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 535, in run_
return self.run()
File "/home/rafael/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 24, in run
self.quick_panel()
File "/home/rafael/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 27, in quick_panel
server_names = self.get_server_names()
File "/home/rafael/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 166, in get_server_names
self.servers = self.get_server_entries()
File "/home/rafael/.config/sublime-text-3/Packages/FileZilla SFTP Import/SublimeZilla.py", line 220, in get_server_entries
PassValTmp = base64.b64decode(PassVal).decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 1: invalid start byte
Hello and good day,
I wanted to import a password like this: DdjhSH$052
It imports this: DdjhSH
All the best
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.