You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
It looks like color type values aren't being synced properly to the main process after #16628 was merged.
Steps to Reproduce
Open two windows of Atom v1.25.0-beta0+
Have a package that has a type: color setting (eg. atom-material-ui)
Open Developer Tools on the main window
Open theme settings in the second window, and open the atom-material-ui config
Change one of the colors in the second window
Watch the first window fail to validate the color
Expected behavior:
The color setting properly transfers to the main window.
Actual behavior:
The following Error is thrown:
Error: Validation failed at atom-material-ui.colors.abaseColor, {"_alpha":1,"_blue":131,"_green":20,"_red":117} cannot be coerced into a color
at Function.coerce (C:\temp\atom\src\config.js:1379)
at Function.executeSchemaEnforcers (C:\temp\atom\src\config.js:389)
at Function.coerce (C:\temp\atom\src\config.js:1339)
at Function.executeSchemaEnforcers (C:\temp\atom\src\config.js:389)
at Function.coerce (C:\temp\atom\src\config.js:1339)
at Function.executeSchemaEnforcers (C:\temp\atom\src\config.js:389)
at Config.makeValueConformToSchema (C:\temp\atom\src\config.js:1136)
at Config.set (C:\temp\atom\src\config.js:702)
at transact (C:\temp\atom\src\config.js:953)
at Config.transact (C:\temp\atom\src\config.js:815)
at Config.resetUserSettings (C:\temp\atom\src\config.js:950)
at disposables.add.applicationDelegate.onDidChangeUserSettings.settings (C:\temp\atom\src\atom-environment.js:786)
at EventEmitter.outerCallback (C:\temp\atom\src\application-delegate.js:194)
at emitThree (events.js:121)
at EventEmitter.emit (events.js:197)
From what I can tell so far the bug is that the Color Object from the second window is being emited to the main window... but the problem is that it only has _name properties defined directly on it, the main name properties are all getters. This means that when it gets to the main window all that is left is an Object like {"_alpha":1,"_blue":192,"_green":107,"_red":92} instead of a real Color object. Since that Object isn't a Color object, it fails the schema enforcer for a color setting.
Reproduces how often:
100% of the time.
Versions
This started happening in this version, based on e74ea47:
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
lockbot
locked as resolved and limited conversation to collaborators
Aug 20, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Prerequisites
Description
It looks like
color
type values aren't being synced properly to the main process after #16628 was merged.Steps to Reproduce
type: color
setting (eg.atom-material-ui
)atom-material-ui
configExpected behavior:
The
color
setting properly transfers to the main window.Actual behavior:
The following
Error
is thrown:From what I can tell so far the bug is that the
Color
Object from the second window is beingemit
ed to the main window... but the problem is that it only has_name
properties defined directly on it, the mainname
properties are allget
ters. This means that when it gets to the main window all that is left is an Object like{"_alpha":1,"_blue":192,"_green":107,"_red":92}
instead of a realColor
object. Since that Object isn't aColor
object, it fails the schema enforcer for acolor
setting.Reproduces how often:
100% of the time.
Versions
This started happening in this version, based on e74ea47:
A build based on a48624d (right before #16628 was merged) doesn't show this issue:
OS: Windows 10 x64
Additional Information
This was originally filed at atom-material/atom-material-ui#462, but further investigation showed this to be a bug here.
The text was updated successfully, but these errors were encountered: