-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Plugin build silently exits when it can't find build config #174
Comments
Nothing silent about this error? Logs are sent to stderr, not stdout, and exit code is appropriately returning
JPRM ran with debug logs shows the dotnet command;
JPRM is self-documenting to a certain level, via the |
Looks like it silently exits when it can't find the build config ( |
I've merged a fix for the lack of errors there, but I've yet to publish a new release. For now, you can assume that no output means it didn't find the config file in the path supplied. jellyfin-plugin-repository-manager/jprm/__init__.py Lines 37 to 45 in 9497a0a
|
Your project is missing a .sln file, which is why the dotnet clean command is erroring btw. |
My project is missing the .sln file, but it is only required for Visual Studio solutions, the main thing is the .csproj file, which is included in the plugin folder. |
The dotnet clean command executed by jprm says otherwise. |
If you pass the folder to dotnet clean command it will work as expected even without .sln file. |
I think I found the issue running with the debugger: the script searches build configuration files in the same specified folder jellyfin-plugin-repository-manager/jprm/__init__.py Lines 311 to 315 in 9497a0a
The reason why it works with .sln file is that it is located outside the plugin source directory, along with build configuration file, while .csproj is inside that folder. If you specify the plugin source folder the script won't find the build configuration file, while if you specify the plugin project root folder the script will find the build configuration file but not the .csproj. |
If that's the case, it would seem that your project is using a structure different than our official plugins or any third party plugins that we've seen use the JPRM tool before, though I haven't checked to confirm. I would suggest that you restore the original file layout from the template so that it matches our official plugins, as this is what JPRM is primarily built for. Any additional changes to support this would have to take into account effectively arbitrary plugin repository structures, and I'm not sure that's feasible at this time (though @oddstr13 may be able to confirm in the future if that'll be possible) without introducing too much complexity here.
|
Yeah, I've restored the .sln file and now it works without problems 🙂. However I agree with you for the verbosity. I would also suggest to not leave the instructions entirely to the reading of the code, a documentation, at least minimal (but more than the current), would be a good improvement to understand the pillars this tool assumes. It's not a matter of the --help command in this case, because I think that it's better to declare somewhere that the identical template plugin structure should be used. Thanks for the help guys 😉 |
Hi, I am the developer of TubeArchivistMetadata and your tool doesn't work when I build my project, neither on local machine nor in GitHub Actions.
It returns me an empty string as result after the build and it doesn't really output any artifact.
Apart from this, I find this tool very poor documented unfortunately...
The text was updated successfully, but these errors were encountered: