Help with seemingly impossible syntax error

Execution failed for task ':processResources'.
> Could not copy file 'C:\Users\jedil\Downloads\forge-1.20.1-47.3.0-mdk\src\main\resources\META-INF\mods.toml' to 'C:\Users\jedil\Downloads\forge-1.20.1-47.3.0-mdk\build\resources\main\META-INF\mods.toml'.
   > Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
     SimpleTemplateScript2.groovy: 1: Unexpected input: '(' @ line 1, column 10.
        out.print("""
                 ^

Now, this looks normal, but this text does not appear in my viewport, so, what’s up?

Maybe use --scan or --stacktrace to gather more insight as advised by the error?

I tried that, but I couldn’t find anything.
I’ll try again and send you the code.

2024-06-15T13:46:53.286-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-06-15T13:46:53.287-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2024-06-15T13:46:53.288-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-06-15T13:46:53.288-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2024-06-15T13:46:53.289-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ‘:processResources’.
2024-06-15T13:46:53.289-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not copy file ‘C:\Users\jedil\Downloads\forge-1.20.1-47.3.0-mdk\src\main\resources\META-INF\mods.toml’ to ‘C:\Users\jedil\Downloads\forge-1.20.1-47.3.0-mdk\build\resources\main\META-INF\mods.toml’.
2024-06-15T13:46:53.290-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
2024-06-15T13:46:53.290-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] SimpleTemplateScript1.groovy: 1: Unexpected input: ‘(’ @ line 1, column 10.
2024-06-15T13:46:53.290-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] out.print(“”"modLoader="${javafml}" #mandatory
2024-06-15T13:46:53.291-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ^
2024-06-15T13:46:53.291-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-06-15T13:46:53.292-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 1 error
2024-06-15T13:46:53.292-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-06-15T13:46:53.292-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-06-15T13:46:53.293-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2024-06-15T13:46:53.293-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --stacktrace option to get the stack trace.
2024-06-15T13:46:53.293-0400 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Get more help at https://help.gradle.org.
2024-06-15T13:46:53.294-0400 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
2024-06-15T13:46:53.294-0400 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 52s

You used neither of the options I mentioned, so what’s your point?

I used the scan option you gave me.

But you did not share the resulting build --scan URL where the actual information is found.

Ooooh, I see now.
Hold on.

uh, i restarted my pc and it worked…

problem solved?

No idea. As you did not provide the requested information, I have not the faintest idea what the problem might have been.