Skip to content
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 issue with incorrect path for text editor #501

Merged
merged 1 commit into from
Apr 22, 2017

Conversation

ivankravets
Copy link
Contributor

@ivankravets ivankravets commented Feb 21, 2017

Atom >= 1.13 doesn't return a real path for textEditor.getPath(). In this case, affected projects will not be available for "build".

For example, project is located in /private/tmp/myproject

  • fs.realpathSync('/private/tmp/myproject') === '/private/tmp/myproject'
  • textEditor.getPath() === '/tmp/myproject'
  • fs.realpathSync(textEditor.getPath()) === '/private/tmp/myproject'

Atom >= 1.13 doesn't return real path for textEditor.getPath(). In this case, affected projects will not be available for "build".

For example, project is located in `/private/tmp/myproject`
* `fs.realpathSync('/private/tmp/myproject') === '/private/tmp/myproject'`
* `textEditor.getPath() === '/tmp/myproject'`
* `fs.realpathSync(textEditor.getPath() ) === '/private/tmp/myproject'`
@oli-obk
Copy link
Contributor

oli-obk commented Feb 22, 2017

Hmm. This fails some oft our Tests... Maybe they need that change, too?

@ivankravets
Copy link
Contributor Author

@oli-obk that is not a problem of this PR. See previous commits that also are failed.

@oli-obk
Copy link
Contributor

oli-obk commented Feb 22, 2017

Oh, I'll check it out

@noseglid
Copy link
Owner

noseglid commented Apr 22, 2017

I am sorry for being terribly slow on this.

The PR looks good. Would you mind rebasing on latest master where I've fixed the specs Turns out it's enough that I restart the CI builds.

@noseglid noseglid merged commit 36c0f4c into noseglid:master Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants