Code Monkey home page Code Monkey logo

cuda_ftp's People

Contributors

alexey-t avatar halfbrained avatar ildarkhasanshin avatar pohmelie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cuda_ftp's Issues

decorator

What for is this decorator?

@contextlib.contextmanager
def FTPClient(server):

Esc on delete-dir

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?

cannot del server

  • added new serv "ftp.aha.ru" (fields default)
  • on connect CT hanged
  • now cannot del servr: on del:
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

Serv list empty on start

after #2 fix. Plugins/Ftp item now don't show servers (shows Ftp panel but not servers in it; cuda_ftp.json: not empty)

Py3.4

Я так и думал- enum+ Pathlib появились в Питон3.4, я это вспомнил
А у меня в Вин32- Питон3.3 встроенный,вот облом =(

SFTP connection failed: Please install Paramiko lib

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.

SFTP for Windows

Would it be possible to add support for sftp under windows? I think I could relace notepad++ with cudatext if this worked.
thanks

Parse default ssh files

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.

Read this ftp

addr: ftp.aha.ru
login/pw: default ones

I cannot connect,
read dir: 500 MLSD /: Command not understood

"Edit server" item

It useful if i made mistake inside passw, or inside login. not hard todo, just dlg_input_ex?

Timeout

Good clients have /timeout/ (def 30 seconds) field
How to add it in ftp/sftp?

can't stop download

retr_callback: pls see my coment.
If u uncomment it- Esc still don't stop download. only stops progress (Cud hangs). hm.

on_save error

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'

Allow publickey authentication method for SFTP servers

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! 🔥 😉

on_panel issue

def on_panel- needed check for value of control_id (event called for all panel plugins. e.g. "tabs List").

menu for Srv

wish: menu for serv shoud have(too)

  • Connect
  • Disconnect (remove child nodes from srv; quit ftp)

cannot add server

I cannot yet add servr. I see exception and nothing (i don't have json file yet)

f1

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'

"Cancel" on make file

"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

download progress

Can u make callback. which is called on downloading file?
I then fill it, like

 msg_status('Downloading file: %d%%' % num)

Ftp prop: initial dir

Oftern ftp clients have opt- a)port, b) initial dir on remote. Shot of SynFTP

ftp

is it easy to add?

error 500

[14:38] Read dir: domain.com/: 500 Unknown command

temp filename

I changed line, now it not Ok

prefix = pathlib.Path(*server_address(server))

not sure what to write

Now temp file is
path

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.