Remapping failes because of missing localisation.

Open
#31 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Start by reproducing the remapping run on Windows with the German locale, then trace the reported path through RemapperTask.extractRange, RangeExtractor.generateRangeMap, and Util.createUnit. The fix is complete when a 1.12-to-1.13 mapping updates files without the MissingResourceException or repeated missing-message warnings.

Written by the indexing model from the issue text.

Description

I am running a win 10 (1903) and the system lang is german. I tried to update the mapping of a 1.12 project (to 1.13 mappings). But it did not change any file so I checked the logs (by running it froim cmd)

Version: 0.1 (fatjar)

Error:

Missing resource : org/eclipse/jdt/internal/compiler/batch/messages.properties for locale de_DE
java.util.MissingResourceException: Can't find bundle for base name org.eclipse.jdt.internal.compiler.batch.messages, locale de_DE
        at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
        at java.util.ResourceBundle.getBundleImpl(Unknown Source)
        at java.util.ResourceBundle.getBundle(Unknown Source)
        at org.eclipse.jdt.internal.compiler.batch.Main$ResourceBundleFactory.getBundle(Main.java:1294)
        at org.eclipse.jdt.internal.compiler.batch.Main.relocalize(Main.java:4556)
        at org.eclipse.jdt.internal.compiler.batch.Main.relocalize(Main.java:4550)
        at org.eclipse.jdt.internal.compiler.batch.Main.<init>(Main.java:1499)
        at org.eclipse.jdt.core.dom.ASTParser.getClasspath(ASTParser.java:238)
        at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1193)
        at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:812)
        at net.minecraftforge.srg2source.util.Util.createUnit(Util.java:361)
        at net.minecraftforge.srg2source.ast.RangeExtractor.generateRangeMap(RangeExtractor.java:165)
        at net.minecraftforge.remapper.RemapperTask.extractRange(RemapperTask.java:128)
        at net.minecraftforge.remapper.RemapperTask.runRemapMod_Thread(RemapperTask.java:46)
        at net.minecraftforge.remapper.RemapperTask$1.run(RemapperTask.java:39)
        at java.lang.Thread.run(Unknown Source)

Also log is full of these:

Warning: NLS missing message: WM_errors in: org.eclipse.core.internal.utils.messages
Warning: NLS missing message: WM_jobName in: org.eclipse.core.internal.utils.messages
Warning: NLS missing message: WM_nativeErr in: org.eclipse.core.internal.utils.messages
Dominant language
Java
Stars
60
Forks
34
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MinecraftForge/Srg2Source

All issues in MinecraftForge/Srg2Source

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.