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

Closes a network connection when there is a syntax error in ruby file #26

Closed
sswaroopgupta opened this issue Jul 11, 2016 · 1 comment
Closed
Labels

Comments

@sswaroopgupta
Copy link
Contributor

Expected behavior
Should give me a warning

Actual behavior

-e: /Users/sswaroop/rubytest/step_implementations/step_implementation.rb:7: syntax error, unexpected '|', expecting keyword_end (SyntaxError)
    |@@vowels|
     ^
/Users/sswaroop/rubytest/step_implementations/step_implementation.rb:41: syntax error, unexpected end-of-input, expecting keyword_end
[ValidationError] /Users/sswaroop/rubytest/specs/example.spec:12: Connection closed [[::1]:50844] cause: EOF => 'Vowels in English language are "aeiou".'
[ValidationError] /Users/sswaroop/rubytest/specs/example.spec:19: write tcp [::1]:50840->[::1]:50844: use of closed network connection => 'The word "gauge" has "3" vowels.'
[ValidationError] /Users/sswaroop/rubytest/specs/example.spec:29: write tcp [::1]:50840->[::1]:50844: use of closed network connection => 'Almost all words have vowels <table>'
Failed to start Gauge Ruby runner. exit status 1
  Failed to initialize suite datastore. Error: write tcp [::1]:50840->[::1]:50844: use of closed network connection

Steps to replicate

  1. Create a ruby project
  2. Give the following implementation
@@vowels;

step 'Vowels in English language are <vowels>.' do |vowels|
  @@vowels = Set.new [];
  vowels.scan(/./).each do |vowel|
    @@vowels.add(vowel)
    |@@vowels|
  end
end
  1. run the specs and you will see the error

Version

Gauge version: 0.5.1.nightly-2016-07-10

Plugins
-------
html-report (2.1.1.nightly-2016-07-08)
java (0.4.2.nightly-2016-07-07)
ruby (0.2.1)
@kashishm
Copy link
Contributor

Fix will be available in nightly >= 13/07/2016

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

No branches or pull requests

2 participants