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
To reproduce the bug, clone the xmake repository but do not checkout the submodules, then try to enable a project-specific config that is not part of the default one.
xmake\core> xmake f -p windows --embed=true
Error: Invalid option: --embed=true
I think it's because xmake knows there's another sub xmake.lua that it doesn't validate the embed option.
If the embed config is now removed from the command:
xmake\core> xmake f -p windows --embed=true
Error: file(D:\Dev\xmake\core\src\sv\sv\xmake.lua): file not found!
Now, as a user, I know that something is missing in that directory, but before I just couldn't predict that was the root cause.
Expected Behavior
The best behavior would be to show only error: file(D:\Dev\xmake\core\src\sv\xmake.lua): file not found! and not the invalid option. However, if it's too much work, it's best to show both errors.
Xmake Version
v2.9.5+dev.478972cd9
Operating System Version and Architecture
Windows 10
Describe Bug
To reproduce the bug, clone the xmake repository but do not checkout the submodules, then try to enable a project-specific config that is not part of the default one.
I think it's because xmake knows there's another sub xmake.lua that it doesn't validate the embed option.
If the embed config is now removed from the command:
Now, as a user, I know that something is missing in that directory, but before I just couldn't predict that was the root cause.
Expected Behavior
The best behavior would be to show only
error: file(D:\Dev\xmake\core\src\sv\xmake.lua): file not found!
and not the invalid option. However, if it's too much work, it's best to show both errors.Project Configuration
https://github.com/xmake-io/xmake/blob/dev/core/xmake.lua
Additional Information and Error Logs
Nothing relevant to share
The text was updated successfully, but these errors were encountered: