David Lechner
David Lechner
Could we use something like [ptrace](http://manpages.ubuntu.com/manpages/bionic/en/man2/ptrace.2.html) to intercept and modify syscalls? Once upon a time, I used [PRoot](https://github.com/proot-me/PRoot) that does something like this.
Or perhaps one could use libfuse?
Upstream bug: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1732482
The code we use in Pybricks is [here](https://github.com/pybricks/pybricks-micropython/blob/master/lib/pbio/src/uartdev.c). The high level sequence is this: 1. Set the baud rate to 115200 2. Within 100ms of powering on a sensor, send...
> But I'm receiving the following frames `0xc0 0x00 0x3f` constantly. This is expected: see https://github.com/pybricks/technical-info/blob/master/uart-protocol.md#data-messages To set the mode, use `CMD_SELECT`: https://github.com/pybricks/technical-info/blob/master/uart-protocol.md#cmd_select In Pybricks, we have found the position...
It is picking up the `ujson` module from here: https://github.com/davidhalter/typeshed/blob/ae9d4f4b21bb5e1239816c301da7b1ea904b44c3/third_party/2and3/ujson.pyi Hopefully there is a way we can tell jedi to not use that.
I think we would basically need to fork jedi to fix this (as per discussion in https://github.com/davidhalter/jedi/issues/1809).
Maybe we can get some inspiration from Thonny. It looks like they are monkey-patching instead of forking. https://github.com/thonny/thonny/blob/master/thonny/jedi_utils.py
IIRC, there are some technical restrictions that prevent us from doing any other actions than the ones already available in Pybricks Code. I'm not sure there is a way to...
If the browser supports "installing" and the app is not installed yet, there is a "beforeinstallprompt" event. Normally, the browser would pop up something in the address bar area, but...