BotFramework-Composer: Cannot start Composer 1.2.1 desktop version
Describe the bug
Cannot start Composer
Version
BotFramework-Composer-1.2.1-windows-setup.exe
Browser
- Electron distribution
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
Start Composer and see the frozen Welcome screen
Expected behavior
Composer started after the Welcome screen, the Welcome screen disappears
Screenshots
Additional context
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (15 by maintainers)
Turns out that it was a malformed
extensions.json
file in the%APPDATA%/Roaming/BotFrameworkComposer/
app data folder.Adding valid JSON to this file –
{}
– fixed the issue and @gbelenky is now able to start Composer.We should consider writing some documentation on how to completely wipe the Composer installation to troubleshoot these issues.
After hopping on a call and debugging with @gbelenky , we figured out that there is an exception being thrown when Composer tries to read the JSON store (
data.json
).Here is the exception:
We checked the
data.json
file and it looks to be valid JSON. My hunch is that at some point, when we are writing the JSON to disk, it is prepending a byte order mark (BOM) to the front of the JSON file, which is causingJSON.parse()
to throw. We faced a similar problem in the Emulator at one point.