ocp-vscode 2.3.2__tar.gz → 2.3.3__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.
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/PKG-INFO +2 -2
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/README.md +24 -1
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/__init__.py +1 -1
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/comms.py +10 -15
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/PKG-INFO +2 -2
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/requires.txt +1 -1
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/setup.cfg +1 -1
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/setup.py +2 -2
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/LICENSE +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/animation.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/backend.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/build123d.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/colors.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/config.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/daemonize.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/show.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/state.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/SOURCES.txt +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/dependency_links.txt +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/not-zip-safe +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/top_level.txt +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/test/test_for_backend.py +0 -0
- {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/test/testextension.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ocp_vscode
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.3
|
|
4
4
|
Summary: OCP CAD Viewer for VSCode
|
|
5
5
|
Home-page: https://github.com/bernhard-42/vscode-ocp-cad-viewer
|
|
6
6
|
Author: Bernhard Walter
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Requires-Python: >=3.9
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist: ocp-tessellate<2.4.0,>=2.3.
|
|
20
|
+
Requires-Dist: ocp-tessellate<2.4.0,>=2.3.3
|
|
21
21
|
Requires-Dist: requests
|
|
22
22
|
Requires-Dist: ipykernel
|
|
23
23
|
Requires-Dist: orjson
|
|
@@ -21,7 +21,7 @@ _OCP CAD Viewer_ for VS Code is an extension to show [CadQuery](https://github.c
|
|
|
21
21
|
|
|
22
22
|
### Installation
|
|
23
23
|
|
|
24
|
-
1. Open the VS Code Marketplace, and search and install _OCP CAD Viewer 2.3.
|
|
24
|
+
1. Open the VS Code Marketplace, and search and install _OCP CAD Viewer 2.3.3_.
|
|
25
25
|
|
|
26
26
|
Afterwards the OCP viewer is available in the VS Code sidebar:
|
|
27
27
|
|
|
@@ -200,8 +200,31 @@ NATIVE_TESSELLATOR=0 OCP_VSCODE_PYTEST=1 pytest -v -s pytests/
|
|
|
200
200
|
NATIVE_TESSELLATOR=1 OCP_VSCODE_PYTEST=1 pytest -v -s pytests/
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
+
|
|
204
|
+
## Troubleshooting
|
|
205
|
+
|
|
206
|
+
- **CAD Models almost always are invisible in the OCP viewer window**
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
three-cad-viewer.esm.js:20276 THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false
|
|
210
|
+
|
|
211
|
+
Material Name:
|
|
212
|
+
Material Type: LineBasicMaterial
|
|
213
|
+
|
|
214
|
+
Program Info Log: Program binary could not be loaded. Binary is not compatible with current driver/hardware combination. Driver build date Mar 19 2024. Please check build information of source that generated the binary.
|
|
215
|
+
Location of variable pc_fragColor conflicts with another variable.
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
VS Code internal browser that renders the viewer component uses a cache for code and other artifacts. This includes WebGL artefacts like compiled shaders. It can happen that e.g. due to a graphic driver update the compiled version in the cache does not fit to the new driver. Then this error message appears.
|
|
219
|
+
|
|
220
|
+
**Solution:** [Delete the VS Code browser cache on Linux](https://bobbyhadz.com/blog/vscode-clear-cache) (go to the section for your operating system)
|
|
221
|
+
|
|
203
222
|
## Changes
|
|
204
223
|
|
|
224
|
+
v2.3.3
|
|
225
|
+
- Fix regression that visual debug hangs
|
|
226
|
+
- Fix regression that build123d sketches are not draw correctly any more (fix in ocp-tessellate)
|
|
227
|
+
|
|
205
228
|
v2.3.2
|
|
206
229
|
- Fix regression that Python script hang in threading before exit ([#73](https://github.com/bernhard-42/vscode-ocp-cad-viewer/issues/60))
|
|
207
230
|
|
|
@@ -8,10 +8,7 @@ import socket
|
|
|
8
8
|
|
|
9
9
|
from pathlib import Path
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
# As soon as websockets 12.1 is released, replace with
|
|
13
|
-
# "from websockets.sync.client import connect"
|
|
14
|
-
from .daemonize import connect
|
|
11
|
+
from websockets.sync.client import connect
|
|
15
12
|
|
|
16
13
|
import orjson
|
|
17
14
|
from ocp_tessellate.utils import Timer
|
|
@@ -37,7 +34,6 @@ CMD_URL = "ws://127.0.0.1"
|
|
|
37
34
|
CMD_PORT = 3939
|
|
38
35
|
|
|
39
36
|
INIT_DONE = False
|
|
40
|
-
WS = None
|
|
41
37
|
|
|
42
38
|
#
|
|
43
39
|
# Send data to the viewer
|
|
@@ -136,22 +132,21 @@ def _send(data, message_type, port=None, timeit=False):
|
|
|
136
132
|
elif message_type == MessageType.CONFIG:
|
|
137
133
|
j = b"S:" + j
|
|
138
134
|
|
|
139
|
-
with Timer(timeit, "", f"websocket
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
WS.send(j)
|
|
135
|
+
with Timer(timeit, "", f"websocket connect ({message_type.name})", 1):
|
|
136
|
+
ws = connect(f"{CMD_URL}:{port}")
|
|
137
|
+
ws.send(j)
|
|
143
138
|
|
|
139
|
+
with Timer(timeit, "", f"websocket send {len(j)/1024/1024:.3f} MB", 1):
|
|
144
140
|
result = None
|
|
145
141
|
if message_type == MessageType.COMMAND:
|
|
146
142
|
try:
|
|
147
|
-
result = json.loads(
|
|
143
|
+
result = json.loads(ws.recv())
|
|
148
144
|
except Exception as ex: # pylint: disable=broad-except
|
|
149
145
|
print(ex)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
#
|
|
153
|
-
|
|
154
|
-
# pass
|
|
146
|
+
try:
|
|
147
|
+
ws.close()
|
|
148
|
+
except Exception as ex: # pylint: disable=bare-except
|
|
149
|
+
pass
|
|
155
150
|
|
|
156
151
|
return result
|
|
157
152
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ocp_vscode
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.3
|
|
4
4
|
Summary: OCP CAD Viewer for VSCode
|
|
5
5
|
Home-page: https://github.com/bernhard-42/vscode-ocp-cad-viewer
|
|
6
6
|
Author: Bernhard Walter
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Requires-Python: >=3.9
|
|
19
19
|
License-File: LICENSE
|
|
20
|
-
Requires-Dist: ocp-tessellate<2.4.0,>=2.3.
|
|
20
|
+
Requires-Dist: ocp-tessellate<2.4.0,>=2.3.3
|
|
21
21
|
Requires-Dist: requests
|
|
22
22
|
Requires-Dist: ipykernel
|
|
23
23
|
Requires-Dist: orjson
|
|
@@ -2,13 +2,13 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup_args = {
|
|
4
4
|
"name": "ocp_vscode",
|
|
5
|
-
"version": "2.3.
|
|
5
|
+
"version": "2.3.3",
|
|
6
6
|
"description": "OCP CAD Viewer for VSCode",
|
|
7
7
|
"long_description": "An extension to show OCP cad CAD objects (CadQuery, build123d) in VS Code via threejs",
|
|
8
8
|
"include_package_data": True,
|
|
9
9
|
"python_requires": ">=3.9",
|
|
10
10
|
"install_requires": [
|
|
11
|
-
"ocp-tessellate>=2.3.
|
|
11
|
+
"ocp-tessellate>=2.3.3,<2.4.0",
|
|
12
12
|
"requests",
|
|
13
13
|
"ipykernel",
|
|
14
14
|
"orjson",
|
|
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
|