fmidue / haskell-template-task

Other
0 stars 0 forks source link

Don't use `currentWorkingDirectory`? #4

Closed marcellussiegburg closed 1 year ago

marcellussiegburg commented 2 years ago

This error occurs, if two submissions are sent at the same time: image It seems to to originate in withCurrentDirectory, which states that the operation might fail with the same exceptions as getCurrentDirectory and setCurrentDirectory, the latter is probably the source of the problem as it states:

In a multithreaded program, the current working directory is a global state shared among all threads of the process.

Maybe searchPath can be used to run the hint interpreter without the need of changing directories. (We would still need to ensure that the currentWorkingDirectory is in fact a directory not containing any Haskell files.)

marcellussiegburg commented 1 year ago

resolved by 3712f16a77e10fe35548917b8b4499185d66ad47