Skip to content

Commit 274b2e8

Browse files
committed
3.0.2 Fixed polling cl version for non-English languages
1 parent c05e3eb commit 274b2e8

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [3.0.2] 2025-8-30
4+
### Fixed
5+
- (Windows) Polling cl version now works in other languages for 'Set Custom System includes' command
6+
- Also fixed Polling error message to give better info when can't get cl version number
37
## [3.0.1] 2025-7-29
48
### Fixed
59
- (Windows) Users using professional versions of Visual Studio can now set custom system includes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unreal-clangd",
33
"displayName": "Unreal Clangd",
44
"description": "Creates clangd project for Unreal 5.2+",
5-
"version": "3.0.1",
5+
"version": "3.0.2",
66
"engines": {
77
"vscode": "^1.99.0"
88
},

src/libs/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { Overwrite } from './indexTypes';
88
import type { DocumentOptions, SchemaOptions, ParseOptions, CreateNodeOptions, ToStringOptions} from 'yaml';
99
import { EOL } from "node:os";
1010

11-
export const EXTENSION_VERSION = "3.0.1";
11+
export const EXTENSION_VERSION = "3.0.2";
1212
export const VALIDATE_UNREAL_VERSIONS: { min: ueHelpers.UnrealVersion, max: ueHelpers.UnrealVersion } =
1313
{ min: { major: 5, minor: 2, patch: 0 }, max: { major: 6, minor: 0, patch: 0 } }; // The unreal versions this extension was created for
1414

src/modules/setCustomSysInc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ async function getFmsCompatibilityVersion(cppVersionUri: vscode.Uri) {
601601
const result = await runTerminalCommand(`"${clUri.fsPath}"`, `Error running cl.exe: ${clUri.fsPath}`);
602602
let re: RegExp;
603603
try {
604-
re = new RegExp(`(?<=Compiler Version )[.\\d]+`);
604+
//re = new RegExp(`(?<=Compiler Version )[.\\d]+`);
605+
re = new RegExp(`(?:(?:\\d+\\.){2,}\\d+)`);
605606
} catch (error) {
606607
if(error instanceof Error) { console.error(error.message);}
607608
console.error("RegExp in getFmsCompatibilityVersion() was malformed!");
@@ -611,7 +612,7 @@ async function getFmsCompatibilityVersion(cppVersionUri: vscode.Uri) {
611612
const version = result?.stderr.match(re)?.[0];
612613

613614
if(!version){
614-
console.error(`Couldn't get Fms Compatibility Version! re=${re.source} terminalCmdResult=${result ? "result" : "undefined"}`);
615+
console.error(`Couldn't get Fms Compatibility Version! Path: ${clUri.fsPath} re=${re.source} terminalCmdResult=${result ? result.stderr : "undefined"}`);
615616
return;
616617
}
617618

0 commit comments

Comments
 (0)