diff --git a/app/modules/device/sagas.js b/app/modules/device/sagas.js
index e0450c95..eff35903 100644
--- a/app/modules/device/sagas.js
+++ b/app/modules/device/sagas.js
@@ -63,7 +63,10 @@ function* watchLoadMDNSDevices() {
try {
items = yield call(apiFetchData, {
query: 'core.call',
- params: [['device', 'list', '--mdns', '--json-output']]
+ params: [
+ ['device', 'list', '--mdns', '--json-output'],
+ { force_subprocess: true }
+ ]
});
yield put(updateEntity('mDNSDevices', items));
} catch (err) {
diff --git a/app/modules/inspect/sagas.js b/app/modules/inspect/sagas.js
index 022f5ae2..3686e18e 100644
--- a/app/modules/inspect/sagas.js
+++ b/app/modules/inspect/sagas.js
@@ -46,7 +46,10 @@ function* _inspectMemory({ projectDir, env }) {
const start = Date.now();
yield call(apiFetchData, {
query: 'core.call',
- params: [['run', '-d', projectDir, '-e', env, '-t', 'sizedata']]
+ params: [
+ ['run', '-d', projectDir, '-e', env, '-t', 'sizedata'],
+ { force_subprocess: true }
+ ]
});
const buildDir = yield call(apiFetchData, {
@@ -78,7 +81,10 @@ function* _inspectCode({ projectDir, env }) {
try {
codeCheckResults = yield call(apiFetchData, {
query: 'core.call',
- params: [['check', '-d', projectDir, '-e', env, '--json-output']]
+ params: [
+ ['check', '-d', projectDir, '-e', env, '--json-output'],
+ { force_subprocess: true }
+ ]
});
yield _updateMetric('code', projectDir, env, Date.now() - start);
diff --git a/app/modules/library/sagas.js b/app/modules/library/sagas.js
index eab03c96..a89559b8 100644
--- a/app/modules/library/sagas.js
+++ b/app/modules/library/sagas.js
@@ -156,7 +156,7 @@ function* watchLoadBuiltinLibs() {
try {
items = yield call(apiFetchData, {
query: 'core.call',
- params: [['lib', 'builtin', '--json-output']]
+ params: [['lib', 'builtin', '--json-output'], { force_subprocess: true }]
});
yield put(updateEntity('builtinLibs', items));
} catch (err) {
@@ -185,7 +185,7 @@ function* watchLoadInstalledLibs() {
args = args.concat(['list', '--json-output']);
const items = yield call(apiFetchData, {
query: 'core.call',
- params: [args]
+ params: [args, { force_subprocess: true }]
});
yield put(updateEntity(`installedLibs${storage.initialPath}`, items));
} catch (err) {
@@ -219,7 +219,7 @@ function* fetchStorageUpdates(storage) {
args = args.concat(['update', '--only-check', '--json-output']);
return yield call(apiFetchData, {
query: 'core.call',
- params: [args]
+ params: [args, { force_subprocess: true }]
});
}
@@ -301,7 +301,7 @@ function* watchInstallLibrary() {
args = args.concat(['install', lib]);
result = yield call(apiFetchData, {
query: 'core.call',
- params: [args]
+ params: [args, { force_subprocess: true }]
});
yield put(notifySuccess('Congrats!', cleanupPackageManagerOutput(result)));
} catch (err_) {
@@ -344,7 +344,8 @@ function* watchUninstallOrUpdateLibrary() {
storage.path,
action.type === actions.UNINSTALL_LIBRARY ? 'uninstall' : 'update',
pkg.__pkg_dir
- ]
+ ],
+ { force_subprocess: true }
]
});
diff --git a/app/modules/platform/sagas.js b/app/modules/platform/sagas.js
index 9c13eab1..b6129807 100644
--- a/app/modules/platform/sagas.js
+++ b/app/modules/platform/sagas.js
@@ -225,7 +225,10 @@ function* watchLoadPlatformUpdates() {
try {
const items = yield call(apiFetchData, {
query: 'core.call',
- params: [['platform', 'update', '--only-check', '--json-output']]
+ params: [
+ ['platform', 'update', '--only-check', '--json-output'],
+ { force_subprocess: true }
+ ]
});
yield put(updateEntity('platformUpdates', items));
} catch (err) {
@@ -256,7 +259,10 @@ function* watchAutoCheckPlatformUpdates() {
try {
const result = yield call(apiFetchData, {
query: 'core.call',
- params: [['platform', 'update', '--only-check', '--json-output']]
+ params: [
+ ['platform', 'update', '--only-check', '--json-output'],
+ { force_subprocess: true }
+ ]
});
yield put(updateRouteBadge('/platforms/updates', result.length));
} catch (err) {
@@ -273,7 +279,7 @@ function* watchInstallPlatform() {
result = yield call(apiFetchData, {
query: 'core.call',
- params: [['platform', 'install', platform]]
+ params: [['platform', 'install', platform], { force_subprocess: true }]
});
ReactGA.timing({
@@ -311,7 +317,8 @@ function* watchUninstallOrUpdatePlatform() {
'platform',
action.type === actions.UNINSTALL_PLATFORM ? 'uninstall' : 'update',
pkgDir
- ]
+ ],
+ { force_subprocess: true }
]
});
From 5515cec9572a08deb22031d46367a0f86bfbd7a8 Mon Sep 17 00:00:00 2001
From: Ivan Kravets
Date: Tue, 27 Oct 2020 20:41:39 +0200
Subject: [PATCH 20/22] Use disk name on Unix in file explorer
---
app/modules/core/containers/file-explorer.jsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/modules/core/containers/file-explorer.jsx b/app/modules/core/containers/file-explorer.jsx
index 3d820ce2..ffe47da4 100644
--- a/app/modules/core/containers/file-explorer.jsx
+++ b/app/modules/core/containers/file-explorer.jsx
@@ -30,6 +30,7 @@ import {
Tooltip
} from 'antd';
+import { IS_WINDOWS } from '../../../config';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
@@ -347,7 +348,7 @@ class FileExplorer extends React.Component {
this.onDidChangeRoot(item.path)} title={item.name}>
- {item.path}
+ {!IS_WINDOWS && item.name ? item.name : item.path}
))}
From 952e44929192ba526987e5a6a9af7eddc9fb0c30 Mon Sep 17 00:00:00 2001
From: Ivan Kravets
Date: Tue, 27 Oct 2020 20:48:45 +0200
Subject: [PATCH 21/22] Fix an issue when update button is disabled for global
libraries
---
app/modules/library/components/storage-item.jsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/modules/library/components/storage-item.jsx b/app/modules/library/components/storage-item.jsx
index 92490984..580e40ce 100644
--- a/app/modules/library/components/storage-item.jsx
+++ b/app/modules/library/components/storage-item.jsx
@@ -175,12 +175,14 @@ export default class LibraryStorageItem extends React.Component {
loading={this.state.actionInProgress}
disabled={
this.state.actionInProgress ||
- this.props.item.versionWanted !== this.props.item.versionLatest
+ (this.props.item.versionWanted &&
+ this.props.item.versionWanted !== this.props.item.versionLatest)
}
onClick={e => this.onDidUninstallOrUpdateItem(e, 'update')}
>
{this.props.item.versionWanted
? `Update to ${this.props.item.versionLatest}${
+ this.props.item.versionWanted &&
this.props.item.versionWanted !== this.props.item.versionLatest
? ' (incompatible)'
: ''
From bc488ae7f3d732ddc92c314cdc68dd6390331a0d Mon Sep 17 00:00:00 2001
From: Ivan Kravets
Date: Tue, 27 Oct 2020 20:50:30 +0200
Subject: [PATCH 22/22] Bump version to 3.3.1
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index c610fd42..d81a7125 100755
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "platformio-home",
- "version": "3.3.0",
+ "version": "3.3.1",
"description": "PlatformIO Home",
"repository": {
"type": "git",