discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Editing OpenSCAD files on MacOS using Visual Studio Code

LM
Leonard Martin Struttmann
Sun, Mar 23, 2025 11:05 PM

Good day!  I am having an issue editingOpenSCAD files on a MacBook Air M4.
I'd like to see if this is something that I need to configure, or if it is
a bug that needs to be reported.

I am using:

MacOS Sequoia 15.3.2
OpenSCAD version 2025.03.17
Visual Studio Code V1.98.2
OpenSCAD Language Support, Leathong, Version 1.2.5, Last Updated 2025-03-19,
12:15:22

Much to my disappointment, when editing an OpenSCAD file, the OUTLINE pane
on the left does not work. Instead, for me, it shows the message "No
symbols found in document".

  1. Is there a configuration setting that I need to set to enable the
    OUTLINE?
  2. Is anyone else having this issue?

BTW, the OUTLINE pane works great on Windows.

Thanks!

Len

Good day! I am having an issue editingOpenSCAD files on a MacBook Air M4. I'd like to see if this is something that I need to configure, or if it is a bug that needs to be reported. I am using: MacOS Sequoia 15.3.2 OpenSCAD version 2025.03.17 Visual Studio Code V1.98.2 OpenSCAD Language Support, Leathong, Version 1.2.5, Last Updated 2025-03-19, 12:15:22 Much to my disappointment, when editing an OpenSCAD file, the OUTLINE pane on the left does not work. Instead, for me, it shows the message "No symbols found in document". 1. Is there a configuration setting that I need to set to enable the OUTLINE? 2. Is anyone else having this issue? BTW, the OUTLINE pane works great on Windows. Thanks! Len
LM
Leonard Martin Struttmann
Mon, Mar 24, 2025 3:23 PM

Ok, I figured this out. The openscad-lsp executable supplied in the OpenScd
Extension could not run since it is of the incorrect CPU type.

So, on my MacBook Air M4, to fix issue of MacOS VS Code OpenSCAD extension
not providing auto-fill or symbols in outline:

  1. Install Rust per https://www.rust-lang.org/learn/get-started
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

  2. Install openscad-lsp per
    https://github.com/Leathong/openscad-LSP?tab=readme-ov-file
    cargo install openscad-lsp

  3. Move the executable:
    cd ~/.vscode/extensions/leathong.openscad-language-support-1.2.5/server
    mv openscad-lsp openscad-lsp-original
    mv ~/.cargo/bin/openscad-lsp .

  4. Restart Visual Studio Code

On Sun, Mar 23, 2025 at 6:05 PM Leonard Martin Struttmann <
lenstruttmann@gmail.com> wrote:

Good day!  I am having an issue editingOpenSCAD files on a MacBook Air M4.
I'd like to see if this is something that I need to configure, or if it is
a bug that needs to be reported.

I am using:

MacOS Sequoia 15.3.2
OpenSCAD version 2025.03.17
Visual Studio Code V1.98.2
OpenSCAD Language Support, Leathong, Version 1.2.5, Last Updated 2025-03-19,
12:15:22

Much to my disappointment, when editing an OpenSCAD file, the OUTLINE pane
on the left does not work. Instead, for me, it shows the message "No
symbols found in document".

  1. Is there a configuration setting that I need to set to enable the
    OUTLINE?
  2. Is anyone else having this issue?

BTW, the OUTLINE pane works great on Windows.

Thanks!

Len

Ok, I figured this out. The openscad-lsp executable supplied in the OpenScd Extension could not run since it is of the incorrect CPU type. So, on my MacBook Air M4, to fix issue of MacOS VS Code OpenSCAD extension not providing auto-fill or symbols in outline: 1. Install Rust per https://www.rust-lang.org/learn/get-started curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 2. Install openscad-lsp per https://github.com/Leathong/openscad-LSP?tab=readme-ov-file cargo install openscad-lsp 3. Move the executable: cd ~/.vscode/extensions/leathong.openscad-language-support-1.2.5/server mv openscad-lsp openscad-lsp-original mv ~/.cargo/bin/openscad-lsp . 4. Restart Visual Studio Code On Sun, Mar 23, 2025 at 6:05 PM Leonard Martin Struttmann < lenstruttmann@gmail.com> wrote: > Good day! I am having an issue editingOpenSCAD files on a MacBook Air M4. > I'd like to see if this is something that I need to configure, or if it is > a bug that needs to be reported. > > I am using: > > MacOS Sequoia 15.3.2 > OpenSCAD version 2025.03.17 > Visual Studio Code V1.98.2 > OpenSCAD Language Support, Leathong, Version 1.2.5, Last Updated 2025-03-19, > 12:15:22 > > Much to my disappointment, when editing an OpenSCAD file, the OUTLINE pane > on the left does not work. Instead, for me, it shows the message "No > symbols found in document". > > 1. Is there a configuration setting that I need to set to enable the > OUTLINE? > 2. Is anyone else having this issue? > > BTW, the OUTLINE pane works great on Windows. > > Thanks! > > Len > >