Skip to content

Commit f489e74

Browse files
authored
Merge branch 'main' into CURA-12525_put_primary_extruder_not_0
2 parents 7fdacc4 + 8edc14c commit f489e74

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
npm-package:
4949
needs: [ conan-package ]
50-
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'NP-') || startsWith(github.ref_name, '5.')) }} # FIXME: have a more generic way to determine release branches
50+
if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'NP-') || startsWith(github.ref_name, '5.'))) || github.event_name == 'pull_request' && (github.head_ref == 'main' || startsWith(github.head_ref, '5.'))}} # FIXME: have a more generic way to determine release branches
5151
uses: ultimaker/cura-workflows/.github/workflows/npm-package.yml@main
5252
with:
5353
package_version_full: ${{ needs.conan-package.outputs.package_version_full }}

include/plugins/pluginproxy.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#define PLUGINS_PLUGINPROXY_H
66

77
#include <chrono>
8+
#include <sstream>
89

910
#include <agrpc/asio_grpc.hpp>
1011
#include <agrpc/client_rpc.hpp>
@@ -275,7 +276,9 @@ class PluginProxy
275276

276277
// Metadata
277278
client_context.AddMetadata("cura-engine-uuid", slot_info.engine_uuid.data());
278-
client_context.AddMetadata("cura-thread-id", fmt::format("{}", std::this_thread::get_id()));
279+
std::stringstream strstrm;
280+
strstrm << std::this_thread::get_id();
281+
client_context.AddMetadata("cura-thread-id", strstrm.str());
279282
}
280283

281284
/**

src/communication/CommandLine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ int CommandLine::loadJSON(const std::filesystem::path& json_filename, Settings&
509509
std::ifstream file(json_filename, std::ios::binary);
510510
if (! file)
511511
{
512-
spdlog::error("Couldn't open JSON file: {}", json_filename);
512+
spdlog::error("Couldn't open JSON file: {}", json_filename.generic_string());
513513
return 1;
514514
}
515515

@@ -695,7 +695,7 @@ std::optional<container_setting_map> CommandLine::readResolvedJsonValues(const s
695695
std::ifstream file(json_filename, std::ios::binary);
696696
if (! file)
697697
{
698-
spdlog::error("Couldn't open JSON file: {}", json_filename);
698+
spdlog::error("Couldn't open JSON file: {}", json_filename.generic_string());
699699
return std::nullopt;
700700
}
701701

stress_benchmark/stress_benchmark.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <boost/geometry/geometries/polygon.hpp>
1818
#include <boost/geometry/io/wkt/read.hpp>
1919
#include <fmt/format.h>
20+
#include <fmt/ranges.h>
2021
#include <spdlog/spdlog.h>
2122

2223
#include "WallsComputation.h"

0 commit comments

Comments
 (0)