This file doesn't belong to a cookbook message - previously working #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rdeavila/chef-server-file-upload#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I do a Shift-Command-P and choose "Chef:Send entire cookbook to server", I am getting a "This file doesn't belong to a cookbook" message. It does not matter if I am on a cookbook folder, recipe folder, or recipe (actual recipe.rb file), or whether there is code in the editor or not - all conditions report the same result. I previously had it working, and don't know what has changed. I am accessing VSCode on a Macbook Pro.
To be recognized as a cookbook, you workspace must start on the root of your chef repo, and the file must be inside the
cookbookdirectory (or any other subdirectory below). With this, thecookbookdirectory will be the first part of file path onvscode.workspace.asRelativePath.github.com/rdeavila/chef-server-file-upload@f4a8e2c012/src/extension.ts (L72-L78)Thank you! I switched out projects I was working on and when I came back to it, I opened an old entry (now removed from "open recent").