x0pherl / fender-bender

Fender-Bender is a Filament Buffering solution for 3d multi-color solutions such at the Prusa MMU
MIT License
8 stars 0 forks source link

Build doesn't execute without vscode open #5

Closed x0pherl closed 2 days ago

x0pherl commented 4 days ago

show and export 2d require an open cad viewer. would be helpful to start with a test to determine if one exists and fail gracefully if it doesn't at a minimum (would be nicer if it opened a viewer)

x0pherl commented 4 days ago

note -- terminal command as shown in vscode is "c:\Users\<user>\code\3d-print\fender-bender\.venv\Scripts\python.exe" "c:\Users\<user>\.vscode\extensions\bernhard-42.ocp-cad-viewer-2.6.1\ocp_vscode\backend.py" --port 3939

x0pherl commented 2 days ago

it now fails gracefully -- these notes may eventually lead to a clue to get it running on the runner machine:

from ocp_vscode.standalone import Viewer

# need to work out how to get ocp_vscode standalone running on the gitlab runner
# cfg = {}
# cfg["host"] = '127.0.0.1'
# cfg["port"] = 3939
# Viewer(cfg).start()