Skip to content

Commit 14dee9e

Browse files
committed
v3.17.1 revision
1 parent e4bb153 commit 14dee9e

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ All notable version changes will be recorded in this file.
66

77
***
88

9+
### [v3.17.1] revision
10+
11+
**Fix**:
12+
- `Permission Error`: Fix Permission Denied when execute unify_builder on Unix-like system.
13+
14+
**Optimize**
15+
- `Armcc Memory Print`: Optimize ARMCC map memory information print.
16+
17+
***
18+
919
### [v3.17.0] update
1020

1121
**New**:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"homepage": "https://em-ide.com",
3939
"license": "MIT",
4040
"description": "A mcu development environment for 8051/AVR/STM8/Cortex-M/MIPS/RISC-V",
41-
"version": "3.17.0",
41+
"version": "3.17.1",
4242
"preview": false,
4343
"engines": {
4444
"vscode": "^1.67.0"

src/extension.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,7 @@ function onBinariesInstallDone() {
697697
// get exe file list from folders
698698
for (const dir of [
699699
File.fromArray([resManager.GetBinDir().path, 'scripts']),
700-
File.fromArray([resManager.getLegacyBuilderDir().path, 'utils']),
701-
File.fromArray([resManager.getUnifyBuilderExe().dir])
700+
File.fromArray([resManager.getLegacyBuilderDir().path, 'utils'])
702701
]) {
703702
dir.GetList(undefined, File.EXCLUDE_ALL_FILTER)
704703
.forEach((f) => {
@@ -708,12 +707,17 @@ function onBinariesInstallDone() {
708707
});
709708
}
710709

710+
if (exeLi.length > 0)
711+
GlobalEvent.emit('globalLog.append', 'Setup binaries permissions -> ' + os.EOL);
712+
711713
for (const path of exeLi) {
712714
try {
713-
ChildProcess.execSync(`chmod +x "${path}"`);
714-
GlobalEvent.emit('globalLog', newMessage('Info', `chmod +x "${path}"`));
715+
const cmd = `chmod +x "${path}"`;
716+
GlobalEvent.emit('globalLog.append', cmd + os.EOL);
717+
ChildProcess.execSync(cmd);
715718
} catch (error) {
716719
GlobalEvent.emit('globalLog', ExceptionToMessage(error, 'Error'));
720+
GlobalEvent.emit('globalLog.show');
717721
}
718722
}
719723
}
@@ -1039,7 +1043,7 @@ async function InitComponents(context: vscode.ExtensionContext): Promise<boolean
10391043
fs.accessSync(exePath, fs.constants.R_OK | fs.constants.X_OK);
10401044
} catch (error) {
10411045
const cmd = `chmod +x "${exePath}"`;
1042-
GlobalEvent.emit('globalLog.append', cmd);
1046+
GlobalEvent.emit('globalLog.append', cmd + os.EOL);
10431047
ChildProcess.execSync(cmd);
10441048
}
10451049
}

0 commit comments

Comments
 (0)