Open Olejan opened 6 months ago
sdkconfig.defaults
is pure ASCII and does not contain a 0xfc
. Have you modified that file?@chrta I will answer your questions:
idf.py build
. In this case, the error described in the issue.I installed Ubuntu 22.04.4 on Windows in VirtualBox. Installed ESP-IDF v5.2.1 in it, cloned your repository, and everything compiled well.
As a result, everything compiles well on Ubuntu, but a strange error appears on Windows. It's not clear what's wrong with Windows.
@Olejan Hello. You can modify core.py file to fix the issue
`
try:
print(f"Writing {sym.name} with value {val}")
write('set({}{} "{}")\n'.format(prefix, sym.name, val))
configs_list.append(prefix + sym.name)
dep_opts = deprecated_options.get_deprecated_option(sym.name)
for opt in dep_opts:
tmp_dep_list.append('set({}{} "{}")\n'.format(prefix, opt, val))
configs_list.append(prefix + opt)
except ValueError:
print("Oops!")`
The better way is avoiding unicode characters in your config files. For more detailed output info and abort the process:
` try: write('set({}{} "{}")\n'.format(prefix, sym.name, val))
configs_list.append(prefix + sym.name)
dep_opts = deprecated_options.get_deprecated_option(sym.name)
for opt in dep_opts:
tmp_dep_list.append(f'set({prefix}{opt} "{val}")\n')
configs_list.append(prefix + opt)
except ValueError as e:
print(f"Oops! Failed on {sym.name.encode()} with value {val.encode()}. {e}")
exit(-1)
`
I download this project and try to build it. But when I do command:
idf.py menuconfig
I get error:ESP-IDF 5.2.1 Windows 10 64 bit
What am I doing wrong?