Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to diff, I get a very long error #1

Open
u9g opened this issue Jul 15, 2021 · 0 comments
Open

When trying to diff, I get a very long error #1

u9g opened this issue Jul 15, 2021 · 0 comments

Comments

@u9g
Copy link

u9g commented Jul 15, 2021

PS C:\Users\---\Documents\git-projs\minecraft-data-extractor\java> python3 run.py --version 1.17,1.17.1 --diff --decompile --extract
Args Namespace(version='1.17,1.17.1', decompile=True, extract='', diffs=True, clean=False, server=False, ignoreMappings=False)
Decompile  ['1.17', '1.17.1'] 1.17,1.17.1 client
Manifest already existing, not downloading again, if you want to please accept safe removal at beginning
Loaded manifest
 Decompiling ['1.17', '1.17.1']

-------
 Decompiling 1.17 this will take a while
1.17: Using Mojang mappings
 >  python3 main.py -mcv 1.17 -d fernflower --quiet
mappings\1.17\client.tsrg mappings/1.17/client.tsrg True
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\DecompilerMC\main.py", line 668, in <module>
    main()
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\DecompilerMC\main.py", line 595, in main
    remap(version, side, args.quiet, args.mappings)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\DecompilerMC\main.py", line 260, in remap
    subprocess.run(args, check=True, capture_output=quiet)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['java', '-jar', 'C:\\Users\\---\\Documents\\git-projs\\minecraft-data-extractor\\java\\DecompilerMC\\lib\\SpecialSource-1.8.6.jar', '--in-jar', 'C:\\Users\\---\\Documents\\git-projs\\minecraft-data-extractor\\java\\DecompilerMC\\versions\\1.17\\client.jar', '--out-jar', './src/1.17-client-temp.jar', '--srg-in', 'C:\\Users\\---\\Documents\\git-projs\\minecraft-data-extractor\\java\\DecompilerMC\\mappings\\1.17\\client.tsrg', '--kill-lvt']' returned non-zero exit status 1.
> move src/1.17/ src/1.17_mojang/
The system cannot find the file specified.
 1.17 was successfully decompiled to ./DecompilerMC/src/1.17_mojang/

-------
 Decompiling 1.17.1 this will take a while
1.17.1: Using Mojang mappings
 >  python3 main.py -mcv 1.17.1 -d fernflower --quiet
mappings\1.17.1\client.tsrg mappings/1.17.1/client.tsrg True
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\DecompilerMC\main.py", line 668, in <module>
    main()
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\DecompilerMC\main.py", line 595, in main
    remap(version, side, args.quiet, args.mappings)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\DecompilerMC\main.py", line 260, in remap
    subprocess.run(args, check=True, capture_output=quiet)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['java', '-jar', 'C:\\Users\\---\\Documents\\git-projs\\minecraft-data-extractor\\java\\DecompilerMC\\lib\\SpecialSource-1.8.6.jar', '--in-jar', 'C:\\Users\\---\\Documents\\git-projs\\minecraft-data-extractor\\java\\DecompilerMC\\versions\\1.17.1\\client.jar', '--out-jar', './src/1.17.1-client-temp.jar', '--srg-in', 'C:\\Users\\---\\Documents\\git-projs\\minecraft-data-extractor\\java\\DecompilerMC\\mappings\\1.17.1\\client.tsrg', '--kill-lvt']' returned non-zero exit status 1.
> move src/1.17.1/ src/1.17.1_mojang/
The system cannot find the file specified.
 1.17.1 was successfully decompiled to ./DecompilerMC/src/1.17.1_mojang/
Manifest already existing, not downloading again, if you want to please accept safe removal at beginning
Loaded manifest
Extracting ['1.17', '1.17.1'] ['1.17', '1.17.1']
 Extracting 1.17
 > python3 munch.py --download 1.17 -v --output output.json --toppings biomes,blocks,blockstates,entities,entitymetadata,identify,items,language,objects,packetinstructions,packets,particletypes,recipes,sounds,stats,tags,tileentities,version
Loading version manifest for 1.17 from https://launchermeta.mojang.com/v1/packages/c64ee5e617d7af2543acdec234cbedab3b273b7b/1.17.json
For version 1.17.jar, the downloads section of the meta is {'client': {'sha1': '1cf89c77ed5e72401b869f66410934804f3d6f52', 'size': 19536133, 'url': 'https://launcher.mojang.com/v1/objects/1cf89c77ed5e72401b869f66410934804f3d6f52/client.jar'}, 'client_mappings': {'sha1': '227d16f520848747a59bef6f490ae19dc290a804', 'size': 6431705, 'url': 'https://launcher.mojang.com/v1/objects/227d16f520848747a59bef6f490ae19dc290a804/client.txt'}, 'server': {'sha1': '0a269b5f2c5b93b1712d0f5dc43b6182b9ab254e', 'size': 43621201, 'url': 'https://launcher.mojang.com/v1/objects/0a269b5f2c5b93b1712d0f5dc43b6182b9ab254e/server.jar'}, 'server_mappings': {'sha1': '84d80036e14bc5c7894a4fad9dd9f367d3000334', 'size': 4948536, 'url': 'https://launcher.mojang.com/v1/objects/84d80036e14bc5c7894a4fad9dd9f367d3000334/server.txt'}}
Downloading 1.17 from https://launcher.mojang.com/v1/objects/1cf89c77ed5e72401b869f66410934804f3d6f52/client.jar
identify classes: {'nethandler.client': 'eji', 'particle': 'ht', 'enumfacing.plane': 'gl$c', 'particletypes': 'hv', 'recipe.superclass': 'jy', 'biome.register': 'li', 'nbtcompound': 'na', 'packet.connectionstate': 'of', 'packet.packetbuffer': 'og', 'chatcomponent': 'os', 'metadata': 'wi', 'identifier': 'ww', 'anvilchunkloader': 'abe', 'nethandler.server': 'ack', 'sounds.event': 'afe', 'entity.list': 'atj', 'itemstack': 'bqp', 'item.register': 'bqr', 'block.register': 'bzp', 'tileentity.superclass': 'cip', 'blockstatecontainer': 'ckt$a', 'blockstate': 'cks', 'sounds.list': 'afe', 'block.list': 'bzp', 'item.list': 'bqr', 'biome.list': 'li'}
Can't find file lang/stats_US.lang in jar
Can't find file lang/en_US.lang in jar
Can't find file assets/minecraft/lang/en_US.lang in jar
Can't find file assets/minecraft/lang/en_us.lang in jar
Failed to run <class 'burger.toppings.packets.PacketsTopping'>
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\munch.py", line 259, in <module>
    topping.act(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\packets.py", line 76, in act
    PacketsTopping.parse_115_format(classloader, connectionstate, directions, states, packet, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\packets.py", line 468, in parse_115_format
    walk_method(cf, clinit, StateHandlerCallback(), verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\util.py", line 295, in walk_method
    stack.append(callback.on_invokedynamic(ins, ins.operands[0], args))
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\packets.py", line 461, in on_invokedynamic
    return class_from_invokedynamic(ins, cf)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\util.py", line 24, in class_from_invokedynamic
    assert methodhandle.reference_kind == 8 # REF_newInvokeSpecial
AssertionError
Using id '1.17' over name '1.17' for id as it is shorter
Failed to run <class 'burger.toppings.biomes.BiomeTopping'>
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\munch.py", line 259, in <module>
    topping.act(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\biomes.py", line 53, in act
    BiomeTopping._process_114(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\biomes.py", line 500, in _process_114
    assert len(stack) == 3
AssertionError
Using 1.13 entity format
Failed to run <class 'burger.toppings.entities.EntityTopping'>
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\munch.py", line 259, in <module>
    topping.act(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\entities.py", line 57, in act
    handlers[entity_format](aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\entities.py", line 88, in _entities_1point13
    outer = cf.constants.get(entry.outer_class_info_index)
  File "C:\Users\---\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jawa\constants.py", line 359, in get
    constant = _constant_types[constant[0]](self, index, *constant[1:])
TypeError: 'NoneType' object is not subscriptable
Dependencies failed for <class 'burger.toppings.objects.ObjectTopping'>: Missing ['entities.entity', 'packets.classes']
Failed to run <class 'burger.toppings.particletypes.ParticleTypesTopping'>
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\munch.py", line 259, in <module>
    topping.act(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\particletypes.py", line 19, in act
    if(next(x for x in ops if 'ldc' in x.name), False):
StopIteration
Assets: id 1.17, url https://launchermeta.mojang.com/v1/packages/e5af543d9b3ce1c063a97842c38e50e29f961f00/1.17.json
Failed to call lambda for light data: Illegal invoke
Failed to call lambda for light data: Illegal invoke
Couldn't find any identifying information for the call to (Ljava/lang/Object;)Ljava/util/Optional; with [<FieldReference(index=3666,class_=<ConstantClass(index=1261, name=<UTF8(index=1260, value='bpf'>))>,name_and_type=<NameAndType(index=3665,name=<UTF8(index=27, value='d'>),descriptor=<UTF8(index=1156, value='Lbpf;'>))>)>]
Couldn't find any identifying information for the call to (Ljava/lang/Object;)Ljava/util/Optional; with [<FieldReference(index=4139,class_=<ConstantClass(index=1261, name=<UTF8(index=1260, value='bpf'>))>,name_and_type=<NameAndType(index=4138,name=<UTF8(index=32, value='i'>),descriptor=<UTF8(index=1156, value='Lbpf;'>))>)>]
Failed to run <class 'burger.toppings.items.ItemsTopping'>
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\munch.py", line 259, in <module>
    topping.act(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\items.py", line 55, in act
    ItemsTopping._process_1point14(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\items.py", line 262, in _process_1point14
    walk_method(cf, method, Walker(), verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\util.py", line 252, in walk_method
    ret = callback.on_invoke(ins, const, obj, args)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\items.py", line 173, in on_invoke
    text_id = block["text_id"]
TypeError: list indices must be integers or slices, not str
Failed to run <class 'burger.toppings.tags.TagsTopping'>
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\munch.py", line 259, in <module>
    topping.act(aggregate, classloader, verbose)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\tags.py", line 25, in act
    type, name = key.split("/", 2)
ValueError: too many values to unpack (expected 2)
Failed to process properties for ccm (for glow_lichen)
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 218, in act
    process_class(cls)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 134, in process_class
    assert const.name_and_type.name == "<init>"
AssertionError
Failed to process properties for cai (for cave_vines)
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 218, in act
    process_class(cls)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 134, in process_class
    assert const.name_and_type.name == "<init>"
AssertionError
Failed to handle property {'field_name': 'p_'} (declared caj.p_)
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 610, in process_property
    field = find_field(cls, field_name)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 298, in find_field
    return fields_by_class[cls][field_name]
KeyError: 'p_'
Failed to handle property {'field_name': 'g'} (declared cdc.g)
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 610, in process_property
    field = find_field(cls, field_name)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\burger\toppings\blockstates.py", line 298, in find_field
    return fields_by_class[cls][field_name]
KeyError: 'g'
Skipping bad prop {'field_name': 'p_', 'data': None} for cave_vines_plant
Skipping bad prop {'field_name': 'g', 'data': None} for infested_deepslate
Dependencies failed for <class 'burger.toppings.packetinstructions.PacketInstructionsTopping'>: Missing ['packets.classes']
Dependencies failed for <class 'burger.toppings.tileentities.TileEntityTopping'>: Missing ['packets.classes']
Dependencies failed for <class 'burger.toppings.entitymetadata.EntityMetadataTopping'>: Missing ['entities.entity', 'packets.instructions']
Dependencies failed for <class 'burger.toppings.recipes.RecipesTopping'>: Missing ['items', 'tags']
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\Burger\munch.py", line 270, in <module>
    json.dump(transform_floats(summary), output, sort_keys=True, indent=4)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\__init__.py", line 179, in dump
    for chunk in iterable:
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\encoder.py", line 429, in _iterencode
    yield from _iterencode_list(o, _current_indent_level)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\encoder.py", line 325, in _iterencode_list
    yield from chunks
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\encoder.py", line 405, in _iterencode_dict
    yield from chunks
  [Previous line repeated 1 more time]
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\encoder.py", line 438, in _iterencode
    o = _default(o)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type object is not JSON serializable
 > move output.json ../output/burger_1.17.json
Running Burger extractor...
['1.17', '1.16.5', '1.16.4', '1.16.3', '1.16.2', '1.16.1', '1.16', '1.15.2', '1.15.1', '1.15', '1.14.4', '1.14.3', '1.14.2', '1.14.1', '1.14', '1.13.2', '1.13.1', '1.13', '1.12.2', '1.12.1', '1.12', '1.11.2', '1.11.1', '1.11', '1.10.2', '1.10.1', '1.10', '1.9.4', '1.9.3', '1.9.2', '1.9.1', '1.9', '1.8.9', '1.8.8', '1.8.7', '1.8.6', '1.8.5', '1.8.4', '1.8.3', '1.8.2', '1.8.1', '1.8', '1.7.10', '1.7.9', '1.7.8', '1.7.7', '1.7.6', '1.7.5', '1.7.4', '1.7.3', '1.7.2', '1.6.4', '1.6.2', '1.6.1', '1.5.2', '1.5.1', '1.4.7', '1.4.5', '1.4.6', '1.4.4', '1.4.2', '1.3.2', '1.3.1', '1.2.5', '1.2.4', '1.2.3', '1.2.2', '1.2.1', '1.1', '1.0'] ['1.17', '1.16.5', '1.16.4', '1.16.3', '1.16.2', '1.16.1', '1.16', '1.15.2', '1.15.1', '1.15', '1.14.4', '1.14.3', '1.14.2', '1.14.1', '1.14', '1.13.2', '1.13.1', '1.13', '1.12.2', '1.12.1', '1.12', '1.11.2', '1.11.1', '1.11', '1.10.2', '1.10.1', '1.10', '1.9.4', '1.9.3', '1.9.2', '1.9.1', '1.9', '1.8.9', '1.8.8', '1.8.7', '1.8.6', '1.8.5', '1.8.4', '1.8.3', '1.8.2', '1.8.1', '1.8', '1.7.10', '1.7.9', '1.7.8', '1.7.7', '1.7.6', '1.7.5', '1.7.4', '1.7.3', '1.7.2', '1.6.4', '1.6.2', '1.6.1', '1.5.2', '1.5.1', '1.4.7', '1.4.5', '1.4.6', '1.4.4', '1.4.2', '1.3.2', '1.3.1', '1.2.5', '1.2.4', '1.2.3', '1.2.2', '1.2.1', '1.1', '1.0']
 > node src/index.js ../output/burger_1.17.json 1.16.5

 > Make sure to have the latest version of minecraft-data installed
internal/modules/cjs/loader.js:1109
    throw err;
    ^

SyntaxError: C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\output\burger_1.17.json: Unexpected end of JSON input
    at parse (<anonymous>)
    at Object.Module._extensions..json (internal/modules/cjs/loader.js:1106:22)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\burger-extractor\src\index.js:46:14)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
Traceback (most recent call last):
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\run.py", line 246, in <module>
    main()
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\run.py", line 230, in main
    extractor.run(versions, runBurger='burger' in toppings, runBE='burger-extractor' in toppings, runJarExtractor='jar-extractor' in toppings)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\extractor.py", line 149, in run
    good = good and run_burger_extractor(version)
  File "C:\Users\---\Documents\git-projs\minecraft-data-extractor\java\extractor.py", line 72, in run_burger_extractor
    for filename in os.listdir('out'):
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant