VS Code extension #3342
Replies: 33 comments
-
Posted at 2023-12-12 by @MaBecker Great! Will definitly support your work with testing. Are you planing to add TCP/IP connection for devices too? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-12 by MariusGundersen This is just a wrapper around EspruinoTools, so it can do what the npm espruino cli tool can do. I don't think it supports tcp/ip connection, but I haven't tried yet either. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-12 by @MaBecker yes it can |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-12 by MariusGundersen Ok, I'll have a look at how it works and try to implement something. I don't have any network device to connect to for testing, so not sure I'll be able to verify if it works. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-12 by @MaBecker You can test with a build for LINUX
check with lsof
and then connect |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-13 by MariusGundersen Can you try v0.0.7? Click on connect and it will show tcp/ip as an option |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-14 by user157146 Great! I love it~ |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-18 by MariusGundersen I've published a few bug fixes and improvements. Let me know if there is anything not working or a feature you really want. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-18 by @allObjects Great work, @mariusGundersen! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-18 by @MaBecker Can't run tests at the moment. The EspruinoTools are not running any more on my Mac, have to run some updates/downgrades. @mariusGundersen which setup are you using and especially which node version? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-18 by @MaBecker Just ran the first test - works ;-) Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-25 by @MaBecker @mariusGundersen Which version of Node and OS are you running? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-25 by @MaBecker When working with ble devices a scan-timeout as possible in cli would be helpfull. The default value of 3sec is in most cases way to short ;-) Was searching is settings but could not find a way to add this. Any recomdation or has this to be added?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-26 by MariusGundersen I think I use node 18. It just constantly scans in a loop, it seems. Any reason not to have it like that? What's the advantage of a timeout? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-26 by @MaBecker I can't see any ble devices when connect via vs code extension but on cli. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by @allObjects @MaBecker, looks like it detects them... but I may miss some of the details you are looking for.... you mean Espruino IDE? / Chrome browser on OS X? ...or VS Code? Looks like you are talking VS Code... not expert there yet... use it occasionally for debugging and development of tests / test software... but in a totally different setup, context and environment. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by @MaBecker @allObjects in vs code with extension espruino |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by MariusGundersen @MaBecker, do you see any output in the VSCode Developer Tools (Cmd + P > Developer: Toggle Developer Tools? You should see which serial devices it finds during initialization (use Cmd+P > Reload Window to restart). When it starts scanning it will show something like the second screenshot: Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by @MaBecker My node version is v16.20.2. Found the dev tools and attached the issue Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by MariusGundersen I get that too, I don't think it's anything to worry about sidequestlegend/node-blob#5 What logs do you get when you try to connect? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by MariusGundersen I think vscode uses it's own version of node, built into electron. You can check process.version in devtools to verify. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by @MaBecker look's like Mac OS X specific.....Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by @MaBecker . |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-28 by MariusGundersen It might be an optional dependency that doesn't get included. I'll have a look at it tomorrow |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-29 by MariusGundersen Can you try updating to v0.4.1? I made some changes to how it's built |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-29 by @MaBecker Sure - it work's - many thanks! Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-03 by @MaBecker Now using the extension very often - many thanks again for you work. Even with a Windows PC but that show only the mac and no name for ble devices. The WebIDE can show them. Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-04 by @MaBecker Looks like there is a filter, because a MDBT42Q Bluetooth Module is displayed correct in VSC. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-04 by @MaBecker Disconnect from a tcp:// connection does not work |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-05 by MariusGundersen Nice to hear that this extension is useful 😀 If you have a bug, can you create an issue on github? It's a bit easier to track then: https://github.com/mariusGundersen/EspruinoVSCode/issues I don't know why it's not showing the name of the Bluetooth device, I'm just using the path and description returned by the espruino nodejs code, so not to point fingers, but the issue might be there. What happens if you look for devices using the espruino npm cli? I haven't really tested tcp connection, so it might not disconnect properly, no. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-12-11 by MariusGundersen
I've started working on a VS Code extension for espruino. The initial working version has been published, but it's a very early version. It supports BLE and serial port communication (tested on windows) and shows a terminal that can be used to communicate with the espruino device. It will also show you the files in storage on the device and let you run code on the device and send a file there. For now there is no config, so the file sent won't be saved to flash, that's the next thing to implement. Anyways, it would be great if people could test it and let me know if it works on various systems. You can find it here: https://marketplace.visualstudio.com/items?itemName=MariusGundersen.espruinovscode
Beta Was this translation helpful? Give feedback.
All reactions