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

Missing closing bracket crashes HEMTT #638

Open
TACHarsis opened this issue Feb 1, 2024 · 0 comments
Open

Missing closing bracket crashes HEMTT #638

TACHarsis opened this issue Feb 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TACHarsis
Copy link

If included in config.cpp with missing closing bracket

class ClassA {
    class ClassB {
};

outputs:

hemtt dev
 INFO Config loaded for Mod Name 0.1.0.0
 INFO Creating `dev` version
 INFO will write pbo: true
ERROR panicked at libs\config\src\analyze\codes\mod.rs:85:14:
mapping exists

Oh no! HEMTT has crashed!
This is a bug in HEMTT itself, not necessarily your project.
Even if there is a bug in your project, HEMTT should not crash, but gracefully exit with an error message.

Support for HEMTT can be found on:
GitHub (https://github.com/BrettMayson/HEMTT)
#hemtt on the ACE 3 Discord (https://acemod.org/discord)

The log from the most recent run can be found in `.hemttout/latest.log`.

It is always best to the include the log and a link to your project when reporting a bug, this will help reproduce the issue.

Truncated latest.log
(PII removed)

2024-02-01T12:09:50.559777Z TRACE ThreadId(04) Located with parent: vfs /addons/example_addon/script_component.hpp
2024-02-01T12:09:50.560033Z TRACE ThreadId(05) Located with parent: vfs /addons/main/script_component.hpp
2024-02-01T12:09:50.560270Z TRACE ThreadId(04) Located with prefix pointer: VfsPath { path: "/addons/main/script_mod.hpp", fs: VFS { fs: OverlayFS { layers: [VfsPath { path: "", fs: VFS { fs: In Memory File System } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template\\include" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "C:\\Users\\USERNAME\\AppData\\Local\\Temp\\hemtt\\Development_Arma Modding_mods_mod_template\\output" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template" } } } } } }] } } }
2024-02-01T12:09:50.560499Z TRACE ThreadId(05) Located with prefix pointer: VfsPath { path: "/addons/main/script_mod.hpp", fs: VFS { fs: OverlayFS { layers: [VfsPath { path: "", fs: VFS { fs: In Memory File System } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template\\include" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "C:\\Users\\USERNAME\\AppData\\Local\\Temp\\hemtt\\Development_Arma Modding_mods_mod_template\\output" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template" } } } } } }] } } }
2024-02-01T12:09:50.560630Z TRACE ThreadId(04) Located with parent: vfs /addons/main/script_version.hpp
2024-02-01T12:09:50.560893Z TRACE ThreadId(05) Located with parent: vfs /addons/main/script_version.hpp
2024-02-01T12:09:50.561012Z TRACE ThreadId(04) Located with prefix pointer: VfsPath { path: "/addons/main/script_macros.hpp", fs: VFS { fs: OverlayFS { layers: [VfsPath { path: "", fs: VFS { fs: In Memory File System } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template\\include" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "C:\\Users\\USERNAME\\AppData\\Local\\Temp\\hemtt\\Development_Arma Modding_mods_mod_template\\output" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template" } } } } } }] } } }
2024-02-01T12:09:50.561267Z TRACE ThreadId(05) Located with prefix pointer: VfsPath { path: "/addons/main/script_macros.hpp", fs: VFS { fs: OverlayFS { layers: [VfsPath { path: "", fs: VFS { fs: In Memory File System } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template\\include" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "C:\\Users\\USERNAME\\AppData\\Local\\Temp\\hemtt\\Development_Arma Modding_mods_mod_template\\output" } } } } } }, VfsPath { path: "", fs: VFS { fs: AltrootFS { root: VfsPath { path: "", fs: VFS { fs: PhysicalFS { root: "N:\\Development\\Arma Modding\\mods\\mod_template" } } } } } }] } } }
2024-02-01T12:09:50.561323Z TRACE ThreadId(04) Located with absolute path: "/x/cba/addons/main/script_macros_common.hpp"
2024-02-01T12:09:50.561573Z TRACE ThreadId(05) Located with absolute path: "/x/cba/addons/main/script_macros_common.hpp"
2024-02-01T12:09:50.571348Z TRACE ThreadId(05) Located with parent: vfs /addons/main/RscDisplayMain.hpp
2024-02-01T12:09:50.571347Z TRACE ThreadId(04) Located with parent: vfs /addons/example_addon/CfgEventHandlers.hpp
2024-02-01T12:09:50.577111Z ERROR ThreadId(05) panicked at libs\config\src\analyze\codes\mod.rs:85:14:
mapping exists

Slight variations seem to correctly be identified and handled

@BrettMayson BrettMayson added the bug Something isn't working label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants