sg-wireless / pymakr-atom

Adds a REPL console to Atom that connects to your Pycom board. It can run code on the board or synchronize your project files.
Other
35 stars 11 forks source link

Run program : name 'null' is not defined #34

Closed PhSurbay closed 6 years ago

PhSurbay commented 6 years ago

Since the last version of Atom and PyMakr, we can't run any program with the button run in Atom We have always this error :

Connecting on /dev/ttyUSB0...
>>> Running LoraDevEui.py
>>>
>>>
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
NameError: name 'null' is not defined

I have remove and reinstall Atom, Pymakr, nodejs and npm But nothing work

In apm -v we have :

~$ apm -v
apm  1.18.4
npm  3.10.10
node 6.9.5 x64
python 2.7.13
git 2.11.0

Currently the sync work .. I'm on Ubuntu 17.04 So if you've got a solution

RalphHogenbirk commented 6 years ago

I've got one more report of this, but I can't reproduce it on Ubuntu yet. Can you share your atom --version output?

PhSurbay commented 6 years ago
~$ atom --version
Atom    : 1.19.2
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0

For further information, I've two Lopy with two different firmware : '1.7.8.b1' and '1.7.9.b3'

RalphHogenbirk commented 6 years ago

Improved some code in the run feature and this seems to have solved this issue. It only occured if i opened a file outside of a project, not one inside a project. And only on ubuntu.

Fix is on develop (commit bcc1c61) if you want to test it.

RalphHogenbirk commented 6 years ago

Fix included in v1.1.0 that was just released

PhSurbay commented 6 years ago

Great, that's seem good :)