-
Notifications
You must be signed in to change notification settings - Fork 25
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
Better error messages than "can't find file" #46
Comments
Yes, that is way too generic, and I can see how that is very frustrating. I will investigate and implement a better error message. Were you able to eventually build your project and/or discover which file was missing? Did you try to use the sub-command with a higher verbosity, i.e. |
The path to the `bin` folder for the compiler of the WiX Toolset is checked for existence before starting the compiler. A better error message is provided if the path does not exist and/or the compiler cannot be found than the standard, generic IO error message. This should possibly resolve: - [Issue #46](#46)
If the compiler and linker applications could not be found in the PATH environment variable, which is the default behavior, the sub-command would emit a generic file not found OS Error (2), which is an IO error. This is too generic and may be the source of Issue #46. A better error message is provided, but the only way to know if this worked is to attempt the compiler and/or linker command and then map the IO error if the kind is `NotFound` to a Generic error.
Fixed as of 075b6cc |
@volks73 You should maybe add that you have to add the So I had to add: |
Or do this automatically (checking if |
This is mentioned in the Installation section of the README:
But I have changed the wording and structure to (hopefully) be more clear.
I have added information under the Usage section to the README about being able to use git bash along with any other console/prompt/terminal. I have also changed the structure to be more clear that the VS developer console is not required but recommended. Using the VS developer console is recommended because it will add the |
I would hesitate to have this sub-command manipulate system environment variables. Adding a path to the PATH system environment variable should be left to an installer or admin user. However, this sub-command does use the I did notice documentation on the |
This required changing the implementation of creating test projects. The `.tmp` prefix can be used in Windows but the cargo project name cannot. Thus, the `--name <NAME>` option needed to be used for creating a test package because the `TempDir` type from the assert_fs package does not support the tempfile TempDir builder or changing the prefix in newer versions. See Issues [#46] and [#48] from the `assert_fs` project for more information. [#46]: assert-rs/assert_fs#46 [#48]: assert-rs/assert_fs#48
I'm trying to build a project, but all I'm getting as an error is "The system can't find the file (os error 2)". It would be really helpful to know what file exactly it can't find or where the error came from.
The text was updated successfully, but these errors were encountered: