Git Product home page Git Product logo

Comments (8)

xsrf avatar xsrf commented on September 25, 2024

Since I don't have any apple device it is hard for me to test... What EasyEDA Version is running in the Desktop Client? Have you updated to the latest version available? Hit "Help" - "About" in EasyEDA to get the Version.
Also please right click in EasyEDA somewhere (not in the editor) and hit "Developer Tool". Then go to the "Console" panel and type navigator.userAgent and hit enter. Please copy the userAgent string you get.

Also, have you tested it in the Browser? Does it work there?

from easyeda-svg-import.

turbobabr avatar turbobabr commented on September 25, 2024

FIY, just checked the extension on my macOS Mojave 10.14.6 using the latest version of desktop client - it works without any issues. May be it is some sort of subtle issue introduced by certain OS/Client versions?

from easyeda-svg-import.

xsrf avatar xsrf commented on September 25, 2024

@turbobabr thx for the test, what's the user agent of the browser in your client? I'm not sure, but the bundled browser may use components supplied by the OS.

@pastprimitive also, can you post a screenshot? Is the error shown in an alert box that EasyEDA generates within the UI, or is it shown in the developer console? Do you get the error right after you selected and opened all files for the install, or after you hit the Load Extension button? Is the extension id field filled with svgimport correctly after the files were selected?

from easyeda-svg-import.

turbobabr avatar turbobabr commented on September 25, 2024

@xsrf In my case it is listed as follows:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) EasyEDA/6.4.19.4 Chrome/78.0.3904.130 Electron/7.1.14 Safari/537.36 EasyEDA-Editor/6.4.19.4 (Halfline Mode)

In reality, every OS variation should get the same Chromium browser, since the EasyEDA client app is just a web site wrapped in ElectronJS shell. 🤔

The only code that is capable of producing such exception is this line in your auto update utils:
https://github.com/xsrf/easyeda-svg-import/blob/master/extension/easyeda-helper.js#L21

According to the code - that function isn't called at all but somehow manages to throw the error.

from easyeda-svg-import.

xsrf avatar xsrf commented on September 25, 2024

@turbobabr thx... I was wondering if it's this function because it's the only import keyword... but as you said, it never gets called. I just played around with dynamically loading JS modules from files that are installed along with the extension. But it's not used there... Also, import isn't that new 🤔https://caniuse.com/?search=import

from easyeda-svg-import.

turbobabr avatar turbobabr commented on September 25, 2024

@xsrf Mystery... 🙃

from easyeda-svg-import.

xsrf avatar xsrf commented on September 25, 2024

@pastprimitive to be on the safe side, this is version 1.7 with the import statement removed - does it install fine?

extension_1.7_no_import.zip

If it does, please go to the About dialog of the SVG Import Extension in the PCB Editor and copy the Browser-Info shown there.

from easyeda-svg-import.

xsrf avatar xsrf commented on September 25, 2024

@pastprimitive since I got no response and I have no idea how this error can even happen, I'll close this issue for now. Feel free to reopen / comment when you have had time to test the fix.

from easyeda-svg-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.