Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCP Viewer stays empty after first install #112

Open
CePeU opened this issue Oct 21, 2024 · 2 comments
Open

OCP Viewer stays empty after first install #112

CePeU opened this issue Oct 21, 2024 · 2 comments
Labels
bug Something isn't working cantfix No idea how to solve this issue

Comments

@CePeU
Copy link

CePeU commented Oct 21, 2024

After a fresh install on Windows 10 (x86) after opening a "build123d.py" file the first time the OCP Viewer stays empty. The workaround is to close the OCP Viewert and save the ".py" file.

First install:

image

X'ing welcome window:

image

Checking installed plugins and build123d environment:

image

image

Loading first .py file --> OCP CAD Viewer is empty:

image

After closing the OCP CAD Viewer with X and saving the BeeBox.py OCP CAD Viewer ist correctly initialized:

image

Please note that with version 2.5.0 I also get an additional message that the syntax for the path name is wrong.

"Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch. -->
"The syntax for the file name, directory name or data carrier designation is incorrect."

The only difference seem to be the additional hypens the drive paths are now encased in. See picture below foOCP Cad Viewer 2.4.1

image

@CePeU
Copy link
Author

CePeU commented Oct 22, 2024

Ok I started an installed viewer and it worked and left a . ocpvscode file which was filled.
{
"3939": {
"roots": []
}
}
I then copied the file and deleted the .ocpvscode file.
I deleted . ocpvscode and did a full install of the portable setup. During setup phase a new totally empty 0 byte .ocpvscode was generated.
I overwrote that empty file with the copied one above.

I opened VsCode, I checked for the extensions and Xed the welcome screen.

I opened up a python file and I got a stuck viewer:
image

It tells me it started the backend viewer and also on which port.

THEN I tried to run the python file just to see what happens, and I get this output:

image

It claims it took the port from the config (and this seems to be true) but it also claims it could not access the viewer config. Is there one more config file?

@bernhard-42 bernhard-42 added the bug Something isn't working label Oct 25, 2024
@bernhard-42
Copy link
Owner

I unfortunately have no idea what happens here. I did several fresh installations with your installer and no place in VS Code showed any error. Since I do not understand what this portable setup does under the hood, I can only give up, sorry.

How about removing VS Code and using the standalone viewer?
User only needs to open the WinPython Terminal and type python -m ocp_vscode and open the browser?
Not suer it is better because then they need to choose an editor which respects the WinPython environment.
So again, no real idea ...

@bernhard-42 bernhard-42 added the cantfix No idea how to solve this issue label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cantfix No idea how to solve this issue
Projects
None yet
Development

No branches or pull requests

3 participants
@bernhard-42 @CePeU and others