{"action":"opened","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/3349","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/3349/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/3349/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/3349/events","html_url":"https://github.com/conan-io/conan/issues/3349","id":350716921,"node_id":"MDU6SXNzdWUzNTA3MTY5MjE=","number":3349,"title":"[workspaces] Better error handling of non-dependent package","user":{"login":"climblinne","id":9393574,"node_id":"MDQ6VXNlcjkzOTM1NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/9393574?v=4","gravatar_id":"","url":"https://api.github.com/users/climblinne","html_url":"https://github.com/climblinne","followers_url":"https://api.github.com/users/climblinne/followers","following_url":"https://api.github.com/users/climblinne/following{/other_user}","gists_url":"https://api.github.com/users/climblinne/gists{/gist_id}","starred_url":"https://api.github.com/users/climblinne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/climblinne/subscriptions","organizations_url":"https://api.github.com/users/climblinne/orgs","repos_url":"https://api.github.com/users/climblinne/repos","events_url":"https://api.github.com/users/climblinne/events{/privacy}","received_events_url":"https://api.github.com/users/climblinne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-15T07:47:53Z","updated_at":"2018-08-15T07:47:53Z","closed_at":null,"author_association":"NONE","body":"To help us debug your issue please explain:\r\n\r\n- [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).\r\n- [x] I've specified the Conan version, operating system version and any tool that can be relevant.\r\n- [x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.\r\n\r\nHello,\r\n\r\nI am testing the workspace feature on Windows 10, Conan 1.6.1 & CMake 3.12.1.\r\nWhen I just add a new library, which have no dependency (D = copy of C), I got this error message:\r\n```\r\nλ conan install . -if=build\r\nUsing conanws.yml file from C:\\work\\dsp\\test\\conan-workspace-example_additonal_D_without_dependency\\conan-workspace-example\r\nWorkspace: Installing...\r\nRequirements\r\n    HelloA/root@project/develop from 'conanws.yml' - Workspace\r\n    HelloB/0.1@user/testing from 'conanws.yml' - Workspace\r\n    HelloC/0.1@user/testing from 'conanws.yml' - Workspace\r\nPackages\r\n    HelloA/root@project/develop:8562c08f9b976eb0eada9e5b55718f5f7733bc9a - Workspace\r\n    HelloB/0.1@user/testing:19056882ab002381c35270bdb67b66b12d5b6ea6 - Workspace\r\n    HelloC/0.1@user/testing:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 - Workspace\r\n\r\nWorkspace HelloC: Generator cmake created conanbuildinfo.cmake\r\nWorkspace HelloC: Generated conaninfo.txt\r\nWorkspace HelloC: Generated conanbuildinfo.txt\r\nWorkspace HelloB: Generator cmake created conanbuildinfo.cmake\r\nWorkspace HelloB: Generated conaninfo.txt\r\nWorkspace HelloB: Generated conanbuildinfo.txt\r\nWorkspace HelloA: Generator cmake created conanbuildinfo.cmake\r\nWorkspace HelloA: Generated conaninfo.txt\r\nWorkspace HelloA: Generated conanbuildinfo.txt\r\nTraceback (most recent call last):\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\model\\ref.py\", line 70, in loads\r\n    name, version, user, channel = tokens\r\nValueError: not enough values to unpack (expected 4, got 1)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\client\\command.py\", line 314, in install\r\n    reference = ConanFileReference.loads(args.path_or_reference)\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\model\\ref.py\", line 73, in loads\r\n    \"OpenCV/1.0.6@user/stable\" % text)\r\nconans.errors.ConanException: Wrong package recipe reference .\r\nWrite something like OpenCV/1.0.6@user/stable\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\client\\command.py\", line 1230, in run\r\n    method(args[0][1:])\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\client\\command.py\", line 325, in install\r\n    install_folder=args.install_folder)\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\client\\conan_api.py\", line 79, in wrapper\r\n    return f(*args, **kwargs)\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\client\\conan_api.py\", line 466, in install\r\n    manager.install_workspace(profile, workspace, remote, build, update)\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\client\\manager.py\", line 218, in install_workspace\r\n    workspace.generate()\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\model\\workspace.py\", line 114, in generate\r\n    build_folder = workspace_package.build_folder\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\model\\workspace.py\", line 38, in build_folder\r\n    folder = self._evaluate(self._build_folder)\r\n  File \"c:\\tools\\python3\\lib\\site-packages\\conans\\model\\workspace.py\", line 70, in _evaluate\r\n    settings = self.conanfile.settings\r\nAttributeError: 'NoneType' object has no attribute 'settings'\r\n\r\nERROR: 'NoneType' object has no attribute 'settings'\r\n\r\n```\r\nThe error message is not really self explaining. \r\nIt would be much better to handle, when something like \r\n_\"Error: Could not integrate HelloD, because no dependency to root exists\"_\r\nwould come as an error. Also I think, that may be just a warning (or asking) and still integrating in the workspace would also be fine.\r\nThe demo project is here: \r\n[conan-workspace-example_additonal_D_without_dependency.zip](https://github.com/conan-io/conan/files/2289546/conan-workspace-example_additonal_D_without_dependency.zip)\r\n\r\n\r\nBest regards\r\n\r\nJan\r\n"}}
{"actor":{"display_login":"climblinne"}}