Need Help with VSCode Pymakr
-
@Ralph Hi, it is a red Error Box and the program running does not seem to be affected.
-
Ralph, Dredd
This is strange but it now seems to be working. I was thinking it might have something to do with my Java JRE which appears to be out of date. So I did a test run with the same file. I have not updated the JRE.
This time when the program runs the Run Button changes to STOP which works and does indeed stop the program. Also Ctrl C and Ctrl D work as well. Ctrl C responds with "Keyboard Interrupt"
No idea if anything changed in the background. There were no Windows Updates overnight on my PC.
I am thinking this might be me not understanding the system? Yesterday I just pressed RUN. Today I went to "All Commands - Run current file" Is there a difference? With this in mind I closed VSC and opened it again. No file showing. Opened the file and just pressed RUN and it works.
Dredd. I am wondering if yours is working now?
-
@TCB Very strange that this ctrl-c problem solved itself. I haven't been able to reproduce the problem yet. In any case I don't think it has anything to do with Java, since it's build on nodejs. There is also no functional difference between the Run button and the 'All commands - run current file'.
I'll try some different ways and windows installations to see if I get the error as well. One question: which vscode version are you using?
-
Hi Ralph
VSC Version 1.14.2
Shell 1.6.6
Renderer 56-0.2924.87
Node 7.4.0 -
-
Check your jumper pins, I had an issue updating firmware when the jumpers fell off. They are not that tight. This may be totally psychosomatic and have nothing to do with how the expansion board is wired, but the TX and RTS jumpers needed to be firmly 'on' for me.
-
Interesting. it was working solidly for me. So given ledbelly2142's comments got the program running and I took off the Tx jumper while it was running (bad practice I know) and got the error. I did this a few times and sometimes I got the error and sometimes not.
I would have to say I am a bit suspicious about the jumpers, and I concur that they are not that tight. I received my expansion board with the Tx jumper loose in the packet. My past experience with this sort of jumper is once you put them on they stay on.
However IMHO the non repeat-ability of the problem with the Tx jumper off suggests it has something to do with it but perhaps they are not the root cause?
-
@TCB I agree the jumpers are not confidence inspiring, but in this case I suggest this is a red herring, as I am almost exclusively communicating over wifi and I have replaced the jumpers anyway with properly fitting ones. In any case, I have never had an issue with PuTTY or even the Pymakr IDE which I still occasionally use. Also, I have a board which was sitting perfectly happily on my desk which responded to the Ctrl-C every time without error but on rebooting my PC this morning generates the error every time!
-
@ledbelly2142 @TCB I tried this today and managed to reproduce the problem by removing the tx jumper. It only happened once and I couldn't reproduce it again, so I wasn't able to pinpoint the cause in the code yet.
But it looks like the tx jumper might indeed be the issue, sometime causing a weird character to to be send to pymakr, that ends up being 'undefined'. Looking at the code, this could cause the error in two places. We'll write a small fix for it and do some more testing on monday.
If anyone still gets this "Cannot read property 'length' of undefined" error, please check the tx jumper and try again.
-
Ralph
I was using VSC for an extended period earlier today. The board kept losing connection to my PC. I had to keep resetting and re connecting. Eventually my PC crashed (bluescreen) with an error of "Memory Issue" or similar with root cause being ftser2k.sys which I think is the FTDI driver. The program I was working on involved reading a BLE beacon if that's relevant.
As this may be related to the issue I thought I would let you know.
BTW I switched to ATOM and am not having the same issue (so far!)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login