I’m working down the fortran track to revive the memeory of this language that used during my PhD, I of course make mistakes along the way but in the current state it’s extremelly difficult to read the compilation errors.
In an exercise I get:
/tmp/nthprime/nth_prime.f:::\\n\\n  if all([i % primes(p) .neq. , p=,count]) then\\n  \\nError: Missing ( in IFexpression at ()\\n/tmp/nthprime/nth_prime.f:::\\n\\n  end if\\n  \\nError: Expecting END DO statement at ()\\nmake[]: *** [CMakeFiles/nthprime.dir/build.make:: CMakeFiles/nthprime.dir/nth_prime.f.o] Error \\nmake[]: *** [CMakeFiles/Makefile:: CMakeFiles/nthprime.dir/all] Error \\nmake: *** [Makefile:: all] Error \\n
which should be displayed:
/tmp/nthprime/nth_prime.f:::
 if all([i % primes(p) .neq. , p=,count]) then

Error: Missing ( in IFexpression at ()
/tmp/nthprime/nth_prime.f:::
 end if

Error: Expecting END DO statement at ()
make[]: *** [CMakeFiles/nthprime.dir/build.make:: CMakeFiles/nthprime.dir/nth_prime.f.o] Error
make[]: *** [CMakeFiles/Makefile:: CMakeFiles/nthprime.dir/all] Error
make: *** [Makefile:: all] Error
it seems that everything comes down to parsing \\n
as a line break. Would it be possible to change it ?