Skip to content

Commit

Permalink
Use major + minor versions, remove patch version (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
radurentea authored Dec 5, 2024
1 parent 7e4b592 commit d6e300f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pythonManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ export async function installExtensionPyReqs(
OutputChannel.appendLine(debugAdapterRequirements + reqDoesNotExists);
return;
}
const espIdfVersion = await utils.getEspIdfFromCMake(espDir);
const fullEspIdfVersion = await utils.getEspIdfFromCMake(espDir);
const majorMinorMatches = fullEspIdfVersion.match(/([0-9]+\.[0-9]+).*/);
const espIdfVersion =
majorMinorMatches && majorMinorMatches.length > 0
? majorMinorMatches[1]
: "x.x";
const constrainsFile = join(
idfToolsDir,
`espidf.constraints.v${espIdfVersion}.txt`
Expand Down

0 comments on commit d6e300f

Please sign in to comment.