Skip to content

Persistent SyntaxError and Path Reset in OpenStudio SketchUp Extension (v1.10/v1.11) - SketchUp 2021 #165

@samanthaorui

Description

@samanthaorui

Hi everyone,

I am experiencing a persistent issue with the OpenStudio SketchUp Extension (tried both v1.10.0 and v1.11.0) on SketchUp 2021 (Windows 11).

The Problem: Every time I launch SketchUp, the extension fails to load the OpenStudio SDK and prompts for the "Path to OpenStudio Root Directory". Even when providing the correct path (e.g., C:/openstudioapplication-1.11.0-rc2), it fails with a SyntaxError.

Error Log:

Ruby
Error: #<SyntaxError:

: syntax error, unexpected local variable or method, expecting end-of-input
C:/openstudioapplication-1.11.0-rc2
^~~~~~~~~~~~~~~~~~~~~

.../OpenStudio/Startup.rb:12:in eval' .../OpenStudio/Startup.rb:12:in read_default'
What I’ve Observed:

JSON Corruption: In PrivatePreferences.json, the extension seems to be saving the path or version with escaped quotes (e.g., "Plugin Version": ""1.10.0"") or backslashes that Ruby's eval in Startup.rb cannot process.

Backslash vs. Forward Slash: Even when I manually enter the path with forward slashes in the UI or via Ruby Console (Sketchup.write_default), the error persists or the file is overwritten/reset upon restart.

Legacy Version: Interestingly, OpenStudio v1.7.0 works without these errors, but I need the newer SDK (3.7.0) to maintain compatibility with my .osm models.

System Info:
SketchUp Pro 2021
OpenStudio SketchUp Extension 1.10.0 / 1.11.0
Windows 11

Has anyone encountered this eval syntax error in Startup.rb? Is there a specific way to format the PrivatePreferences.json or a system environment variable that might be forcing this behavior?

Thanks in advance for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions