From 896154f90180ce29dc8506de1a5b532fd465e273 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Tue, 15 Apr 2025 14:49:07 +0100 Subject: [PATCH 1/2] Fix `@:enum` abstract deprecation warning in Server.hx --- hxcpp-debug-server/hxcpp/debug/jsonrpc/Server.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hxcpp-debug-server/hxcpp/debug/jsonrpc/Server.hx b/hxcpp-debug-server/hxcpp/debug/jsonrpc/Server.hx index 2aa8647..a8fde0f 100644 --- a/hxcpp-debug-server/hxcpp/debug/jsonrpc/Server.hx +++ b/hxcpp-debug-server/hxcpp/debug/jsonrpc/Server.hx @@ -17,7 +17,7 @@ import hxcpp.debug.jsonrpc.eval.Interp; import hxcpp.debug.jsonrpc.eval.Expr; import hxcpp.debug.jsonrpc.eval.Interp; -@:enum abstract ScopeId(String) to String { +#if haxe4 enum #else @:enum #end abstract ScopeId(String) to String { var members = "Members"; var locals = "Locals"; } From ca07b65446fb80709e034b9aeac5decb5eb5515d Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Tue, 15 Apr 2025 14:50:18 +0100 Subject: [PATCH 2/2] Fix `@:enum` abstract deprecation warning in Protocol.hx --- hxcpp-debug-server/hxcpp/debug/jsonrpc/Protocol.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hxcpp-debug-server/hxcpp/debug/jsonrpc/Protocol.hx b/hxcpp-debug-server/hxcpp/debug/jsonrpc/Protocol.hx index 3410a96..b576ee1 100644 --- a/hxcpp-debug-server/hxcpp/debug/jsonrpc/Protocol.hx +++ b/hxcpp-debug-server/hxcpp/debug/jsonrpc/Protocol.hx @@ -18,7 +18,7 @@ typedef Message = { @:optional var error:Error; } -@:enum +#if haxe4 enum #else @:enum #end abstract ErrorCode(Int) to Int { var internal = 500; var wrongRequest = 422;