demisto / vscode-extension

MIT License
12 stars 3 forks source link

Issue related to private repositories #49

Open ennozdd opened 10 months ago

ennozdd commented 10 months ago

https://github.com/demisto/vscode-extension/blob/42356da2683088ad1e2cd601f6d36f13c128ffa2/src/tools.ts#L31C4-L31C4

My pack resides in a private repository and content name check here prevents me from executing any commands "Please run this from Content repository".

masq commented 10 months ago

Having this exact same issue. Keep trying to do any commands to install an environment and just getting that error... I even made a mirror of the Demisto content repo and tried using that, but still get that same message. I'm using the right-click -> "install XSOAR local development environment" method

masq commented 10 months ago

I was able to figure this out.

I had a directory structure like...

xsoar/
..content/
.... ...
..dockerfiles/
.... ...
..xsoar.code-workspace

and my workspace file had a workspace folder path of ".".

Looking at this extension's code though, you must actually have a code-workspace with a folder that either has content in it somewhere in that path, or the current working directory of the code-workspace has to have content in it. Even if I was right-clicking on something within the content folder, it wouldn't work because the code-workspace wasn't in the content directory.

Making a new workspace within content/ and then using the same right-click method I was using before worked just fine.

Maybe this will help you out @ennozdd? Additionally, the documentation should really be a bit more clear on the requirements to install this... spent way too much time figuring this out 😬.