Skip to content

Commit 1a889d0

Browse files
committed
Merge branch 'release/v3.3.2'
2 parents c187bd9 + e670033 commit 1a889d0

File tree

17 files changed

+184
-171
lines changed

17 files changed

+184
-171
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release Notes
22

3+
## 3.3.2 (2023-12-23)
4+
5+
* Upgraded the integrated Python distribution for Windows users to version 3.11.7, ensuring compatibility and leveraging the latest features and optimizations.
6+
7+
Existing Windows users who installed PlatformIO IDE before and wish to transition to the latest Python 3.11 are advised to follow these steps:
8+
9+
1. Close VSCode
10+
2. Navigate to the `C:\Users\%USERPROFILE%\.platformio` (or `C:\.platformio`) folder and delete the `penv` and `python3` directories
11+
3. Open VSCode.
12+
313
## 3.3.1 (2023-07-28)
414

515
* Updated the PlatformIO Core Installer Script to version [1.2.1](https://github.com/platformio/platformio-core-installer/releases/tag/v1.2.1)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# PlatformIO IDE for VSCode
22

3-
[PlatformIO](https://platformio.org) is a professional collaborative platform for embedded development.
3+
[PlatformIO](https://platformio.org): Your Gateway to Embedded Software Development Excellence.
44

5-
**A place where Developers and Teams have true Freedom! No more vendor lock-in!**
5+
Unlock the true potential of embedded software development with PlatformIO’s collaborative ecosystem, embracing declarative principles, test-driven methodologies, and modern toolchains for unrivaled success.
66

77
* Open source, maximum permissive Apache 2.0 license
88
* Cross-platform IDE and Unified Debugger

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"license": "Apache-2.0",
99
"displayName": "PlatformIO IDE",
10-
"description": "Professional development environment for Embedded, IoT, Arduino, CMSIS, ESP-IDF, FreeRTOS, libOpenCM3, mbed OS, Pulp OS, SPL, STM32Cube, Zephyr RTOS, ARM, AVR, Espressif (ESP8266/ESP32), FPGA, MCS-51 (8051), MSP430, Nordic (nRF51/nRF52), PIC32, RISC-V, STMicroelectronics (STM8/STM32), Teensy",
10+
"description": "Your Gateway to Embedded Software Development Excellence: CMSIS, ESP-IDF, FreeRTOS, libOpenCM3, mbed OS, SPL, STM32Cube, Zephyr RTOS, Arduino, ARM, AVR, Espressif (ESP8266/ESP32), FPGA, MCS-51 (8051), MSP430, Nordic (nRF51/nRF52), PIC32, RISC-V, Raspberry Pi (RP2040), STMicroelectronics (STM8/STM32), Teensy",
1111
"categories": [
1212
"Programming Languages",
1313
"Linters",
@@ -905,12 +905,12 @@
905905
"devDependencies": {
906906
"@types/node": "~14",
907907
"@types/vscode": "~1.65.0",
908-
"@vscode/vsce": "~2.20.0",
909-
"eslint": "~8.46.0",
910-
"eslint-import-resolver-webpack": "~0.13.2",
911-
"eslint-plugin-import": "~2.28.0",
912-
"prettier": "~2.8.8",
913-
"webpack": "~5.88.2",
908+
"@vscode/vsce": "~2.22.0",
909+
"eslint": "~8.56.0",
910+
"eslint-import-resolver-webpack": "~0.13.8",
911+
"eslint-plugin-import": "~2.29.1",
912+
"prettier": "~3.1.1",
913+
"webpack": "~5.89.0",
914914
"webpack-cli": "~5.1.4"
915915
},
916916
"extensionDependencies": [

src/home.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class PIOHome {
2525

2626
// close PIO Home when workspaces folders are changed (VSCode reactivates extensiuon)
2727
this.subscriptions.push(
28-
vscode.workspace.onDidChangeWorkspaceFolders(this.disposePanel.bind(this))
28+
vscode.workspace.onDidChangeWorkspaceFolders(this.disposePanel.bind(this)),
2929
);
3030
}
3131

@@ -77,16 +77,16 @@ export default class PIOHome {
7777
{
7878
enableScripts: true,
7979
retainContextWhenHidden: true,
80-
}
80+
},
8181
);
8282
this.subscriptions.push(panel.onDidDispose(this.onPanelDisposed.bind(this)));
8383
panel.iconPath = vscode.Uri.file(
8484
path.join(
8585
extension.context.extensionPath,
8686
'assets',
8787
'images',
88-
'platformio-mini-logo.svg'
89-
)
88+
'platformio-mini-logo.svg',
89+
),
9090
);
9191
panel.webview.html = this.getLoadingContent();
9292
try {
@@ -158,10 +158,10 @@ export default class PIOHome {
158158
theme === 'light' ? '#FFF' : '#1E1E1E'
159159
}">
160160
<iframe id="${iframeId}" src="${pioNodeHelpers.home.getFrontendUrl({
161-
start: startUrl,
162-
theme,
163-
workspace: extension.getEnterpriseSetting('defaultPIOHomeWorkspace'),
164-
})}"
161+
start: startUrl,
162+
theme,
163+
workspace: extension.getEnterpriseSetting('defaultPIOHomeWorkspace'),
164+
})}"
165165
width="100%"
166166
height="100%"
167167
frameborder="0"
@@ -194,7 +194,7 @@ export default class PIOHome {
194194
vscode.workspace.updateWorkspaceFolders(
195195
vscode.workspace.workspaceFolders.length,
196196
null,
197-
{ uri: vscode.Uri.file(params) }
197+
{ uri: vscode.Uri.file(params) },
198198
);
199199
} else {
200200
vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.file(params));
@@ -207,12 +207,12 @@ export default class PIOHome {
207207
const editor = await vscode.window.showTextDocument(vscode.Uri.file(params.path));
208208
const gotoPosition = new vscode.Position(
209209
(params.line || 1) - 1,
210-
(params.column || 1) - 1
210+
(params.column || 1) - 1,
211211
);
212212
editor.selection = new vscode.Selection(gotoPosition, gotoPosition);
213213
editor.revealRange(
214214
new vscode.Range(gotoPosition, gotoPosition),
215-
vscode.TextEditorRevealType.InCenter
215+
vscode.TextEditorRevealType.InCenter,
216216
);
217217
return true;
218218
}

src/installer/manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export default class InstallationManager {
3838
predownloadedPackageDir: path.join(
3939
extension.context.extensionPath,
4040
'assets',
41-
'predownloaded'
41+
'predownloaded',
4242
),
43-
}
43+
},
4444
),
4545
];
4646
}

src/installer/python-prompt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default class PythonPrompt {
2020
{ title: 'Install Python', isCloseAffordance: false },
2121
{ title: 'I have Python', isCloseAffordance: false },
2222
{ title: 'Try again', isCloseAffordance: false },
23-
{ title: 'Abort PlatformIO IDE Installation', isCloseAffordance: true }
23+
{ title: 'Abort PlatformIO IDE Installation', isCloseAffordance: true },
2424
);
2525

2626
let result = { status: this.STATUS_TRY_AGAIN };
@@ -30,8 +30,8 @@ export default class PythonPrompt {
3030
vscode.commands.executeCommand(
3131
'vscode.open',
3232
vscode.Uri.parse(
33-
'https://docs.platformio.org/en/latest/faq/install-python.html'
34-
)
33+
'https://docs.platformio.org/en/latest/faq/install-python.html',
34+
),
3535
);
3636
break;
3737
case 'I have Python':

src/main.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PlatformIOVSCodeExtension {
4646
context.globalState.keys().reduce((state, key) => {
4747
state[key] = context.globalState.get(key);
4848
return state;
49-
}, {})
49+
}, {}),
5050
);
5151

5252
// temporary workaround for https://github.com/Microsoft/vscode/issues/58348
@@ -72,15 +72,15 @@ class PlatformIOVSCodeExtension {
7272
this.subscriptions.push(
7373
vscode.window.registerTreeDataProvider(
7474
'platformio-ide.quickAccess',
75-
new QuickAccessTreeProvider()
76-
)
75+
new QuickAccessTreeProvider(),
76+
),
7777
);
7878

7979
this.registerGlobalCommands();
8080

8181
if (!hasPIOProject) {
8282
this.subscriptions.push(
83-
new PIOToolbar({ filterCommands: ['platformio-ide.showHome'] })
83+
new PIOToolbar({ filterCommands: ['platformio-ide.showHome'] }),
8484
);
8585
return;
8686
}
@@ -89,7 +89,7 @@ class PlatformIOVSCodeExtension {
8989
this.subscriptions.push(
9090
new PIOToolbar({
9191
ignoreCommands: this.getEnterpriseSetting('ignoreToolbarCommands'),
92-
})
92+
}),
9393
);
9494

9595
this.initDebug();
@@ -102,8 +102,8 @@ class PlatformIOVSCodeExtension {
102102
misc.warnAboutConflictedExtensions();
103103
this.subscriptions.push(
104104
vscode.window.onDidChangeActiveTextEditor((editor) =>
105-
misc.warnAboutInoFile(editor)
106-
)
105+
misc.warnAboutInoFile(editor),
106+
),
107107
);
108108
}
109109

@@ -116,7 +116,7 @@ class PlatformIOVSCodeExtension {
116116
(item) =>
117117
item.id.startsWith('platformio.') &&
118118
item.id !== 'platformio.platformio-ide' &&
119-
item.isActive
119+
item.isActive,
120120
);
121121
return ext && ext.exports ? ext.exports.settings : undefined;
122122
}
@@ -161,7 +161,7 @@ class PlatformIOVSCodeExtension {
161161
if (im.locked()) {
162162
vscode.window.showInformationMessage(
163163
'PlatformIO IDE installation has been suspended, because PlatformIO ' +
164-
'IDE Installer is already started in another window.'
164+
'IDE Installer is already started in another window.',
165165
);
166166
return;
167167
}
@@ -178,7 +178,7 @@ class PlatformIOVSCodeExtension {
178178
return !(await im.check());
179179
} catch (err) {}
180180
return true;
181-
}
181+
},
182182
);
183183

184184
if (!doInstall) {
@@ -195,19 +195,19 @@ class PlatformIOVSCodeExtension {
195195
message: 'Installing PlatformIO IDE...',
196196
});
197197
const outputChannel = vscode.window.createOutputChannel(
198-
'PlatformIO Installation'
198+
'PlatformIO Installation',
199199
);
200200
outputChannel.show();
201201
outputChannel.appendLine('Installing PlatformIO IDE...');
202202
outputChannel.appendLine(
203-
'It may take a few minutes depending on your connection speed'
203+
'It may take a few minutes depending on your connection speed',
204204
);
205205
outputChannel.appendLine(
206206
'Please do not close this window and do not ' +
207-
'open other folders until this process is completed.'
207+
'open other folders until this process is completed.',
208208
);
209209
outputChannel.appendLine(
210-
'\nDebugging information is available via VSCode > Help > Toggle Developer Tools > Console.'
210+
'\nDebugging information is available via VSCode > Help > Toggle Developer Tools > Console.',
211211
);
212212

213213
try {
@@ -218,7 +218,7 @@ class PlatformIOVSCodeExtension {
218218
const action = 'Reload Now';
219219
const selected = await vscode.window.showInformationMessage(
220220
'PlatformIO IDE has been successfully installed! Please reload window',
221-
action
221+
action,
222222
);
223223
if (selected === action) {
224224
vscode.commands.executeCommand('workbench.action.reloadWindow');
@@ -232,7 +232,7 @@ class PlatformIOVSCodeExtension {
232232

233233
im.destroy();
234234
return true;
235-
}
235+
},
236236
);
237237
}
238238

@@ -249,25 +249,25 @@ class PlatformIOVSCodeExtension {
249249
registerGlobalCommands() {
250250
this.subscriptions.push(
251251
vscode.commands.registerCommand('platformio-ide.showHome', (startUrl) =>
252-
this.pioHome.toggle(startUrl)
252+
this.pioHome.toggle(startUrl),
253253
),
254254
vscode.commands.registerCommand('platformio-ide.newTerminal', () =>
255-
this.pioTerm.new().show()
255+
this.pioTerm.new().show(),
256256
),
257257
vscode.commands.registerCommand('platformio-ide.openPIOCoreCLI', () =>
258-
this.pioTerm.sendText('pio --help')
258+
this.pioTerm.sendText('pio --help'),
259259
),
260260
vscode.commands.registerCommand('platformio-ide.runPIOCoreCommand', (cmd) =>
261-
this.pioTerm.sendText(cmd)
261+
this.pioTerm.sendText(cmd),
262262
),
263263
vscode.commands.registerCommand('platformio-ide.startDebugging', () => {
264264
vscode.commands.executeCommand('workbench.view.debug');
265265
vscode.commands.executeCommand('workbench.debug.action.toggleRepl');
266266
vscode.commands.executeCommand('workbench.action.debug.start');
267267
}),
268268
vscode.commands.registerCommand('platformio-ide.upgradeCore', () =>
269-
this.pioTerm.sendText('pio upgrade')
270-
)
269+
this.pioTerm.sendText('pio upgrade'),
270+
),
271271
);
272272
}
273273

@@ -295,7 +295,7 @@ class PlatformIOVSCodeExtension {
295295
console.warn(err);
296296
}
297297
vscode.window.showInformationMessage(
298-
'Please restart VSCode to apply the changes.'
298+
'Please restart VSCode to apply the changes.',
299299
);
300300
});
301301
}

src/misc.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ export async function maybeRateExtension() {
3434
'It will not take more than one minute. Thanks for your support!',
3535
{ title: 'Rate PlatformIO IDE Extension', isCloseAffordance: false },
3636
{ title: 'Remind later', isCloseAffordance: false },
37-
{ title: 'No, Thanks', isCloseAffordance: true }
37+
{ title: 'No, Thanks', isCloseAffordance: true },
3838
);
3939

4040
switch (selectedItem ? selectedItem.title : undefined) {
4141
case 'Rate PlatformIO IDE Extension':
4242
vscode.commands.executeCommand(
4343
'vscode.open',
44-
vscode.Uri.parse('http://bit.ly/pio-vscode-rate')
44+
vscode.Uri.parse('http://bit.ly/pio-vscode-rate'),
4545
);
4646
state.done = true;
4747
break;
@@ -56,7 +56,7 @@ export async function maybeRateExtension() {
5656

5757
export async function warnAboutConflictedExtensions() {
5858
const conflicted = vscode.extensions.all.filter(
59-
(ext) => ext.isActive && CONFLICTED_EXTENSION_IDS.includes(ext.id)
59+
(ext) => ext.isActive && CONFLICTED_EXTENSION_IDS.includes(ext.id),
6060
);
6161
if (conflicted.length === 0) {
6262
return;
@@ -69,20 +69,20 @@ export async function warnAboutConflictedExtensions() {
6969
'Please disable or uninstall them (Menu > View > Extensions).',
7070
{ title: 'More details', isCloseAffordance: false },
7171
{ title: 'Uninstall conflicted', isCloseAffordance: false },
72-
{ title: 'Remind later', isCloseAffordance: true }
72+
{ title: 'Remind later', isCloseAffordance: true },
7373
);
7474
switch (selectedItem ? selectedItem.title : undefined) {
7575
case 'More details':
7676
vscode.commands.executeCommand(
7777
'vscode.open',
78-
vscode.Uri.parse('http://bit.ly/pio-vscode-conflicted-extensions')
78+
vscode.Uri.parse('http://bit.ly/pio-vscode-conflicted-extensions'),
7979
);
8080
break;
8181
case 'Uninstall conflicted':
8282
conflicted.forEach((ext) => {
8383
vscode.commands.executeCommand(
8484
'workbench.extensions.uninstallExtension',
85-
ext.id
85+
ext.id,
8686
);
8787
});
8888
vscode.commands.executeCommand('workbench.action.reloadWindow');
@@ -108,13 +108,13 @@ export async function warnAboutInoFile(editor) {
108108
'Please convert .INO sketch into the valid .CPP file.',
109109
{ title: 'Show instruction', isCloseAffordance: false },
110110
{ title: 'Do not show again', isCloseAffordance: false },
111-
{ title: 'Remind later', isCloseAffordance: true }
111+
{ title: 'Remind later', isCloseAffordance: true },
112112
);
113113
switch (selectedItem ? selectedItem.title : undefined) {
114114
case 'Show instruction':
115115
vscode.commands.executeCommand(
116116
'vscode.open',
117-
vscode.Uri.parse('https://bit.ly/convert-ino-to-cpp')
117+
vscode.Uri.parse('https://bit.ly/convert-ino-to-cpp'),
118118
);
119119
break;
120120
case 'Do not show again':

0 commit comments

Comments
 (0)