-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fix config path with Atom 1.25 #403
Fix config path with Atom 1.25 #403
Conversation
should probably use |
6e8f654
to
0920cb0
Compare
0920cb0
to
9dc0b2c
Compare
@UziTech Thank you. fixed. |
spec/sync-settings-spec.coffee
Outdated
run (cb) -> | ||
SyncSettings.backup cb | ||
, -> | ||
run (cb) => | ||
SyncSettings.createClient().gists.get({id: @gistId}, cb) | ||
, (err, res) -> | ||
expect(res.files['init.coffee']).toBeDefined() | ||
expect(res.files[path.basename(initPath)]).toBeDefined() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the changes for the init
file in a separate PR since they are unrelated to the config path problem addressed in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, fixed.
But in my environment, both init.coffee and init.js exists.
it "back up the user init.coffee file", ->
atom.config.set('sync-settings.syncInit', true)
run (cb) ->
SyncSettings.backup cb
this test backups init.js instead of init.coffee, so my test fails locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch for the init files is still valid. Please create a separate PR for it though. Then they can get merged in whatever order is necessary to keep CI passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, i will create.
9dc0b2c
to
d805893
Compare
opened #405 |
when Atom beta 1.25.0beta0,
atom.config.configDirPath
seems undefined.resolve #401