question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pact-node's ruby bindings don't work if the project name has spaces

See original GitHub issue

Software versions

  • OS: macOS 10.13.3, Centos 7 (probably)
  • Consumer Pact library: 5.9.1
  • Node Version: 8

Expected behaviour

It shouldn’t matter whether the directory name has or hasn’t spaces on its name.

Actual behaviour

When creating the mock server, it somehow split the project path where spaces exist: /var/lib/jenkins/workspace/My Cool App/, and attempts to run Cool as a command. It then, of course, fails saying

/node_modules/@pact-foundation/pact-node/standalone/darwin-1.43.1/lib/ruby/bin/ruby: line 14: Cool: command not found

Steps to reproduce

  1. Change the name of your app to something with spaces (if possible with 3 words), like: my-cool-app to My Cool App.
  2. Run the PactJS tests.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bethesquecommented, Jun 5, 2018

I swear we’d fixed all the space issues! They’re like whack-a-mole. I’ll have a look. I think I’m going to add contraindications for using Pact in the FAQ - 1. you’re on windows or 2. your project name has spaces 😛

0reactions
mefellowscommented, Aug 12, 2022

Closing as latest version removes Ruby core.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pact-node's ruby bindings don't work if the project name has ...
It shouldn't matter whether the directory name has or hasn't spaces on its name. Actual behaviour. When creating the mock server, it somehow ......
Read more >
Why does white-space affect ruby function calls?
I get a syntax error with this code
Read more >
VS/Nuget inconsistently add/don't add a space before closing ...
I have hundreds of projects to upgrade, and I cannot have web.config changesets where every line is modified for spacing changes. Literally about...
Read more >
pact-js
Hi, I?m trying to integrate Pact JS into a React project. It worked well until I tried to build the application with Jenkins....
Read more >
Bindings and Lexical Scope in Ruby - AppSignal Blog
In this episode, we'll look at how that environment works for closures, classes and class instances by examining how Ruby handles lexical scope ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found