← Back to issue list

Misleading error messages

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1719968
Type
issue
State
closed
Author
~aleixpol-kde
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution. The report notes that missing dependencies cause snapcraft to output verbose Python tracebacks instead of clear error messages. No fix or follow-up was provided.

Suggested action:

No scores available.

Issue body

My snapcraft.yaml is wrong and misses a dependency. cmake complains and returns!=0. snapcraft will show 2 massive python tracebacks of when it realised that it's not right. It's not very relevant information to the snapcraft user. -- Performing Test HAVE_WNO_MISSING_FIELD_INITIALIZERS - Success -- Performing Test HAVE_WERROR_UNDEFINED_BOOL_CONVERSION -- Performing Test HAVE_WERROR_UNDEFINED_BOOL_CONVERSION - Failed -- Performing Test HAVE_WERROR_TAUTOLOGICAL_UNDEFINED_COMPARE -- Performing Test HAVE_WERROR_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed CMake Warning at kdevplatform/CMakeLists.txt:20 (find_package): Could not find a package configuration file provided by "Grantlee5" with any of the following names: Grantlee5Config.cmake grantlee5-config.cmake Add the installation prefix of "Grantlee5" to CMAKE_PREFIX_PATH or set "Grantlee5_DIR" to a directory containing one of the above files. If "Grantlee5" provides a separate development package or SDK, be sure it has been installed. -- Could NOT find Boost -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Looking for malloc.h -- Looking for malloc.h - found -- Looking for malloc_trim -- Looking for malloc_trim - found -- Performing Test HAVE_MSG_NOSIGNAL -- Performing Test HAVE_MSG_NOSIGNAL - Success CMake Error at kdevplatform/template/filters/CMakeLists.txt:2 (grantlee_adjust_plugin_name): Unknown CMake command "grantlee_adjust_plugin_name". CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: /root/build_kdevelop/parts/kdevelop/src/kdevplatform/language/Boost_INCLUDE_DIR used as include directory in directory /root/build_kdevelop/parts/kdevelop/src/kdevplatform/language -- Configuring incomplete, errors occurred! See also "/root/build_kdevelop/parts/kdevelop/build/CMakeFiles/CMakeOutput.log". See also "/root/build_kdevelop/parts/kdevelop/build/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "/usr/bin/snapcraft", line 9, in <module> load_entry_point('snapcraft==2.34', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module> run(prog_name='snapcraft') File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 132, in snap project_options, directory=directory, output=output) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 349, in snap execute('prime', project_options) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 130, in execute _Executor(config, project_options).run(step, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 225, in run self._run_step(step, part, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 262, in _run_step getattr(part, step)() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 330, in build self.plugin.build() File "/usr/lib/python3/dist-packages/snapcraft/plugins/cmake.py", line 80, in build self.options.configflags, env=env) File "/usr/lib/python3/dist-packages/snapcraft/_baseplugin.py", line 202, in run return common.run(cmd, cwd=cwd, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/internal/common.py", line 63, in run subprocess.check_call(['/bin/sh', f.name] + cmd, **kwargs) File "/usr/lib/python3.5/subprocess.py", line 581, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/bin/sh', '/tmp/tmpqguxexuf', 'cmake', '/root/build_kdevelop/parts/kdevelop/src', '-DCMAKE_INSTALL_PREFIX=', '-DKDE_INSTALL_USE_QT_SYS_PATHS=ON', '-DCMAKE_INSTALL_PREFIX=/usr', '-DCMAKE_BUILD_TYPE=Release', '-DENABLE_TESTING=OFF', '-DBUILD_TESTING=OFF', '-DKDE_SKIP_TEST_SETTINGS=ON']' returned non-zero exit status 1 Stopping local:snapcraft-kindly-crisp-vervet Traceback (most recent call last): File "/home/apol/devel/playground/snapcraft/bin/snapcraft", line 36, in <module> obj=dict(project=snapcraft.ProjectOptions())) File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/home/apol/devel/playground/snapcraft/snapcraft/cli/lifecycle.py", line 193, in cleanbuild lifecycle.cleanbuild(project_options, remote) File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lifecycle.py", line 338, in cleanbuild metadata=config.get_metadata(), remote=remote).execute() File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 167, in execute raise e File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 161, in execute self._container_run(command, cwd=self._project_folder) File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 114, in _container_run **kwargs) File "/usr/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['lxc', 'exec', 'local:snapcraft-kindly-crisp-vervet', '--', 'sh', '-c', 'cd /root/build_kdevelop; snapcraft snap --output kdevelop_5.2_amd64.snap']' returned non-zero exit status 1.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The report notes that missing dependencies cause snapcraft to output verbose Python tracebacks instead of clear error messages. No fix or follow-up was provided.
qwen/qwen3.6-35b-a3b Closed without resolution. Snapcraft outputs verbose Python tracebacks instead of clear errors when cmake fails due to missing dependencies. No comments or fixes were provided, indicating the issue was abandoned.
qwen3.6-35b-a3b-mtp-q6 Abandoned due to inactivity. The report highlighted confusing Python tracebacks when CMake fails from missing dependencies, but no error handling improvements were implemented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1834319 Cleaning up output snapcraft (launchpad) closed Closed without a documented fix. The report requested removing redundant and verbose snapcraft output messages, but no resolution or code changes were implemented.
77%
#1721932 Package resolution issue results in backtrace snapcraft (launchpad) closed Closed without comments or explicit resolution. The request to display apt output instead of Python tracebacks for package resolution failures was likely abandoned or superseded by later snapcraft updates.
74%
#1633613 useless "no such file or directory" message snapcraft (launchpad) closed A confusing snapcraft error message report was closed without comments or resolution, likely abandoned due to prolonged inactivity. No fix or workaround was implemented.
74%
#1740265 Stack trace makes it hard to discern real errors snapcraft (launchpad) closed Closed without resolution due to inactivity. The request to suppress verbose Python stack traces by default in snapcraft was abandoned. No implementation or configuration changes were made.
72%
#1807875 Wrong error when no source specified snapcraft (launchpad) closed Closed without resolution. Reported a misleading error when the source field was omitted from snapcraft.yaml, which should explicitly require the source instead of failing on command execution.
72%
#1611541 Bad error when trying to run snapcraft-parser without bzr installed snapcraft (launchpad) closed Closed without resolution. No fix was implemented for the missing bzr error message, and the report appears abandoned due to prolonged inactivity.
72%
#1815812 Totally misleading error on non-string version snapcraft (launchpad) closed Closed without resolution. The suggested improvement for clearer error handling when non-string versions are provided in snapcraft.yaml was not implemented.
72%
#1550496 Error message when command can't be found/isn't executable is terrible snapcraft (launchpad) closed Unhelpful error messages for missing or non-executable commands in Snapcraft YAML were not addressed. The report was closed without resolution or a fix, likely abandoned due to age and lack of activity.
70%
#1628671 Assertion error message with no useful end user information snapcraft (launchpad) closed Abandoned and closed without resolution due to inactivity. The unhelpful snapcraft sign-build error message was never improved.
70%