vsconan icon indicating copy to clipboard operation
vsconan copied to clipboard

Local profile not found using relative path

Open sharpepd opened this issue 2 years ago • 1 comments

I have a local Conan profile folder .azuredevops\conan\default and I am configuring the VS Conan install command in .vsconan\config.json as follows:

        "install": [
            {
                "name": "default",
                "description": "Default profile",
                "detail": "Installs ready for development using the project default profile",
                "conanRecipe": "conanfile.py",
                "installFolder": "build/Release/conan",
                "profile": ".azuredevops/conan/default",
                "args": [
                    "-pr:b windows"
                ]
            }
        ]

When i run the Install command I get the error: ERROR: Profile not found: .azuredevops/conan/default

I am running on a windows PC so, I also tried with "\" and I also tried making relative to the config.json, all with the same result.

I only can get this to work, if I provide the absolute path, which is not an option as I want other users to be able to clone the repo where they like and it still work!

I tried to find some clues in the documentation, but could not find it.

Is it possible to provide a relative path to a local profile? If not please can someone add that feature?

I am using Conan version 1.59.0 with VS Code:

Version: 1.79.0 (user setup) Commit: b380da4ef1ee00e224a15c1d4d9793e27c2b6302 Date: 2023-06-07T14:26:35.552Z Electron: 22.5.5 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.19045

and VSConan v0.4.0

sharpepd avatar Jun 12 '23 11:06 sharpepd

Closing the issue. Cleaning the issues for now, trying to solve the elementary issues. Will get back to you and this ticket soon!

afri-bit avatar Feb 17 '24 23:02 afri-bit