Skip to content

Testing node gives an error when the path has whitespace in it. #11713

Closed

Description

@mr-spd
  • Version: 7.5.0
  • Platform: Darwin wlan-145-94-175-116.wlan.tudelft.nl 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
  • Subsystem: test

After making some changes and wanting to test it, like it says here in step 5, I got the following error: error: make[1]: *** No rule to make target `../%.c'.
It turns out that if the path has any whitespace in it, the test won't work on OS X Yosemite.

Activity

  1. changed the title [-]Testing node gives error when path has whitespace in it.[/-] [+]Testing node gives an error when the path has whitespace in it.[/+] on Mar 6, 2017
  2. added
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    macosIssues and PRs related to the macOS platform.
    on Mar 6, 2017
  3. liusy182 commented on Mar 8, 2017

    @liusy182

    It looks like this is because make cannot handle space in path, specifically in variable $(srcdir) in node context. There is a bug describes this behavior.

  4. addaleax commented on Apr 29, 2017

    @addaleax
    Member

    Yeah, building virtually any software project that uses Make or shell scripts somewhere will fail to build properly when paths contain spaces. It’s unfortunate, but it require a lot of work to get this right, and far too much of that would have to be done in the build systems, so mostly the issue is outside of Node’s own scope.

    So, I’m sorry I can’t be more helpful, but I don’t think there’s much to do here other than close this as “can’t fix it”. Feel free to ask if you have any follow-up questions, though. :)

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

    buildIssues and PRs related to Node.js builds or CI infrastructure.macosIssues and PRs related to the macOS platform.wontfixIssues that will not be fixed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions