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

Non-source files are passed to compilers #1015

Open
johnbrvc opened this issue Nov 11, 2024 · 0 comments
Open

Non-source files are passed to compilers #1015

johnbrvc opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working high priority Bugs that are high priority (to fix) NEXT Contest Consider fixing for next contet Primary CCS Required for PC2 to act as primary CCS

Comments

@johnbrvc
Copy link
Collaborator

Describe the issue:
If a contestant makes a submission with a main file and extra files, a Compile Error (CE) may incorrectly result. This was observed during the Greater NY Regional 2024

To Reproduce:
Make a submission with a main file of prog.py and add additional .txt files as well.
A CE will result, even if prog.py is a valid Python program

Expected behavior:
PC2 should not issue a compile error if the main file compiles correctly and non-source files are passed in the submission.

Actual behavior:
PC2 passes ALL files it receives to the compiler, including non-sources files. According to the ICPC Programming Environment notes (circa 2024), it says:

Files with the following suffixes (and only files with these suffixes) will be submitted to the compiler:

For C submissions: files ending with .c
For C++ submissions: files ending with .cc, .cpp, .cxx, or .c++
For Java submissions: files ending with .java
For Python submissions: files ending with .py
For Kotlin submissions: files ending with .kt

Environment:
All.

Log Info:

241110 191740.975|DEBUG|Thread-5|log|after  substitution: /usr/bin/pypy3 -m py_compile m.py mhelp.txt mLeftShift.txt mRightShift.txt
241110 191740.975|INFO|Thread-5|log|entering runProgram() to execute command '/usr/bin/pypy3 -m py_compile m.py mhelp.txt mLeftShift.txt mRightShift.txt'

Screenshots:

Additional context:

@johnbrvc johnbrvc added bug Something isn't working high priority Bugs that are high priority (to fix) NEXT Contest Consider fixing for next contet Primary CCS Required for PC2 to act as primary CCS labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority Bugs that are high priority (to fix) NEXT Contest Consider fixing for next contet Primary CCS Required for PC2 to act as primary CCS
Projects
None yet
Development

No branches or pull requests

1 participant