-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make possible to upload on esp8266 #1462
Conversation
PR title? |
d5152a3
to
2df72aa
Compare
21056fa
to
9593b0f
Compare
2df72aa
to
f3a5cc5
Compare
9593b0f
to
4aa7e7e
Compare
f3a5cc5
to
65582d2
Compare
4aa7e7e
to
f2ecaaa
Compare
65582d2
to
3d6f9c7
Compare
|
@evgenykochetkov already fixed at yesterday evening. |
3d6f9c7
to
32dd458
Compare
🐛 Steps to reproduceOn a fresh workspace:
Expected behaviorI should be able to select the “Amperka WiFi Slot” board Actual behavior“Loading list of supported boards...” forever Console output
Note the Here’s what actually on FS: ~/devel/xod-workspace
$ tree -d -L 4 __packages__/packages/esp8266/hardware
__packages__/packages/esp8266/hardware
└── esp8266
└── 2.4.2
├── bootloaders
│ └── eboot
├── cores
│ └── esp8266
├── libraries
│ ├── ArduinoOTA
│ ├── DNSServer
│ ├── EEPROM
│ ├── esp8266
│ ├── ESP8266AVRISP
│ ├── ESP8266HTTPClient
│ ├── ESP8266httpUpdate
│ ├── ESP8266HTTPUpdateServer
│ ├── ESP8266LLMNR
│ ├── ESP8266mDNS
│ ├── ESP8266NetBIOS
│ ├── ESP8266SSDP
│ ├── ESP8266WebServer
│ ├── ESP8266WiFi
│ ├── ESP8266WiFiMesh
│ ├── Ethernet
│ ├── GDBStub
│ ├── Hash
│ ├── SD
│ ├── Servo
│ ├── SoftwareSerial
│ ├── SPI
│ ├── SPISlave
│ ├── TFT_Touch_Shield_V2
│ ├── Ticker
│ └── Wire
├── tests
│ ├── device
│ └── host
├── tools
│ └── sdk
└── variants
├── adafruit
├── arduino_spi
├── arduino_uart
├── d1
├── d1_mini
├── ESPDuino
├── espino
├── espinotee
├── espresso_lite_v1
├── espresso_lite_v2
├── generic
├── modwifi
├── nodemcu
├── oak
├── phoenix_v1
├── phoenix_v2
├── thing
├── wifiduino
├── wifinfo
├── wifio
├── wifi_slot
├── wiolink
└── xinabox
62 directories
|
Formatting uploader failures as-is is OK. That should not be a bug |
@@ -31,6 +35,7 @@ export default { | |||
note: [librariesInstalled(libraryNames), packagesInstalled(packageNames)] | |||
.filter(a => !!a) | |||
.join('\r\n'), | |||
solution: 'Now you are able to upload the code', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now you are able to upload the program
@@ -28,6 +28,9 @@ export const DEBUG_SESSION_STOPPED_ON_TAB_CLOSE = { | |||
}; | |||
export const DEBUG_LOST_CONNECTION = 'Lost connection with the device.'; | |||
|
|||
export const UPLOAD_PROCESS_BEGINS = | |||
'Begin uploading compiled code onto the board...'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uploading compiled code to the board...
packages/xod-client-electron/src/upload/components/PopupUploadConfig.jsx
Show resolved
Hide resolved
@@ -4,4 +4,8 @@ export default { | |||
note: `Cloud compilation does not support ${boardName} yet.`, | |||
solution: 'Try to compile it on your own computer', | |||
}), | |||
UPLOAD_TOOL_ERROR: ({ message }) => ({ | |||
title: 'Error ocured in the Upload process', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upload tool exited with error
return switchUploadBlock(action, state); | ||
|
||
case UPLOAD: | ||
return switchUploadBlock(action, state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A potential race condition is here. Suggest tracking independently: instead of single blocked
use isInstallingArduinoDependencies
and isUploading
.
@nkrkv can I squash fixup commits? |
0ba859a
to
43fbb0f
Compare
Of course |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…rocess just begins
…tion of arduino dependencies
…lation is in the progress
…l package (temporary kludge)
43fbb0f
to
96a0f97
Compare
It completely closes #1206.
Now you can choose board options in the upload dialog and upload even on ESP8266 boards! 🙌