Skip to content

πŸ› Exporting in plugin mode is brokenΒ #424

@brickmonster

Description

@brickmonster

πŸ›‘ Before you Start

  • I have searched existing bug reports for my problem.
  • I have read the F-A-Q.
  • I am using the latest version of Animated Java
  • I will only report a single bug in this report. If I have found multiple bugs, I will create a separate report for each one.

πŸ—£οΈ Describe the bug

Exporting in plugin mode tries to export a data pack. The baked json file is never exported.
It writes some files to the home folder if they aren't there and states that the export was successful.
If the home folder files are there then it produces the error below.

⚠️ Error Message

ENOENT: no such file or directory, scandir ''
Error: ENOENT: no such file or directory, scandir ''
    at Object.readdirSync (node:fs:1584:26)
    at t.readdirSync (node:electron/js2c/node_init:2:16005)
    at eval (PLUGINS/(Plugin):animated_java.js:3212:11900)
    at Array.filter (<anonymous>)
    at writeFiles (PLUGINS/(Plugin):animated_java.js:3212:11758)
    at async compileDataPack (PLUGINS/(Plugin):animated_java.js:3212:7771)
    at async actuallyExportProject (PLUGINS/(Plugin):animated_java.js:3212:35599)
    at async exportProject (PLUGINS/(Plugin):animated_java.js:3217:68)

πŸ”„οΈ How to Reproduce

  1. New project
  2. Check plugin mode
  3. Set the json file path
  4. Confirm
  5. Export

βœ… Expected Behavior

Json file exported, no data pack exported.

πŸ’‘ Solutions & Alternatives

1.6.4 worked, but there's doesn't seem to be a way to downgrade.

🟩 Minecraft Version

1.21.2

🟦 Blockbench Version

4.12.4

πŸ’» Operating System

Linux

πŸ“ƒ Installed Blockbench Plugins

None

⛰️ Minecraft Environment

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions