theacodes / kicanvas

The KiCAD web viewer
https://kicanvas.org
Other
609 stars 29 forks source link

Error: Unexpected character at index 16286 #52

Open Weissnix4711 opened 10 months ago

Weissnix4711 commented 10 months ago

Fails to open this project. No idea why, but it would be nice to see this working. Other projects seem to open just fine. Tried both browsers I currently have installed. Logs below.

Chromium:

Error: Unexpected character at index 16286: ·
Context: 
    (fp_text user · (at 0.275 -0.95 90) (layer F.SilkS)
    at tokenize (kicanvas.js:929:430)
    at Nn.next (<anonymous>)
    at listify_tokens (kicanvas.js:935:82)
    at Os.next (<anonymous>)
    at Function.from (<anonymous>)
    at listify_tokens (kicanvas.js:935:192)
    at Os.next (<anonymous>)
    at Function.from (<anonymous>)
    at listify_tokens (kicanvas.js:935:192)
    at Os.next (<anonymous>)
setup_project @ kicanvas.js:1783

LibreWolf:

Error: Unexpected character at index 16286: ·
Context: 
    (fp_text user · (at 0.275 -0.95 90) (layer F.SilkS)
    Nn https://kicanvas.org/kicanvas/kicanvas.js:929
    Os https://kicanvas.org/kicanvas/kicanvas.js:935
    Os https://kicanvas.org/kicanvas/kicanvas.js:935
    Os https://kicanvas.org/kicanvas/kicanvas.js:935
    Os https://kicanvas.org/kicanvas/kicanvas.js:935
    Us https://kicanvas.org/kicanvas/kicanvas.js:935
    g https://kicanvas.org/kicanvas/kicanvas.js:935
    Ve https://kicanvas.org/kicanvas/kicanvas.js:936
    #n https://kicanvas.org/kicanvas/kicanvas.js:971
kicanvas.js:1783:978
    setup_project https://kicanvas.org/kicanvas/kicanvas.js:1783
theacodes commented 10 months ago

Is this a KiCAD 5 project?

Weissnix4711 commented 10 months ago

Yes, I believe it is.

Weissnix4711 commented 10 months ago

Ah, I see #34 now. Is kicad 5 support planned/do you have an ETA? Purely out of interest, I'm not trying to pressure you or anything.

theacodes commented 10 months ago

No, KiCAD 5 support isn't in scope right now.

On Sat, Nov 4, 2023, 12:09 PM Thomas Aldrian @.***> wrote:

Ah, I see #34 https://github.com/theacodes/kicanvas/issues/34 now. Is kicad 5 support planned/do you have an ETA? Purely out of interest, I'm not trying to pressure you or anything.

— Reply to this email directly, view it on GitHub https://github.com/theacodes/kicanvas/issues/52#issuecomment-1793528161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5I43EKZC5PJJNFSWQN5LYC2HFBAVCNFSM6AAAAAA65SKX6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGUZDQMJWGE . You are receiving this because you commented.Message ID: @.***>

Weissnix4711 commented 10 months ago

No worries.

How hard do you think it would be to add support? Ie. Should I waste my time trying to learn about KiCAD's file formats, and understand this codebase, to try and add support myself? Or do you think I should not bother?

theacodes commented 10 months ago

V5 boards are relatively easier, but schematics are a vastly different format and would be much harder. I wouldn't try to do it at this point in KiCanvas's development.

On Sat, Nov 4, 2023, 2:43 PM Thomas Aldrian @.***> wrote:

No worries.

How hard do you think it would be to add support? Ie. Should I waste my time trying to learn about KiCAD's file formats, and understand this codebase, to try and add support myself? Or do you think I should not bother?

— Reply to this email directly, view it on GitHub https://github.com/theacodes/kicanvas/issues/52#issuecomment-1793562075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5I47G4ZXH5NNMU2DYTQLYC2ZH3AVCNFSM6AAAAAA65SKX6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGU3DEMBXGU . You are receiving this because you commented.Message ID: @.***>