python-delphi-lsp 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_delphi_lsp-1.0.0/python_delphi_lsp.egg-info → python_delphi_lsp-1.0.1}/PKG-INFO +57 -2
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/README.md +56 -1
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/pyproject.toml +1 -1
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1/python_delphi_lsp.egg-info}/PKG-INFO +57 -2
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_package_metadata.py +2 -2
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/LICENSE +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/MANIFEST.in +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/__init__.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/binary.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/comment_builder.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/consts.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/grammar.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/lark_builder.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/lark_tokens.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/lsp_server.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/nodes.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/parser.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/preprocessor.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/project_indexer.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/semantic.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/semantic_builder.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/source_reader.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/workspace.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/delphiast/writer.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/opencode.json +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/SOURCES.txt +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/dependency_links.txt +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/entry_points.txt +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/requires.txt +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/top_level.txt +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/audit_delphi_language_features.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/bootstrap_vllm_opencode_test.ps1 +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/bootstrap_vllm_opencode_test.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/bootstrap_vllm_opencode_test.sh +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/check_ornith_cache.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/generate_release_evidence.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/ollama/ornith-lspctx.Modelfile +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/prepare_ornith_cache.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/run_opencode_lsp_probe.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/start_ornith_vllm.sh +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/summarize_opencode_request_payloads.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/setup.cfg +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/DeprecatedOnConst.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/VariantRecordFieldAttributes.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/alignedrecords.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/constset.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/deprecatedtype.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/dottedtypes.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/endtoken.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/experimentals.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/externalfunction.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/finalizationinitializationexports.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/forwardoverloaded.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/forwardwithoutsemicolon.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/genericconstraints.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/genericinterfacemethoddelegation.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/implementsgenerictype.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/include file2.inc +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/includefile.inc +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/includefile.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/managedrecords.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/messagemethod.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/multiline.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/nonalignedrecords.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/numbers.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/pointerchars.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/properties.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/strictvisibility.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/tryexcept.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/umlauts.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/whitespacearoundifdefcondition.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/library_demo.dpr +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/package_demo.dpk +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/program_demo.dpr +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_advanced.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_attributes.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_basic.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_consumer.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_generics.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_inheritance.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_math.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_properties.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_sections.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_statements.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_types.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_unresolved.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/unit_with.pas +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_bootstrap_vllm_opencode.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_diagnostics.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_language_feature_matrix.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_legacy_snippets.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_lsp_features.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_lsp_support.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_opencode_config.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_opencode_probe.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_opencode_request_payloads.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_ornith_cache_prepare.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_parser.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_preprocessor.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_project_indexer.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_release_evidence.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_semantic.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_vllm_start_script.py +0 -0
- {python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/test_workspace.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-delphi-lsp
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Python Delphi/Object Pascal parser, semantic indexer, and language server.
|
|
5
5
|
Author: Dark Light
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -146,9 +146,64 @@ compiler defines through LSP initialization options when needed.
|
|
|
146
146
|
This repository includes an `opencode.json` that registers the Delphi LSP tool
|
|
147
147
|
and model aliases for local Ollama and vLLM endpoints.
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
To add the Delphi language server to another opencode project, install the
|
|
150
|
+
package in the Python environment used by opencode and add an `lsp.delphi`
|
|
151
|
+
entry to that project's `opencode.json`:
|
|
152
|
+
|
|
153
|
+
```json
|
|
154
|
+
{
|
|
155
|
+
"$schema": "https://opencode.ai/config.json",
|
|
156
|
+
"lsp": {
|
|
157
|
+
"delphi": {
|
|
158
|
+
"command": ["python", "-m", "delphiast.lsp_server"],
|
|
159
|
+
"extensions": [".pas", ".dpr", ".dpk", ".inc"],
|
|
160
|
+
"initialization": {
|
|
161
|
+
"includePaths": ["src", "lib"],
|
|
162
|
+
"defines": ["MSWINDOWS"]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Adjust `includePaths` and `defines` to match the Delphi project. For checkout
|
|
170
|
+
development, this repository's own `opencode.json` uses the local virtual
|
|
171
|
+
environment and sets `PYTHONPATH` so opencode loads the source tree directly:
|
|
172
|
+
|
|
173
|
+
```json
|
|
174
|
+
{
|
|
175
|
+
"lsp": {
|
|
176
|
+
"delphi": {
|
|
177
|
+
"command": [".venv/bin/python", "-m", "delphiast.lsp_server"],
|
|
178
|
+
"extensions": [".pas", ".dpr", ".dpk", ".inc"],
|
|
179
|
+
"env": {
|
|
180
|
+
"PYTHONPATH": "."
|
|
181
|
+
},
|
|
182
|
+
"initialization": {
|
|
183
|
+
"includePaths": ["tests/fixtures", "tests/fixtures/legacy_snippets"],
|
|
184
|
+
"defines": []
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
On Windows checkout development, replace `.venv/bin/python` with
|
|
192
|
+
`.venv\\Scripts\\python.exe`. If `python-delphi-lsp` is installed normally, the
|
|
193
|
+
portable `["python", "-m", "delphiast.lsp_server"]` command above works without
|
|
194
|
+
`PYTHONPATH`.
|
|
195
|
+
|
|
196
|
+
For normal local opencode work, use the Ollama alias with a larger context and
|
|
197
|
+
enable opencode's experimental LSP tool when starting opencode:
|
|
150
198
|
|
|
151
199
|
```bash
|
|
200
|
+
OPENCODE_EXPERIMENTAL_LSP_TOOL=true opencode run --dir . --model ollama/ornith-lspctx
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
On Windows PowerShell:
|
|
204
|
+
|
|
205
|
+
```powershell
|
|
206
|
+
$env:OPENCODE_EXPERIMENTAL_LSP_TOOL = "true"
|
|
152
207
|
opencode run --dir . --model ollama/ornith-lspctx
|
|
153
208
|
```
|
|
154
209
|
|
|
@@ -107,9 +107,64 @@ compiler defines through LSP initialization options when needed.
|
|
|
107
107
|
This repository includes an `opencode.json` that registers the Delphi LSP tool
|
|
108
108
|
and model aliases for local Ollama and vLLM endpoints.
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
To add the Delphi language server to another opencode project, install the
|
|
111
|
+
package in the Python environment used by opencode and add an `lsp.delphi`
|
|
112
|
+
entry to that project's `opencode.json`:
|
|
113
|
+
|
|
114
|
+
```json
|
|
115
|
+
{
|
|
116
|
+
"$schema": "https://opencode.ai/config.json",
|
|
117
|
+
"lsp": {
|
|
118
|
+
"delphi": {
|
|
119
|
+
"command": ["python", "-m", "delphiast.lsp_server"],
|
|
120
|
+
"extensions": [".pas", ".dpr", ".dpk", ".inc"],
|
|
121
|
+
"initialization": {
|
|
122
|
+
"includePaths": ["src", "lib"],
|
|
123
|
+
"defines": ["MSWINDOWS"]
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Adjust `includePaths` and `defines` to match the Delphi project. For checkout
|
|
131
|
+
development, this repository's own `opencode.json` uses the local virtual
|
|
132
|
+
environment and sets `PYTHONPATH` so opencode loads the source tree directly:
|
|
133
|
+
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"lsp": {
|
|
137
|
+
"delphi": {
|
|
138
|
+
"command": [".venv/bin/python", "-m", "delphiast.lsp_server"],
|
|
139
|
+
"extensions": [".pas", ".dpr", ".dpk", ".inc"],
|
|
140
|
+
"env": {
|
|
141
|
+
"PYTHONPATH": "."
|
|
142
|
+
},
|
|
143
|
+
"initialization": {
|
|
144
|
+
"includePaths": ["tests/fixtures", "tests/fixtures/legacy_snippets"],
|
|
145
|
+
"defines": []
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
On Windows checkout development, replace `.venv/bin/python` with
|
|
153
|
+
`.venv\\Scripts\\python.exe`. If `python-delphi-lsp` is installed normally, the
|
|
154
|
+
portable `["python", "-m", "delphiast.lsp_server"]` command above works without
|
|
155
|
+
`PYTHONPATH`.
|
|
156
|
+
|
|
157
|
+
For normal local opencode work, use the Ollama alias with a larger context and
|
|
158
|
+
enable opencode's experimental LSP tool when starting opencode:
|
|
111
159
|
|
|
112
160
|
```bash
|
|
161
|
+
OPENCODE_EXPERIMENTAL_LSP_TOOL=true opencode run --dir . --model ollama/ornith-lspctx
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
On Windows PowerShell:
|
|
165
|
+
|
|
166
|
+
```powershell
|
|
167
|
+
$env:OPENCODE_EXPERIMENTAL_LSP_TOOL = "true"
|
|
113
168
|
opencode run --dir . --model ollama/ornith-lspctx
|
|
114
169
|
```
|
|
115
170
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-delphi-lsp"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.1"
|
|
8
8
|
description = "Python Delphi/Object Pascal parser, semantic indexer, and language server."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-delphi-lsp
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Python Delphi/Object Pascal parser, semantic indexer, and language server.
|
|
5
5
|
Author: Dark Light
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -146,9 +146,64 @@ compiler defines through LSP initialization options when needed.
|
|
|
146
146
|
This repository includes an `opencode.json` that registers the Delphi LSP tool
|
|
147
147
|
and model aliases for local Ollama and vLLM endpoints.
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
To add the Delphi language server to another opencode project, install the
|
|
150
|
+
package in the Python environment used by opencode and add an `lsp.delphi`
|
|
151
|
+
entry to that project's `opencode.json`:
|
|
152
|
+
|
|
153
|
+
```json
|
|
154
|
+
{
|
|
155
|
+
"$schema": "https://opencode.ai/config.json",
|
|
156
|
+
"lsp": {
|
|
157
|
+
"delphi": {
|
|
158
|
+
"command": ["python", "-m", "delphiast.lsp_server"],
|
|
159
|
+
"extensions": [".pas", ".dpr", ".dpk", ".inc"],
|
|
160
|
+
"initialization": {
|
|
161
|
+
"includePaths": ["src", "lib"],
|
|
162
|
+
"defines": ["MSWINDOWS"]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Adjust `includePaths` and `defines` to match the Delphi project. For checkout
|
|
170
|
+
development, this repository's own `opencode.json` uses the local virtual
|
|
171
|
+
environment and sets `PYTHONPATH` so opencode loads the source tree directly:
|
|
172
|
+
|
|
173
|
+
```json
|
|
174
|
+
{
|
|
175
|
+
"lsp": {
|
|
176
|
+
"delphi": {
|
|
177
|
+
"command": [".venv/bin/python", "-m", "delphiast.lsp_server"],
|
|
178
|
+
"extensions": [".pas", ".dpr", ".dpk", ".inc"],
|
|
179
|
+
"env": {
|
|
180
|
+
"PYTHONPATH": "."
|
|
181
|
+
},
|
|
182
|
+
"initialization": {
|
|
183
|
+
"includePaths": ["tests/fixtures", "tests/fixtures/legacy_snippets"],
|
|
184
|
+
"defines": []
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
On Windows checkout development, replace `.venv/bin/python` with
|
|
192
|
+
`.venv\\Scripts\\python.exe`. If `python-delphi-lsp` is installed normally, the
|
|
193
|
+
portable `["python", "-m", "delphiast.lsp_server"]` command above works without
|
|
194
|
+
`PYTHONPATH`.
|
|
195
|
+
|
|
196
|
+
For normal local opencode work, use the Ollama alias with a larger context and
|
|
197
|
+
enable opencode's experimental LSP tool when starting opencode:
|
|
150
198
|
|
|
151
199
|
```bash
|
|
200
|
+
OPENCODE_EXPERIMENTAL_LSP_TOOL=true opencode run --dir . --model ollama/ornith-lspctx
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
On Windows PowerShell:
|
|
204
|
+
|
|
205
|
+
```powershell
|
|
206
|
+
$env:OPENCODE_EXPERIMENTAL_LSP_TOOL = "true"
|
|
152
207
|
opencode run --dir . --model ollama/ornith-lspctx
|
|
153
208
|
```
|
|
154
209
|
|
|
@@ -23,11 +23,11 @@ def test_lsp_console_script_dependencies_are_installed_by_default() -> None:
|
|
|
23
23
|
assert '"lsprotocol>=2023.0.1"' in project
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
def
|
|
26
|
+
def test_release_metadata_declares_1_0_1_and_windows_support() -> None:
|
|
27
27
|
pyproject = (ROOT / 'pyproject.toml').read_text(encoding='utf-8')
|
|
28
28
|
project = _section('project', pyproject)
|
|
29
29
|
|
|
30
|
-
assert 'version = "1.0.
|
|
30
|
+
assert 'version = "1.0.1"' in project
|
|
31
31
|
assert '"Operating System :: OS Independent"' in project
|
|
32
32
|
assert '"Operating System :: Microsoft :: Windows"' in project
|
|
33
33
|
assert '"Operating System :: MacOS"' in project
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/python_delphi_lsp.egg-info/top_level.txt
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/audit_delphi_language_features.py
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/bootstrap_vllm_opencode_test.ps1
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/scripts/summarize_opencode_request_payloads.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/constset.pas
RENAMED
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/dottedtypes.pas
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/endtoken.pas
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/experimentals.pas
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/include file2.inc
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/includefile.inc
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/includefile.pas
RENAMED
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/messagemethod.pas
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/multiline.pas
RENAMED
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/numbers.pas
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/pointerchars.pas
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/properties.pas
RENAMED
|
File without changes
|
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/tryexcept.pas
RENAMED
|
File without changes
|
{python_delphi_lsp-1.0.0 → python_delphi_lsp-1.0.1}/tests/fixtures/legacy_snippets/umlauts.pas
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|