From c1e1314ea2bc0e77e0ccc6abefd7760681085120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Jim=C3=A9nez=20Rivera?= Date: Wed, 26 Mar 2025 18:11:42 +0100 Subject: [PATCH 1/2] Ignore placeholder error with common result --- native-src/placeholders_interface/Planceholders.cpp | 4 +++- package.json | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/native-src/placeholders_interface/Planceholders.cpp b/native-src/placeholders_interface/Planceholders.cpp index ad99b88e..20346922 100644 --- a/native-src/placeholders_interface/Planceholders.cpp +++ b/native-src/placeholders_interface/Planceholders.cpp @@ -226,7 +226,9 @@ bool Placeholders::ConvertToPlaceholder(const std::wstring &fullPath, const std: if (FAILED(hr)) { // Manejar el error al convertir a marcador de posición - wprintf(L"[ConvertToPlaceholder] Error converting to placeholder, ConvertToPlaceholder failed with HRESULT 0x%X\n", hr); + if (hr != 0x8007017C) { + wprintf(L"[ConvertToPlaceholder] Error converting to placeholder, ConvertToPlaceholder failed with HRESULT 0x%X\n", hr); + } // Puedes obtener información detallada sobre el error usando FormatMessage LPVOID errorMsg; diff --git a/package.json b/package.json index 2000021d..6a6e6f6a 100644 --- a/package.json +++ b/package.json @@ -14,14 +14,14 @@ "scripts": { "========== Testing ==========": "", "test": "vitest", - "test:once": "yarn vitest --run", - "test:one": "yarn vitest related x", + "test:once": "npm run vitest -- --run", + "test:one": "npm run vitest -- related x", "========== Build ==========": "", "clean": "node-gyp clean", "build:gyp": "node-gyp configure build", "build:ts": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json", "config:gyp": "python gyp.config.py", - "build": "python gyp.config.py && node-gyp clean && node-gyp configure build && yarn build:ts", + "build": "python gyp.config.py && node-gyp clean && node-gyp configure build && npm run build:ts", "========== Linter ==========": "", "format": "prettier . --check", "format:fix": "prettier . --write", From 7918f3096aa759ee843fc5b67d2b960d1ee98c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Jim=C3=A9nez=20Rivera?= Date: Wed, 26 Mar 2025 19:15:47 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6a6e6f6a..a095d9de 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "scripts": { "========== Testing ==========": "", "test": "vitest", - "test:once": "npm run vitest -- --run", - "test:one": "npm run vitest -- related x", + "test:once": "npm run test -- --run", + "test:one": "npm run test -- related x", "========== Build ==========": "", "clean": "node-gyp clean", "build:gyp": "node-gyp configure build",