794 Commits

Author SHA1 Message Date
Erwan MATHIEU
7c556dd31f Handle the new Roof feature type
CURA-12250
2024-11-26 21:04:11 +01:00
Erwan MATHIEU
3b374368c4 Merge remote-tracking branch 'origin/5.9' 2024-10-22 10:43:28 +02:00
Remco Burema
480322354b Autoslice could cause slicing to start before init done.
This could cause slicing to hang forever until settings where changed. So stop too-early slicing, but keep a memo of wether we've already been requested to slice in the initialization interval, so auto-slice doesn't fail either.

CURA-11815
2024-10-15 17:51:14 +02:00
Jaime van Kessel
aaff84ce77
Merge branch 'main' of https://github.com/TheSin-/Cura 2024-10-10 14:09:18 +02:00
Remco Burema
e3211d4128 Make slicing work for the --external-backend option again. 2024-10-02 12:57:36 +02:00
Erwan MATHIEU
74cafe1c4b Handle message too big error when sending model data to engine
CURA-11103
2024-09-24 08:55:29 +02:00
Erwan MATHIEU
f0cbd8e802 Restore lost change after an errored merge
This reverts commit 946bf033066e561827da4d00afbc3b680cd7e552.
2024-09-19 11:00:09 +02:00
Remco Burema
7928c241a8 Merge remote-tracking branch 'origin/5.8' 2024-09-18 17:31:27 +02:00
Erwan MATHIEU
d74e0487cd Apply suggestion to remove unnecessary extra arguments
CURA-12093
2024-09-10 12:50:55 +02:00
Erwan MATHIEU
101a637bbb
Apply typo fix suggestion
Co-authored-by: Remco Burema <41987080+rburema@users.noreply.github.com>
2024-09-10 12:44:50 +02:00
Erwan MATHIEU
48ddaa8861 Add a comment so that we don't forget to update the doc
CURA-12093
2024-09-06 12:20:46 +02:00
Erwan MATHIEU
ccffbea8c9 Add ability to write condition Start/End gcode parts
CURA-12093
2024-09-05 11:03:58 +02:00
Erwan MATHIEU
946bf03306 Revert "Merge branch 'main' into 5.8"
This reverts commit fec7637615fd05fb052848bb1cd569840d650ebd, reversing
changes made to 081b9b543b564ac6c2a840916162a06b289c5d94.
2024-08-13 15:56:01 +02:00
Justin F. Hallett
86576c6fbc
Merge branch 'Ultimaker:main' into main 2024-08-10 15:24:02 -06:00
Justin F. Hallett
3bb782fd5f
Add 3 New UI Settings
- Add UI to set `machine_start_gcode_first` so that no gcode is adding infront of the start_gcode.
- Add float input box to set `machine_extruder_change_duration` which added proper extruder change times to the estimated print time.
- Add textbox to set `machine_extruder_prestart_code` to add gcodes that will run pre extruder change, things like heat up so we are at change before with pick up the next extruder.
2024-08-10 12:53:56 -06:00
Jaime van Kessel
8062d92d34
Merge branch '5.8' of github.com:Ultimaker/Cura 2024-07-24 16:16:59 +02:00
Erwan MATHIEU
eff32ea8c2 Order backend plugins by name
The engine processes the plugins based on the order they were given in. By ordering them beforehand, we ensure that they will always be processed with the same logic.

CURA-10914
2024-07-15 12:38:47 +02:00
Erwan MATHIEU
8e32672016 Only allow prepend settings to be disabled
When the printer settings say they should be disabled, they could previously be enabled if the start GCode didn't contain temperature commands. Now we can only enable them if initially enabled.

CURA-11967
2024-07-09 11:50:18 +02:00
Erwan MATHIEU
2e5e43291e Fix missing error message when slicing with disabled extruder
Following the removal of the get/setMessage methods in the Job class, the StartSliceJob has not been updated and still used them. We now use a specific variable for storing the disabled extruders and properly display them.

CURA-11904
2024-05-14 16:27:16 +02:00
Erwan MATHIEU
b342574c19 Change slicing crash error message
CURA-11445
2024-03-01 09:17:37 +01:00
c.lamboo
c29eb49113 Add more paths 2024-02-04 22:44:21 +01:00
Erwan MATHIEU
731ea69ebb
Merge branch 'main' into CURA-11482_sentry 2024-01-17 11:04:05 +01:00
Erwan MATHIEU
54df08f47f Fix specific extruder not being used
CURA-11536
2024-01-16 13:14:49 +01:00
Erwan MATHIEU
ab322ae703 Always send user name for Sentry if available
CURA-11482
2024-01-15 15:22:25 +01:00
c.lamboo
9d78c9ed58 Don't mutate/pollute _all_extruder_settings with additional values
CURA-11536
2024-01-15 12:39:10 +01:00
Erwan MATHIEU
68152e6f31 Code readability
CURA-11482
2024-01-15 12:04:55 +01:00
c.lamboo
5da4dfcb70 Improve unhappy flow
CURA-11536
2024-01-15 12:03:42 +01:00
c.lamboo
fe440a6643 Allow for expressions in start/end machine/extruder code extruder_nr field
CURA-11536
2024-01-15 11:52:11 +01:00
Jelle Spijker
7738059631
Add optional (opt-in) project_name to Sentry
Needed for automatic Issue handling in the future

Contributes to CURA-11482
2024-01-15 10:44:43 +01:00
Jelle Spijker
2bcdacef72
Allow for opt-in of DF User name for Sentry crash reports
This will help us with triage of bugs for our customers.

Contributes to CURA-11482
2024-01-13 11:12:46 +01:00
Jelle Spijker
b3825ee1c7
actually use f string
Contributes to CURA-11482
2024-01-10 05:40:10 +01:00
Jelle Spijker
5744371f38 Add anonymous user tracking to slice message
User tracking has been added to the 'slice_message' method in the 'StartSliceJob.py' file. A unique, anonymous UUID is generated for each user, stripping away identifiable data with a bitmask operation. The user's Cura version is also included in the message. This facilitates more robust analysis of crash reports and user behaviors.

Contributes to CURA-11482
2023-12-17 17:44:30 +01:00
Jelle Spijker
a6218c3f54
Use cura sentry id and version
Contribute to CURA-11482
2023-12-15 18:08:46 +01:00
Casper Lamboo
1dc350012d
Merge branch 'main' into CURA-11364_add_sentry_engine 2023-11-30 09:29:47 +01:00
Jaime van Kessel
593e959dd5
Use cleaner notation for use_sentry env variable
CURA-11364

Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
2023-11-29 10:42:12 +01:00
Jaime van Kessel
60bf2fbc2c
Add preference to disable sentry engine crash reporting
CURA-11364
2023-11-21 14:01:58 +01:00
Casper Lamboo
afe3f54167
Remove debug statements
Co-authored-by: Jaime van Kessel <nallath@gmail.com>
2023-11-17 11:00:50 +01:00
c.lamboo
36f2deea1d Fix some more parsing issues
Example of issues we had is that parsing floating point numbers would parse the dot as an attribute syntax and trying to retrieve both sides of the attributes to the get_value resolve. E.g `3.14` would be interpreted as getting the `14` property of the object `3`, which ofcourse throws an error.

CURA-11347
2023-11-16 14:45:46 +01:00
c.lamboo
036516b8f9 Re-add support for post slice data variables in start/end gcode
With previous implementation we lost support for these variables in start/end gcode
"filament_cost", "print_time", "filament_amount", "filament_weight", "jobname"

CURA-11347
2023-11-16 13:53:43 +01:00
c.lamboo
e98240fb2c Cleanup code in GcodeStartEndFormatter
CURA-11155
2023-10-13 07:36:45 +02:00
c.lamboo
14afd73c19 Make sure default variables are available in start/end code
The following properties are not settings-names, but could previously be used as template variables
- material_id
- time
- date
- day
- initial_extruder_nr
- material_id
- material_name
- material_type
- material_brand
- time
- date
- day
- initial_extruder_nr
These properties are _awkwardly_ propogated through the kwargs of the `get_value` method of `GcodeStartEndFormatter`. I don't quite like implementing it like this, but to avoid API breaks I couldn't change abusing the kwargs arg for this purpose.

CURA-11155
2023-10-12 21:09:10 +02:00
c.lamboo
c3f3a86385 Extend start/end gcode templates feature with support for formula's
CURA-11155
2023-10-12 16:53:39 +02:00
c.lamboo
d4449c680f Find available port when starting backend plugin
CURA-11067
2023-09-20 11:24:28 +02:00
Jelle Spijker
45510d04ed
Added ability for backend plugins to determine their usability
Modified BackendPlugin.py and StartSliceJob.py to allow plugins to decide when they should be used. The 'usePlugin'
method was added to enable a plugin to return a boolean indicating if it should be used or not, e.q.: start up and
connect to the services.

Contributes to CURA-11031
2023-09-13 07:22:07 +02:00
Remco Burema
015e635213 Engine-plugins wouldn't always close.
... because the code to terminate them wasn't always called. Especially annoying on Windows, since the sub-program could aparently become a zomboid after termination of the main one(s).

I guess this is still part of the still open CURA-10475 'branch' in a way? There is no other ticket that fits at the moment.
2023-08-29 22:46:35 +02:00
Jelle Spijker
037a462c97
Merge branch 'CURA-10475_engineplugin' into CURA-10446_modify_gcode_path 2023-08-21 14:05:43 +02:00
Jelle Spijker
f634a5bd44 Send over plugin name and version
Might be needed during the handshake between engine and plugin

Contributes to CURA-10619
2023-08-15 11:27:15 +02:00
c.lamboo
c1acfee5f1 Merge branch 'CURA-10475_engineplugin' into CURA-10446_modify_gcode_path 2023-08-11 15:08:59 +02:00
Jelle Spijker
dead016ed9 Add error messages to BackendPlugin and enhance exception handling
Exception handling in BackendPlugin has been improved by adding
user-friendly error messages for various exceptions. Errors during
backend plugin start or stop will now trigger a message to the user,
providing more context about the cause of the failure. This makes it
easier for users to understand and resolve possible issues. In addition,
 the EngineBackend stop function has been modified to forcibly stop all
 running backend plugins instead of allowing multiple plugins to run
 simultaneously.
2023-08-10 05:56:24 +02:00
Jelle Spijker
2240db9062
Add GCodePathsModify
Contributes CURA-10446
2023-08-07 16:04:25 +02:00