Skip to content

nodegit installation falls back when Python install dir contains spaces #261

Closed

Description

Hi folks,

I found a weird behaviour in the install.js script in 0.1.4. When the Python install folder location path contains spaces, then the following parsing logic fails:
python = results[0].value || results[1].value;

So the python string will be something like "C:\Program ". Then the subsequent functions fail of course.

Another and more serious problem is that the error message is swallowed in:

.fail(function(message) {
  console.info('[nodegit] Failed to build nodegit.');
  console.info('[nodegit] Attempting to fallback on a prebuilt binary.');
  ...
})

I can see that there were some major changes on master branch, I am just reporting this to watch out for this edge case also.

Activity

  1. johnhaley81 commented on Oct 31, 2014

    @johnhaley81
    Collaborator

    Thanks for the bug report! I'm not able to repo that issue on Windows. Did you get a chance to try it on master instead of 0.1.4?

  2. johnhaley81 commented on Oct 31, 2014

    @johnhaley81
    Collaborator

    This is great work. If you open a pull request we'll merge after the tests pass.

    Can you not include the console change though?

  3. johnhaley81 commented on Nov 20, 2014

    @johnhaley81
    Collaborator

    PR #280 should fix this issue. If you have any other problems with this feel free to re-open this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions