Skip to content

Fixes issue #XX - Fix CRLF line endings in shell scripts on Windows/WSL#95

Open
RukadeAkshay01 wants to merge 1 commit intoFOSSEE:masterfrom
RukadeAkshay01:fix-crlf-line-endings
Open

Fixes issue #XX - Fix CRLF line endings in shell scripts on Windows/WSL#95
RukadeAkshay01 wants to merge 1 commit intoFOSSEE:masterfrom
RukadeAkshay01:fix-crlf-line-endings

Conversation

@RukadeAkshay01
Copy link

Summary

Fixed CRLF line ending issue in model_generation.py that caused VHDL simulations to fail on Windows/WSL.

Changes

  • Added newline='\n' parameter to open() calls when creating start_server.sh and sock_pkg_create.sh
  • This forces Unix line endings (LF) on all platforms

Testing

Tested on Windows 11 with WSL Ubuntu 24.04. VHDL simulations (full_adder) now work correctly.

Related Issue

Fixes #XX

Author: Akshay Rukade akshayrukade01@gmail.com

Shell scripts (start_server.sh and sock_pkg_create.sh) generated by
model_generation.py had Windows line endings (CRLF) when run on Windows
or WSL. This broke bash parameter parsing, causing the port and IP
parameters to not be passed correctly to sock_pkg_create.sh, resulting
in VHDL simulations failing with 'sock_pkg has not been analyzed' errors.

Fixed by adding newline='\n' parameter to open() calls when creating
shell scripts, forcing Unix line endings (LF) on all platforms.

Author: Akshay Rukade <akshayrukade01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant