You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Processed resource files are in build/resources, but VSCode debugger uses the resources in bin directory, this causes the mods.toml cannot be parsed and fail to launch:
Exception in thread "main" com.electronwill.nightconfig.core.io.ParsingException: Invalid bare key: ${mod_id}
The text was updated successfully, but these errors were encountered:
Facing the same issue, but I hack in using gradle eclipse model, although solution above seems a bit cleaner as it points to normal gradle processResources
eclipse {
autoBuildTasks processResourcesEclipse
}
task processResourcesEclipse(type: Copy) {
var buildPath = resolveEclipseBuildPath()
from "$rootDir/src/main/resources/"
into "$buildPath/main/"
filesMatching ('**/mods.toml') {
expand project.properties
}
}
defresolveEclipseBuildPath() {
var buildPath = eclipse.classpath.getDefaultOutputDir().toPath()
if (buildPath.toString().endsWith("default")) {
buildPath = buildPath.getParent()
}
return buildPath
}
Technici4n
pushed a commit
to Technici4n/NeoGradle
that referenced
this issue
Oct 23, 2023
Processed resource files are in
build/resources
, but VSCode debugger uses the resources inbin
directory, this causes themods.toml
cannot be parsed and fail to launch:The text was updated successfully, but these errors were encountered: