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

Plugin terminal problem #31

Closed leogaggl closed 6 years ago

leogaggl commented 6 years ago

When installing the Pymakr plugin with Visual Studio Code (via the plugin registry - Version 0.1.1) the terminal window starts flashing between the standard command prompt and the following error message as soon as you enable the plugin:

pymakr_vs-code01

System info Visual Studio Code: Version 1.14.2 Commit cb82febafda0c8c199b9201ad274e25d9a76874e Date 2017-07-19T23:26:08.116Z Shell 1.6.6 Renderer 56.0.2924.87 Node 7.4.0

Operating System: Ubuntu 17.04 64bit 4.10.0-28-generic #32-Ubuntu SMP Fri Jun 30 05:32:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Disabling and reloading the plugin removes that behavior. But IDE is pretty much unusable with plugin enabled.

RalphHogenbirk commented 6 years ago

Hi @leogaggl,

For future reference: please post vscode related issues in the pymakr-vsc repo and not the atom one.

I've upgraded vsc on my ubuntu machine to the same versions as you are running, but everything seems to be working fine. The specific error you're getting means it can't open the js file that it has to execute for the terminal (terminalExec.js in the main plugin folder). Possibly something is wrong with the permissions to this file for some reason. Can you check if you have sufficient permissions enabled for vscode to access ~/.vscode/extensions/terminalExec.js?

leogaggl commented 6 years ago

Apologies @RalphHogenbirk - didn't see that there was a VSC repo !

It appears that ~/.vscode/extensions/terminalExec.js does not actually exist. I tried to replicate this on another system (Ubuntu 16.04LTS 64bit) with no Visual Studio Code installed and the issue was exactly the same:

> umake ide visual-studio-code

Install pymakr plugin via Extensions. Same problem as outlined above. What extension creates ~/.vscode/extensions/terminalExec.js ? The folder permissions are fine.

RalphHogenbirk commented 6 years ago

@leogaggl I'm sorry, I see I made a mistake and forgot one folder in that path. The correct file location should be: ~/.vscode/extensions/pycom.pymakr-0.1.1/terminalExec.js

leogaggl commented 6 years ago

Thanks @RalphHogenbirk

-rwxr-xr-x terminalExec.js - owned by correct user and group. Does not seem to have any permission problem - everything appears fine.

gmires commented 6 years ago

Hello, I have the same problem with the same version of ubuntu Permits and owners are ok !!!!!

News???

thank's regards

gmires commented 6 years ago

the solution is install last nodejs by

https://nodejs.org/en/download/package-manager/

Regards

gmires commented 6 years ago

....and add usb device udev rules access by user. Bye Regards

leogaggl commented 6 years ago

Hi @gmires

Thanks for the suggestions. I installed node.js (via umake) and the flickering of the Pycom Console has indeed gone away ! However don't get any prompt or anything - just empty screen.

However I am still unable to connect or do anything in the Pycom console. Have you got some more detail on your udev rules. I addded a rule for the ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)

gmires commented 6 years ago

Hello @leogaggl , I have the LoPy oem version ... I connected to it a ftdi ttl / rs323 converter and created the following rule In the /etc/udev/rules.d/ folder

Filename: 40-persistent-ftdi.rules

ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6001",MODE="0666",GROUP="users"

Assigning the device to the user group and enabling read and write permissions. You can see information about the device in dmesg, for example Idvendor, idproduct, etc ..

exucuse for my easy english regards

leogaggl commented 6 years ago

Hi @gmires

Thanks a lot - have the following:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="1615", GROUP="users:q ", MODE="0666"

Bus 002 Device 004: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)

Will have some more play.

leogaggl commented 6 years ago

Hi @gmires

Thanks a lot - have the following:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="1615", GROUP="users:q ", MODE="0666"

Bus 002 Device 004: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)

After some playing around I have got it working now as well. But I can only connect via WIFI. I have to connect to the LoPy access point and then the connection works.

@RalphHogenbirk - is the dependency with Node.JS documented somewhere ? I could not see it anywhere.

leogaggl commented 6 years ago

Closing this as I have moved over to the proper repo: https://github.com/pycom/pymakr-vsc/issues/2