-
Notifications
You must be signed in to change notification settings - Fork 182
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
"Unable to parse version string" is not a specific enough error for win32 targets #35
Comments
So is the cause that it's a string and not a semver? I'm getting the same error trying to set the build-version to a short hash of the current commit of my repo but this error only happens when building installers for Windows. |
That's right. More specifically, the string provided doesn't parse to a semver, which is exactly what the message says. That's all well and good, but again, the message didn't give me any more information to go on. I spent several hours trying to figure out what was wrong simply because the error message didn't tell me which property or value was invalid. |
We have the same problem as @kevingelion , and I don't understand the difference between the platforms. In my opinion, a build version should not be constrained as the other version... |
This is a limitation in Windows executables, there's not much rcedit can do about it. |
I had some problems using electron-packager reporting it was "unable to parse version string", and it took me a while to find the cause. I believe that "Unable to parse version string" is too vague of an error message.
This error message should be improved to tell me which property it was trying to parse and the value it received and tried to parse, such as:
Unable to parse version string for 'build-version': 'private'
or
The value provided for 'build-version' is not a valid version: 'private'
For reference, the values I use are:
See also electron/packager#552
The text was updated successfully, but these errors were encountered: