Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

observations and questions #2

Open
gepd opened this issue Nov 2, 2017 · 4 comments
Open

observations and questions #2

gepd opened this issue Nov 2, 2017 · 4 comments

Comments

@gepd
Copy link
Owner

gepd commented Nov 2, 2017

Copied from #1

@jevers76

  1. Is there a good way to update your changes? I un-installed and re-installed upiot. Could I just overlay the new files on top of the old?
  2. Is there a way to connect to the ESP where every key goes to the ESP. Right now many keys seem to be filtered out like ctrl-C and other control keys.
  3. when I did 'sampy ls' it showed my files, but when I did 'sampy run myfile.py' it showed file not found
  4. The run command 'UPIOT:Run Current File' did not seem to work, but I think it did work one time, i think
  5. It would be nice to have a stop program command, perhaps the ctrl-C functioning would satisfy that.
  6. It would be nice to show the COM port connection status somewhere.

I only was able to spend a short time today, but I will in the near future. I was planning to merge ampy with the terminal example that is with pyserial snd build my own ide, but now I will use upiot. Thank You

John

@gepd
Copy link
Owner Author

gepd commented Nov 2, 2017

  1. Yes, if you installed the plugin as is described in the setup section, it will automatically update the plugin, but if you are not receiving a recent change you can force it using the Package Control: Upgrade/Overwrite All Packages option.

  2. Due the limitations of ST it's not possible to do that exactly as you do in the windows console or bash. But I think it's possible to assign some shortcuts to get a similar behavior, I'll check this. Implemented with: f2fe963

  3. sampy run will execute a local file in your board, you can use the command Sync Files From Device (ctrl+alt+m) to store your files in your machine and then execute them in the board.

  4. You need to make sure your windows file is in focus/selected and then run your file, note that you can use a shortcut for that.

  5. I'll add this in a near future too, at this moment in you close the console or disconect the device, it will close the connection automatically.

  6. I agree, I'm experimenting with a fuction to change the status bar when it happens, and also information with the port connected. implemented in v0.1.3-alpha b3c7e02

I'm still working in the plugin and has been like a week since the first public alpha release so I still have to improve somethings until the first stable release, but I really appreciate your comments/questions, it will help me to improve the plugin.

You can keep commenting here with doubts or new features you feel it's missing

@gepd
Copy link
Owner Author

gepd commented Nov 2, 2017

In f2fe963 I've add a shortcut and a command to send the ctrl+c string. I've added the documentation about it too

@jevers76
Copy link

jevers76 commented Nov 3, 2017 via email

@gepd
Copy link
Owner Author

gepd commented Nov 4, 2017

  1. You only have to specify the repository once, when you install the plugin, that way you will automatically receive the changes in the develop branch. The Upgrade Package option will not affet the plugin if you manually installing it.

The upgrade tool affect only when Iexited and restarted Sublime.

Yes, you always have to reinstall ST

  1. At this moment won't be output until you stop the program, that is the way how ampy works, but I'm making the changes to solve this. 6ceba52 should improve this issue

  2. You are missunderstanding sampy run, you can't run a file that is already on the device, you first need to save in your machine. use Sync Files From Device to do that and then you can run your script like in this gif.

Just note that your file need to be selected (in focus) when your run the command or press the shorcut

sampy run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants