cph icon indicating copy to clipboard operation
cph copied to clipboard

Testcases do not run when program is compiled with warnings.

Open Shikhar-S opened this issue 3 years ago • 2 comments

Testcases do not run if compilation throws a warning. A workaround is to change settings to ignore all warnings with -w flag but it would be nice to run test cases if the program compiles (even with warnings). Here the test cases do not run because -w argument is not passed to the command line.

image

Extension Version: v5.8.5

VS Code Version: 1.59.0

Browser Version: 90.0.2 Firefox

Operating System: Windows 10 64 bit, 21H1

Shikhar-S avatar Aug 10 '21 18:08 Shikhar-S

You realize that you have the option to pass any args you want to the compiler via CPH? It is a setting. I usually set up language based workspaces in code with .code-workspace files. You can add your args to that file in the "settings" JSON array. Just type "cph", put your cursor immediately after the h, and hit [ Ctrl ] + [ Tab ] That should give you a list of all options.

lifeModder19135 avatar Oct 30 '21 10:10 lifeModder19135

You realize that you have the option to pass any args you want to the compiler via CPH? It is a setting. I usually set up language based workspaces in code with .code-workspace files. You can add your args to that file in the "settings" JSON array. Just type "cph", put your cursor immediately after the h, and hit [ Ctrl ] + [ Tab ] That should give you a list of all options.

I would like to see the warnings. It helps me learn. Passing -w as argument through vscode settings would ignore the warning. I want to run all the test cases even if the compiler throws some warnings.

Shikhar-S avatar Nov 02 '21 14:11 Shikhar-S