pohmelie / cuda_ftp Goto Github PK
View Code? Open in Web Editor NEWFTP plugin for CudaText (http://www.uvviewsoft.com/cudatext) editor
FTP plugin for CudaText (http://www.uvviewsoft.com/cudatext) editor
for example
enter - open dir
enter/f4 - open for edit
What for is this decorator?
@contextlib.contextmanager
def FTPClient(server):
I cannot test Esc key on deleting dir: new pch must stop deleting if u press esc (check for esc: is 1 time per dir), do u confirm?
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.cudatext/py/cuda_ftp/__init__.py", line 315, in action_remove_server
servers.pop(servers.index(list(ftp)))
NameError: name 'ftp' is not defined
@ildarkhasanshin If I do "Go to folder" in the context menu, 'History' list is not having this new folder. it's ok?
Server on AIX
http://synwrite.sourceforge.net/forums/viewtopic.php?p=10408#p10408
plugin supports MLSD?
after #2 fix. Plugins/Ftp item now don't show servers (shows Ftp panel but not servers in it; cuda_ftp.json: not empty)
Я так и думал- enum+ Pathlib появились в Питон3.4, я это вспомнил
А у меня в Вин32- Питон3.3 встроенный,вот облом =(
TypeError: get_server_by_short_info() takes 3 positional arguments but 4 were given
Windows 10
I tried to connect to the following demo SFTP server using CudaText 64 bit v1.90.0.0 for Windows with latest version of the FTP plugin 2019.02.17 (SFTP support plugin installed as well, 2017.09.09.2):
Host: test.rebex.net
Port: 22
User: demo
PW: password
The connection failed with the error message "Please install 'Paramiko' library for SFTP support".
I was able to track down the error to file cuda_ftp_libs\x64\bcrypt\__init__.py
line 25 (from bcrypt import _bcrypt
). This line is the first failing line in the attempt to import paramiko lib, which is started in file cuda_ftp\__init__.py
line 24 (import paramiko
).
The binary file whose import failed (named _bcrypt.pyd
) is present.
I have tested CudaText 32 bit as well, same failure.
Further investigations have shown, that _bcrypt.pyd
wants to import python35.dll
which doesn't exist anymore due to Python update some versions of CudaText ago.
Would it be possible to add support for sftp under windows? I think I could relace notepad++ with cudatext if this worked.
thanks
@pohmelie When have time..
ftputil.zip
See text from Alexey-T/CudaText#2390
(closed but not solved)
Perhaps this is more a feature request than an issue. The FTP plugin should read $HOME/.ssh/config
file to retrieve hosts information if available - this will also allow the user to give alias to his hosts. Besides, it must try the default identity file $HOME/.ssh/id_rsa
if exists.
addr: ftp.aha.ru
login/pw: default ones
I cannot connect,
read dir: 500 MLSD /: Command not understood
It useful if i made mistake inside passw, or inside login. not hard todo, just dlg_input_ex?
I start to see.
Can u move files (.inf file and near files ) to root? "install from github" plugin - needs it. Eg https://github.com/kvichans/cuda_intext_bookmarks
Good clients have /timeout/ (def 30 seconds) field
How to add it in ftp/sftp?
retr_callback: pls see my coment.
If u uncomment it- Esc still don't stop download. only stops progress (Cud hangs). hm.
I save usual file (.diff) and err is:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.cudatext/py/cuda_ftp/__init__.py", line 269, in on_save
self.store_file(*self.get_location_by_filename(ed_self.get_filename()))
File "/home/user/.cudatext/py/cuda_ftp/__init__.py", line 199, in get_location_by_filename
path = client_path.relative_to(self.temp_dir_path)
File "/usr/lib/python3.4/pathlib.py", line 802, in relative_to
.format(str(self), str(formatted)))
ValueError: '/home/user/lazarus/ide.diff' does not start with '/tmp/tmp6skna4iy'
Any chance of getting this functionality added? Obviously the capability exists within the paramiko library, and for the UI part I could see it being as simple as adding a boolean option for publickey auth that would then parse the contents of the password field as a path to the keyfile. If a method were created to also store the keyfile passphrase if desired, then we'd really be cooking with gas! 🔥 😉
def on_panel- needed check for value of control_id (event called for all panel plugins. e.g. "tabs List").
wish: menu for serv shoud have(too)
I cannot yet add servr. I see exception and nothing (i don't have json file yet)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.cudatext/py/cuda_ftp/__init__.py", line 303, in action_new_server
self.options["servers"].append(server_info)
AttributeError: 'Command' object has no attribute 'options'
"Make new file"- press Cancel
console panel:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.cudatext/py/cuda_ftp/__init__.py", line 334, in action_new_file
"Filename:", "",
TypeError: 'NoneType' object is not iterable
Can u make callback. which is called on downloading file?
I then fill it, like
msg_status('Downloading file: %d%%' % num)
@ildarkhasanshin
выделен файл readme.txt.
ctrl+R ==> ошибка в логе ftp
[14:38] Read dir: domain.com/: 500 Unknown command
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.