From cad2c415ceb331ea3478bcafe0aee3dba4d7a055 Mon Sep 17 00:00:00 2001 From: github0null Date: Fri, 3 Oct 2025 23:19:46 +0800 Subject: [PATCH 1/3] Revert "support generic gcc for arm or riscv toolchains." This reverts commit 688e2efdb4f404beee160d30a243aad8b274e784. --- src/ToolchainManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ToolchainManager.ts b/src/ToolchainManager.ts index 3f84f1e4..79c1be3d 100644 --- a/src/ToolchainManager.ts +++ b/src/ToolchainManager.ts @@ -180,8 +180,8 @@ export class ToolchainManager { private readonly toolchainNames: ToolchainEnums = { 'C51': ['GNU_SDCC_MCS51', 'Keil_C51', 'SDCC', 'IAR_STM8', 'COSMIC_STM8'], - 'ARM': ['AC5', 'AC6', 'GCC', 'LLVM_ARM', 'IAR_ARM', 'ANY_GCC'], - 'RISC-V': ['RISCV_GCC', 'ANY_GCC'], + 'ARM': ['AC5', 'AC6', 'GCC', 'LLVM_ARM', 'IAR_ARM'], + 'RISC-V': ['RISCV_GCC'], 'MIPS': ['MTI_GCC'], 'ANY-GCC': ['ANY_GCC'] }; From 32ea057a02e519b8a06ea442e451638f08f0358b Mon Sep 17 00:00:00 2001 From: github0null Date: Fri, 3 Oct 2025 23:44:54 +0800 Subject: [PATCH 2/3] fix user context data not migrated. --- src/EIDEProjectMigration.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/EIDEProjectMigration.ts b/src/EIDEProjectMigration.ts index 8501263a..7fefd712 100644 --- a/src/EIDEProjectMigration.ts +++ b/src/EIDEProjectMigration.ts @@ -6,6 +6,7 @@ import { EIDE_CONF_VERSION, ProjectConfiguration } from "./EIDETypeDefine"; import { compareVersion } from "./utility"; import { view_str$prompt$migrationFailed } from "./StringTable"; import { GlobalEvent } from "./GlobalEvents"; +import { getGlobalState } from "./Platform"; export function detectProject(dir: File): boolean { if (File.IsExist(NodePath.join(dir.path, '.eide', 'eide.yml'))) @@ -73,8 +74,23 @@ async function _doMigration(projectRootDir: File) { // rm .eide.usr.ctx.json const p = NodePath.join(projectRootDir.path, '.eide.usr.ctx.json'); - if (File.IsFile(p)) - try { fs.unlinkSync(p); } catch (error) {} + if (File.IsFile(p)) { + try { + if (prjCfg.miscInfo && prjCfg.miscInfo.uid) { + const ctx = JSON.parse(fs.readFileSync(p, 'utf8')); + const key = `project.${prjCfg.miscInfo.uid}`; + const val = getGlobalState().get(key); + const saveVal = JSON.stringify(ctx); + if (val !== saveVal) + getGlobalState().update(key, saveVal); + } + fs.unlinkSync(p); + } catch (error) { + const errMsg = `${(error).name} ${(error).message}`; + GlobalEvent.log_warn(`Fail to migrate user context '${p}'. msg: ${errMsg}`); + GlobalEvent.log_show(); + } + } } export async function doMigration(projectRootDir: File) { From 01559be77aa4d9cecfb8ad7252622c673cf636a5 Mon Sep 17 00:00:00 2001 From: github0null Date: Fri, 3 Oct 2025 23:46:32 +0800 Subject: [PATCH 3/3] v3.26.1 revision --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a94822a9..4fbade8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ All notable version changes will be recorded in this file. *** +### [v3.26.1] revision + +**Fix**: + - `Project Toolchain`: Revert commit 'support generic gcc for arm or riscv projects.' + - `Project Migration`: Fix user context data not migrated. [issues 479](https://github.com/github0null/eide/issues/479) + +*** + ### [v3.26.0] update **Change**: diff --git a/package.json b/package.json index 1f65be40..4aa40e23 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "homepage": "https://em-ide.com", "license": "MIT", "description": "A mcu development environment for 8051/AVR/STM8/Cortex-M/MIPS/RISC-V", - "version": "3.26.0", + "version": "3.26.1", "preview": false, "engines": { "vscode": "^1.67.0"