Open gepd opened 6 years ago
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.
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: https://github.com/gepd/uPiotMicroPythonTool/commit/f2fe9631be97004cd1562367c52369204087e216
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.
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.
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.
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 https://github.com/gepd/uPiotMicroPythonTool/commit/b3c7e0279ab4a03dc1a4dd1be3775b1068c21060
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
In https://github.com/gepd/uPiotMicroPythonTool/commit/f2fe9631be97004cd1562367c52369204087e216 I've add a shortcut and a command to send the ctrl+c
string. I've added the documentation about it too
I was able to upgrade to your newest code using the Package Control: upgrade package. I am not sure if I also needed to specify the repository or not because I attempted to upgrade both ways without restarting Sublime inbetween. The upgrade tool affect only when Iexited and restarted Sublime.
I am still having getting a program to show its output. I loaded the following program: print('abc') i = 1 while(1): print(i) i = i + 1 Nothing was printed. I was able to use the Ctrl-C to stop the program. Where should the program output be shown?
I used the command 'sampy ls' and would see a list of files current loaded on my board. poot.py and main.py and others including my.py. When I attempt to run with the command 'sampy run mp.py' it reports 'no such file or directory'. I expected it to run my program.
On Wed, Nov 1, 2017 at 9:56 PM, gepd notifications@github.com wrote:
1.
Yes, if you installed the plugin as is described in the setup https://github.com/gepd/uPiotMicroPythonTool#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. 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, remember you can use a shortcut https://github.com/gepd/uPiotMicroPythonTool#shortcuts 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.
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 are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gepd/uPiotMicroPythonTool/issues/2#issuecomment-341303669, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWshU36nY2XUYufZOxOkNkiCrUYO-xJks5syS90gaJpZM4QPGQo .
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
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. https://github.com/gepd/uPiotMicroPythonTool/commit/6ceba526b00f3812b4e64d9ae0f0187cbaaae9a2 should improve this issue
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
Copied from https://github.com/gepd/uPiotMicroPythonTool/issues/1
@jevers76