From fbefead3705cd73337c8e7443fe1fb81e2776498 Mon Sep 17 00:00:00 2001 From: codegen-bot Date: Wed, 29 Jan 2025 15:40:49 -0800 Subject: [PATCH 1/5] . --- docs/introduction/ide-usage.mdx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/introduction/ide-usage.mdx b/docs/introduction/ide-usage.mdx index d222fa63d..9bcc05989 100644 --- a/docs/introduction/ide-usage.mdx +++ b/docs/introduction/ide-usage.mdx @@ -52,19 +52,7 @@ Codegen creates a custom Python environment in `.codegen/.venv`. Configure your 1. Right-click on `.codegen/.venv` 2. Mark Directory as > Sources Root - - - Common issues and solutions: - - - **Missing Completions**: Make sure the interpreter is correctly set and the environment has `codegen` installed - - **Import Errors**: Verify the environment is activated and Python path includes the virtual environment - - **Wrong Python Version**: Check that you're using Python 3.11 or higher in `.codegen/.venv` - - Run this to verify your environment: - ```bash - .codegen/.venv/bin/python -c "import codegen; print(codegen.__version__)" - ``` - + From f19e280a30379b2ad5ed592c233badf2e23091d1 Mon Sep 17 00:00:00 2001 From: codegen-bot Date: Wed, 29 Jan 2025 15:41:49 -0800 Subject: [PATCH 2/5] . --- docs/introduction/ide-usage.mdx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/introduction/ide-usage.mdx b/docs/introduction/ide-usage.mdx index 9bcc05989..520fb07db 100644 --- a/docs/introduction/ide-usage.mdx +++ b/docs/introduction/ide-usage.mdx @@ -47,10 +47,6 @@ Codegen creates a custom Python environment in `.codegen/.venv`. Configure your ```bash .codegen/.venv/bin/python ``` - - For better type hints: - 1. Right-click on `.codegen/.venv` - 2. Mark Directory as > Sources Root From bb073176c1b119ab0593436264eb5785619d2d9e Mon Sep 17 00:00:00 2001 From: codegen-bot Date: Wed, 29 Jan 2025 15:43:10 -0800 Subject: [PATCH 3/5] . --- docs/introduction/ide-usage.mdx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/introduction/ide-usage.mdx b/docs/introduction/ide-usage.mdx index 520fb07db..c4562c7fd 100644 --- a/docs/introduction/ide-usage.mdx +++ b/docs/introduction/ide-usage.mdx @@ -15,11 +15,13 @@ Codegen creates a custom Python environment in `.codegen/.venv`. Configure your - 1. Open the Command Palette (Cmd/Ctrl + Shift + P) - 2. Type "Python: Select Interpreter" + 1. Install the VSCode Python Extensions for LSP and debugging support. We recommend Python, Pylance and Python Debugger for the best experience. + + 2. Open the Command Palette (Cmd/Ctrl + Shift + P) + 3. Type "Python: Select Interpreter" - 3. Choose "Enter interpreter path" - 4. Navigate to and select: + 4. Choose "Enter interpreter path" + 5. Navigate to and select: ```bash .codegen/.venv/bin/python ``` @@ -33,9 +35,6 @@ Codegen creates a custom Python environment in `.codegen/.venv`. Configure your ] } ``` - - 5. Install the VSCode Python Extensions for LSP and debugging support. We recommend Python, Pylance and Python Debugger for the best experience. - From 602d6a828cb5e1d0e275fff28ffe17889a6e4bde Mon Sep 17 00:00:00 2001 From: codegen-bot Date: Wed, 29 Jan 2025 15:44:09 -0800 Subject: [PATCH 4/5] . --- docs/introduction/ide-usage.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/introduction/ide-usage.mdx b/docs/introduction/ide-usage.mdx index c4562c7fd..fb9eda25b 100644 --- a/docs/introduction/ide-usage.mdx +++ b/docs/introduction/ide-usage.mdx @@ -31,7 +31,7 @@ Codegen creates a custom Python environment in `.codegen/.venv`. Configure your { "python.defaultInterpreterPath": "${workspaceFolder}/.codegen/.venv/bin/python", "python.analysis.extraPaths": [ - "${workspaceFolder}/.codegen/.venv/lib/python3.11/site-packages" + "${workspaceFolder}/.codegen/.venv/lib/python3.12/site-packages" ] } ``` From 798a25edee37e1c8fef42f37ffea30164a1cf26f Mon Sep 17 00:00:00 2001 From: codegen-bot Date: Wed, 29 Jan 2025 15:47:46 -0800 Subject: [PATCH 5/5] . --- docs/mint.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/mint.json b/docs/mint.json index 5a54f68a0..7bf73f9bf 100644 --- a/docs/mint.json +++ b/docs/mint.json @@ -9,21 +9,21 @@ "default": "dark" }, "metadata": { - "og:site_name": "Codegen", - "og:title": "Codegen - Manipulate code at scale", - "og:description": "A scriptable interface to a powerful, multi-lingual language server built on top of Tree-sitter.", - "og:url": "https://codegen.com", - "og:image": "https://mintlify.s3.us-west-1.amazonaws.com/codegeninc/images/codegen.jpeg", - "og:locale": "en_US", - "og:logo": "https://mintlify.s3.us-west-1.amazonaws.com/codegeninc/images/codegen-thumbnail.png", - "article:publisher": "Codegen, Inc.", - "twitter:title": "Codegen - Manipulate code at scale", - "twitter:description": "A scriptable interface to a powerful, multi-lingual language server built on top of Tree-sitter.", - "twitter:url": "https://codegen.com", - "twitter:image": "https://mintlify.s3.us-west-1.amazonaws.com/codegeninc/images/codegen.jpeg", - "twitter:site": "@codegen", - "og:image:width": "2400", - "og:image:height": "1200" + "og:site_name": "Codegen", + "og:title": "Codegen - Manipulate code at scale", + "og:description": "A scriptable interface to a powerful, multi-lingual language server built on top of Tree-sitter.", + "og:url": "https://codegen.com", + "og:image": "https://mintlify.s3.us-west-1.amazonaws.com/codegeninc/images/codegen.jpeg", + "og:locale": "en_US", + "og:logo": "https://mintlify.s3.us-west-1.amazonaws.com/codegeninc/images/codegen-thumbnail.png", + "article:publisher": "Codegen, Inc.", + "twitter:title": "Codegen - Manipulate code at scale", + "twitter:description": "A scriptable interface to a powerful, multi-lingual language server built on top of Tree-sitter.", + "twitter:url": "https://codegen.com", + "twitter:image": "https://mintlify.s3.us-west-1.amazonaws.com/codegeninc/images/codegen.jpeg", + "twitter:site": "@codegen", + "og:image:width": "2400", + "og:image:height": "1200" }, "favicon": "/favicon.svg", "colors": {