4 Feb 2023 |
Draek#9615 | So I don't think it's much of a problem | 10:43:11 |
Draek#9615 | ![image.png](https://matrix.org/_matrix/media/r0/thumbnail/t2bot.io/0e0d0ca6f088b770e258deab1ea547f9aa0f936a?height=360&method=scale&width=360) Download image.png | 10:43:36 |
bernhard#0011 | If you go to the preferences of Cadquery Viewer and set theme to dark, it looks better 🙂 | 10:48:22 |
bernhard#0011 | Still it renders outside of the viewer, but one doesn't see it any more | 10:48:52 |
Draek#9615 | I like it this way so I'm gonna let it like that hehe | 10:49:01 |
bernhard#0011 | fair | 10:49:09 |
bernhard#0011 | regarding your opened issue: 1) I don't care whether it is an env or the global intepreter. The only prerequisite is that in VS Code the right interpeter has been selected. The extensions gets this interpreter and the calls path/to/python -m pip install ... So, no venv is needed | 10:51:11 |
bernhard#0011 | 2) mamba -> fair. While cadquery can be installed with mamba/conda, build123d and cq_vscode do not live in conda-forge world I will add this as a prerequisite and check for pip in the extension | 10:52:44 |
bernhard#0011 | 3) Refresh "forgot" to reread the settings. Saw it today in the morning, already fixed | 10:53:22 |
bernhard#0011 | 4) Examples: Good idea and I ad thought about it. But I couldn't decide which would be good examples. Any proposal? | 10:54:29 |
Draek#9615 | For cq_vscode or for the others as well | 10:54:45 |
Draek#9615 | For cq_vscode I can think of some for the others just grab all the examples in the two projects? | 10:55:08 |
bernhard#0011 | hmmm, I don't want to always change my extension when something changes in these projects and examples need to be changed | 10:55:52 |
Draek#9615 | That's why I was thinking something dynamic and not static | 10:56:12 |
Draek#9615 | like the extension goes through the web getting the examples ? Maybe that's a bad idea, I don't know how it could work | 10:56:39 |
Draek#9615 | So you don't have to update each time something change | 10:57:03 |
bernhard#0011 | ouch, don't wanna go the web scraping route. Better to read from github I'd say | 10:57:11 |
Draek#9615 | Well yes, github is still on the web though no? haha. Tell me if it's not doable but : - The clicks on the cq_vscode icon extension - The extension polls the two githubs repo of the projects - Gets all the examples files - The extension download them locally in a TEMP dir in the user computer - The extension displays them as a tree node (like you did with the libraries) | 10:59:08 |
Draek#9615 | I have never done anything web related so idk how it works, but that's seems doable in principle to me | 10:59:50 |
bernhard#0011 | Yes, sounds like a doable idea. Maybe have an example installation button in the Viewer Manager. If one presses the button, the examples for all installed libs will be downloaded from git to a temp folder (or a selected folder) Then the editor workspace root will be set to the examples folder root | 11:03:30 |
Draek#9615 | Yes definitly | 11:04:00 |
bernhard#0011 | Then you can browse the files as usual in VS Code | 11:04:11 |
Draek#9615 | I know that the Arduino extension of vscode does something similar | 11:04:15 |
bernhard#0011 | Don#t want to implement a second "file browser" | 11:04:28 |
bernhard#0011 | * Don't want to implement a second "file browser" | 11:04:36 |
bernhard#0011 | I'll think about it, but it is on the roadmap. | 11:05:00 |
Draek#9615 | I can't understand that but having the examples in the cq_vscode tab is nice | 11:05:16 |
Draek#9615 | * I can understand that but having the examples in the cq_vscode tab is nice | 11:05:22 |
bernhard#0011 | At some point one needs to change the workspace root. I think I need to give it a try before I can really say what works. | 11:06:34 |
Draek#9615 | Anyway aside from that extra feature, the extension just "works". You install it, install everything and that's it you can start create models in 2 minutes | 11:06:39 |