Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {gh repo clone Madib036/solid-dependency}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Critical: Invalid JSON syntax in features property.

Line 3 contains malformed JSON that will prevent the devcontainer from loading. The syntax {gh repo clone Madib036/solid-dependency} is not valid—it appears to mix shell command syntax with JSON structure.

Based on the static analysis hints, the issues are:

  • gh must be quoted as a key
  • Missing : separator
  • The value is not properly formatted

If you want to clone the repository after creating the container, use postCreateCommand instead:

🔎 Proposed fix
 {
   "image": "mcr.microsoft.com/devcontainers/universal:2",
-  "features": {gh repo clone Madib036/solid-dependency}
+  "features": {},
+  "postCreateCommand": "gh repo clone Madib036/solid-dependency || true"
 }

Note: The repository is typically already available when you open a folder in a devcontainer. If you're opening this repository itself in the devcontainer, you don't need to clone it again. The postCreateCommand approach shown above would only be needed if you want to clone an additional repository.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"features": {gh repo clone Madib036/solid-dependency}
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {},
"postCreateCommand": "gh repo clone Madib036/solid-dependency || true"
}
🧰 Tools
🪛 Biome (2.1.2)

[error] 3-3: Property key must be double quoted

(parse)


[error] 3-3: expected : but instead found repo

Remove repo

(parse)


[error] 3-3: expected , but instead found clone

Remove clone

(parse)


[error] 3-3: expected : but instead found Madib036

Remove Madib036

(parse)


[error] 3-3: unexpected character /

(parse)


[error] 3-3: Minus must be followed by a digit

(parse)

🤖 Prompt for AI Agents
.devcontainer/devcontainer.json around line 3: the "features" property contains
invalid JSON using shell syntax `gh repo clone ...`; replace this with a valid
JSON object (e.g. an object with quoted keys or an empty object) or remove the
incorrect entry, and if you need to clone an extra repo run the clone in
"postCreateCommand" instead; ensure the "features" value is a proper JSON object
like "features": {} or a correctly structured feature entry with quoted keys and
colons.

}