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
{{ message }}
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
On Windows, sometimes the path to an aftman managed executable is returned by tools (such as node-which) with a capitalised suffix .EXE, e.g.: C:\Users\Development\.aftman\bin\stylua.EXE
I'm not sure exactly why its returned like this sometimes, but I've seen it often occur for users, and myself.
When attempting to run this executable directly using the path, there can be odd behaviour.
For example, in cmd:
PS C:\Users\Development\Downloads\project> C:\Users\Development\.aftman\bin\stylua.EXE--version
Aftman error: Tried to run an Aftman-managed version of stylua.EXE, but no aftman.toml files list this tool.
To run stylua.EXEfrom this directory, add it to one of these files:
- C:\Users\Development\Downloads\project\aftman.toml
- C:\Users\Development\.aftman\aftman.toml
But C:\Users\Development\Downloads\project\aftman.toml contains the contents:
# This file lists tools managed by Aftman, a cross-platform toolchain manager.# For more information, see https://github.com/LPGhatguy/aftman# To add a new tool, add an entry to this table.
[tools]
rojo = "rojo-rbx/rojo@7.3.0"selene = "Kampfkarren/selene@0.25.0"wally = "UpliftGames/wally@0.3.2"luau-lsp = "JohnnyMorganz/luau-lsp@1.23.0"stylua = "JohnnyMorganz/StyLua@0.18.1"wally-package-types = "JohnnyMorganz/wally-package-types@1.2.1"
I would expect the tool to always run fine, even with .EXE as a suffix.
Looking at the code, the offending issue seems to be current_exe_name() not stripping the .EXE suffix like it does for .exe, meaning aftman doesn't find it in manfiest.tools vector