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

File "activity/exampleicon.svg" is Invalid #5

Open
faokryn opened this issue Nov 15, 2014 · 2 comments
Open

File "activity/exampleicon.svg" is Invalid #5

faokryn opened this issue Nov 15, 2014 · 2 comments

Comments

@faokryn
Copy link

faokryn commented Nov 15, 2014

The example icon file, found as "activity/exampleicon.svg" appears to be corrupt or invalid.

  • Opening in Mozilla Firefox yields the error message "XML Parsing Error: no element found"
  • Opening in Google Chrome yields the error message "This XML file does not appear to have any style information associated with it. The document tree is shown below." (nothing is shown below)
  • Opening in Adobe Illustrator CS5 yields the error message "This SVG is Invalid. Validate it before opening."
@faokryn
Copy link
Author

faokryn commented Nov 15, 2014

Note that the example icon found at "example/test/activity/activity-generic.svg" appears to be a valid .svg file.

@jks7743
Copy link

jks7743 commented May 8, 2019

I know that this thread is old, but here's some more info on this as well as a possible fix.

  • The svg file for the activity is completely empty according to github, which explains on why you're having trouble opening it.
  • After running the three commands listed to setup the activity : ./setup.py genpot ./setup.py build ./setup.py dev with no errors, the activity does show up in the sugar hamburger menu as "example" but with no icon.
  • Trying to run the program from the menu produces this error
    sugar_example_error
  • Trying to run the program via the terminal command sugar-activity from the root folder of the project produces this error:
    image
  • It's unclear whether or not this is intentional since there's an explanation on how to make svg files in the readme.
  • I was able to fix it by
    1. Copying over the "activity-genertic.svg" into "exampleicon.svg",
    2. Re-running the two first build commands: ./setup.py genpot ./setup.py build
  • After doing these two things the activity runs fine and doesn't crash in the terminal.
    I however, was unable to get it to run properly from the hamburger menu, and it seems that sugar isn't updating the bundled version, and wont let me re-run setup.py dev again. Instead producing the error ERROR - The bundle has been already setup for development.
    I'm going to submit a pull request with the changes in case the blank svg file wasn't intentional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants