-
Notifications
You must be signed in to change notification settings - Fork 132
can't create sketchs with current esp8266 git version #1073
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
Comments
Hi Liebman, Note that if this disk search is the root cause it will happen as soon as the issue on disk exists. I mean it should happen with all boards.txt files and it should happen all the time untill the issue is fixed on disk. |
Interesting.... stack overflow exception......
|
The log is weird and as expected at the same time.
Given the following log entry I think we can exclude serial as the root cause:
I finally end up in MakeEnvironmentString |
I added a try catch around the code I think that fails. |
I installed the "plugin" version via marketplace - I'll try to update to nightly tomorrow. |
Nightly update site is still from the 11th... in any case this is the commit that breaks things: |
The build server is running now. Hopefully it won't take 4 days now :-s |
Nightly is now available. Sorry for the delay |
I don't that changed it
|
I didn't expect that to happen. |
I think I got it. |
Project creation and compilation works here but the upload fails with a bizar error
I'm checking in the change and run the nightly build |
Yea - I get the error on a mac as well. However if I run the exact command in a shell manually it works. Must be something that sloeber is passing in the env or maybe passing an empty param? |
It doesn't run on the command prompt at my system I guess because I didn't initialize the submodules as in the doc you linked. |
Did the latest version work for the sketch creation? |
Sketch creation works nicely. Upload fails.
Running the command manually works fine:
It's like an empty command line token/argument is being introduced somewhere before 'version'. |
Ha! I think I found it. Upload verbose is empty and I'm guessing your then passing an empty argument that breaks "usage". tools.esptool.upload.pattern="{cmd}" "{runtime.platform.path}/tools/upload.py" --chip esp8266 --port "{serial.port}" --baud "{upload.speed}" "{upload.verbose}" {upload.erase_cmd} --end --chip esp8266 --port "{serial.port}" --baud "{upload.speed}" "{upload.verbose}" write_flash 0x0 "{build.path}/{build.project_name}.bin" --end |
Does not like -v. --trace would work but thats super super verbose...
|
Ok '--chip=esp8266' works as it just duplicates an option. |
It is a problem of having it blank resulting in 2 spaces resulting in some problem when starting the upload command. Anything that doesn't break the command should do. |
Ran into the same problem after #1090 and using nightly. Circumvented by patching upload.py removing all empty commands before call esptool. (see elif removing empty strings) upload.py from sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.5.2/tools import sys
import os
sys.argv.pop(0) # Remove executable name
toolspath = os.path.dirname(os.path.realpath(__file__)).replace('\\', '/') # CWD in UNIX format
try:
sys.path.insert(0, toolspath + "/pyserial") # Add pyserial dir to search path
sys.path.insert(0, toolspath + "/esptool") # Add esptool dir to search path
import esptool # If this fails, we can't continue and will bomb below
except:
sys.stderr.write("Error in command line, need pyserial path as 1st arg and esptool path as 2nd.\n")
sys.exit(1)
fakeargs = [];
print("Hello")
while len(sys.argv):
if sys.argv[0] == '--end':
print("esptool with args" , fakeargs)
esptool.main(fakeargs)
sys.argv.pop(0) # Remove --end
fakeargs = []
elif sys.argv[0] == '':
sys.argv.pop(0) # Remove empty param
print("remove empty args")
else:
# We silently replace the 921kbaud setting with 460k to enable backward
# compatibility with the old esptool-ck.exe. Esptool.py doesn't seem
# work reliably at 921k, but is still significantly faster at 460kbaud.
thisarg = sys.argv.pop(0)
if thisarg == "921600":
thisarg = "460800"
fakeargs = fakeargs + [thisarg] |
The update should be at the update site now but due to all kind of eclipse versioning issues my installation got corrupted when updating. |
Using current git esp8266/Arduino Sloeber/Eclipse fails to create project! (At least on macOS) The cpu runs at 100% for a long time then ends with this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Project created quickly.
Screenshots
N/A
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: