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.
Files changed (23) hide show
  1. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/PKG-INFO +2 -2
  2. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/README.md +24 -1
  3. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/__init__.py +1 -1
  4. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/comms.py +10 -15
  5. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/PKG-INFO +2 -2
  6. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/requires.txt +1 -1
  7. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/setup.cfg +1 -1
  8. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/setup.py +2 -2
  9. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/LICENSE +0 -0
  10. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/animation.py +0 -0
  11. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/backend.py +0 -0
  12. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/build123d.py +0 -0
  13. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/colors.py +0 -0
  14. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/config.py +0 -0
  15. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/daemonize.py +0 -0
  16. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/show.py +0 -0
  17. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode/state.py +0 -0
  18. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/SOURCES.txt +0 -0
  19. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/dependency_links.txt +0 -0
  20. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/not-zip-safe +0 -0
  21. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/ocp_vscode.egg-info/top_level.txt +0 -0
  22. {ocp_vscode-2.3.2 → ocp_vscode-2.3.3}/test/test_for_backend.py +0 -0
  23. {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.2
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.2
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.2_.
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
 
@@ -15,7 +15,7 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- __version__ = "2.3.2"
18
+ __version__ = "2.3.3"
19
19
 
20
20
  import os
21
21
 
@@ -8,10 +8,7 @@ import socket
8
8
 
9
9
  from pathlib import Path
10
10
 
11
- # TODO:
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 send {len(j)/1024/1024:.3f} MB", 1):
140
- if WS is None:
141
- WS = connect(f"{CMD_URL}:{port}")
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(WS.recv())
143
+ result = json.loads(ws.recv())
148
144
  except Exception as ex: # pylint: disable=broad-except
149
145
  print(ex)
150
-
151
- # try:
152
- # ws.close()
153
- # except Exception as ex: # pylint: disable=bare-except
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.2
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.2
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
@@ -1,4 +1,4 @@
1
- ocp-tessellate<2.4.0,>=2.3.2
1
+ ocp-tessellate<2.4.0,>=2.3.3
2
2
  requests
3
3
  ipykernel
4
4
  orjson
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 2.3.2
2
+ current_version = 2.3.3
3
3
  commit = False
4
4
  tag = False
5
5
  parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<release>\D*)(?P<build>\d*)
@@ -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.2",
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.2,<2.4.0",
11
+ "ocp-tessellate>=2.3.3,<2.4.0",
12
12
  "requests",
13
13
  "ipykernel",
14
14
  "orjson",
File without changes