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

The Fibonacci example exits unexpectedly on windows. #2862

Closed
MadVikingGod opened this issue Apr 26, 2022 · 0 comments · Fixed by #2860
Closed

The Fibonacci example exits unexpectedly on windows. #2862

MadVikingGod opened this issue Apr 26, 2022 · 0 comments · Fixed by #2860
Labels
bug Something isn't working

Comments

@MadVikingGod
Copy link
Contributor

MadVikingGod commented Apr 26, 2022

Description

When running the Fibonacci example under windows after providing the first number the program exits with an error unexpected newline

PS C:\Users\Aaron\projects\opentelemetry-go\example\fib> go run .
What Fibonacci number would you like to know:
8
Fibonacci(8) = 21
What Fibonacci number would you like to know:
unexpected newline
exit status 1

Environment

  • OS: windows Powershell (does not effect WSL, git bash, linux powershell)
  • Architecture: x86-64
  • Go Version:
    • go version go1.16 windows/amd64
    • go version go1.18.1 windows/amd64
  • opentelemetry-go version: main, 68d538a

Steps To Reproduce

  1. Use the configuration running in powershell
  2. Run:
PS C:\Users\Aaron\projects\opentelemetry-go> cd .\example\fib
PS C:\Users\Aaron\projects\opentelemetry-go\example\fib> go run .
What Fibonacci number would you like to know:
8
Fibonacci(8) = 21
What Fibonacci number would you like to know:
unexpected newline
exit status 1

cd fib
4. See error: unexpected newline

Expected behavior

This should operate the same as linux, wsl, or git bash. Where it will prompt you for another number until you use ctrl+c.

@MadVikingGod MadVikingGod added the bug Something isn't working label Apr 26, 2022
@MrAlias MrAlias linked a pull request Apr 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant