feat: passing data back and forth between Tauri client and Python#22
Conversation
|
@gjreda I noticed that after running |
|
@cguedes good catch! yes, we should ignore them from the repo since they will be specific to each of our local machines. |
|
@cguedes perhaps you could be the reviewer here? |
|
@gjreda I'm having this error when using python via sidecar. I've run
|
cguedes
left a comment
There was a problem hiding this comment.
@gjreda after merging main into this branch and installing all the dependencies again (yarn install, poetry install and yarn python) the app is now working fine 🎉
@sergioramos I think you can merge this PoC into main (before #25 that is still in progress).
danvk
left a comment
There was a problem hiding this comment.
I saw Command.sidecar in code, got curious and left some comments.
| const aiReply = await invoke<string>('interact_with_ai', { | ||
| selection, | ||
| }); | ||
| const command = Command.sidecar('bin/python/main', ['--text', `${selection}`]); |
There was a problem hiding this comment.
| }); | ||
| const command = Command.sidecar('bin/python/main', ['--text', `${selection}`]); | ||
| const output = await command.execute(); | ||
| if (output.stderr) throw new Error(output.stderr); |
There was a problem hiding this comment.
More idiomatic to check output.code for errors here.
danvk
left a comment
There was a problem hiding this comment.
I saw Command.sidecar in code, got curious and left some comments.

This updates the sidecar PoC. It does the following:
It's fun to see it working!