Coder Social home page Coder Social logo

code_swarm's People

Contributors

bikegriffith avatar cburroughs avatar fbk-zz avatar felipec avatar gmcnew avatar holzman avatar kumpera avatar longbai avatar mdippery avatar rictic avatar sandofsky avatar xaviershay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

code_swarm's Issues

codeswarm for repo

Android source is organized using repo over git. Would be nice to add support for repo so we can do android code visualizations.

Error: "tried to access field processing.core.PFont.size from class code_swarm"

I'm running OS X 10.10.2, I've upgraded and migrated my development files through a few computers.

When I ran code_swarm (after some other troubleshooting) I got this error:

Exception in thread "Animation Thread" java.lang.IllegalAccessError: tried to access field processing.core.PFont.size from class code_swarm
    at code_swarm.drawLegend(code_swarm.java:537)
    at code_swarm.draw(code_swarm.java:426)
    at processing.core.PApplet.handleDraw(PApplet.java:2306)
    at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
    at processing.core.PApplet.run(PApplet.java:2177)
    at java.lang.Thread.run(Thread.java:695)

I've determined that this is probably pointing at a call to the function font.getSize().

The last time this was edited was in pull request #14 by @longbai. When I checked out commit 70867b3a and tried it, everything works again! I don't know enough java to troubleshoot this any further on my own. I'm happy to provide more information about my programming environment if that would help!

The histogram should be more configurable

HistoryWidth should be a configuration option, specifying the number of pixels wide the histogram should take up.

HistogramEventsPerPixelHigh should be a configuration option, specifying the number of edit events that should correspond to a single pixel, in order to keep the height of the histogram under control. By default, it should be 1. Floating point values should be allowed.

Can't find _CGContextSetAllowsAcceleration

(I already solved this problem, just posting for other people).

I'm running OS X 10.10.2, I've upgraded and migrated my development files through a few computers.

When I ran code_swarm I got this error:

dyld: lazy symbol binding failed: Symbol not found: _CGContextSetAllowsAcceleration
  Referenced from: /Library/Java/JavaVirtualMachines/1.6.0_32-b05-420.jdk/Contents/Libraries/libawt.jnilib
  Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices

I googled and solved this problem by updating my version of Java. I tried two updates, only one worked:

  • The update from Apple's site did work.
  • The most current update from java.com didn't work

No default avatars / preserve avatar transparency

Sorry if this isn't the appropriate place to report code_swarm issues. This fork is more active than the mainline on Google Code so I figure I'll report here.

When visualizing a large repository where most of the committers don't have gravatars, I find its less clutter to have a blank default avatar rather than using an identicon or similar. See http://schwern.net/tmp/perl5.avi for an example.

I tried a 40x40 transparent png and that showed up as a white square. A 1x1 transparent pixel showed up as a dot. A 1x1 black pixel was the least obtrusive, but it doesn't work with circular avatars (next bug).

It would be nice if either A) avatar transparency was preserved or B) you could turn off default avatars. A would be nice in general.

[Fatal Error] log.xml:1:1: Premature end of file.

(I've solved the issue for myself, just posting this for other people. I'm sure this could be solved more permanently, but I'll go ahead and close the issue since there's a workaround.)

I'm running OS X 10.10.2, I've upgraded and migrated my development files through a few computers. When upgrading I brought my code repositories with me. They had a .code_swarm folder still, ignored.

When I ran code_swarm I got this error:

[Fatal Error] log.xml:1:1: Premature end of file.
Error parsing xml:
org.xml.sax.SAXParseException: Premature end of file.
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1161)
    at code_swarm$XMLQueueLoader.run(code_swarm.java:1085)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:695)

I solved this issue by removing the file .code_swarm/log.xml in the repo. I'll have to do this for every repo I've used code_swarm with.

CircularAvatars requires exact pixel size

Using CircularAvatars and a 1x1 black default.png (to make it effectively invisible) I got:

Exception in thread "Animation Thread" java.lang.RuntimeException: The PImage used with mask() must be the same size as the applet.
at processing.core.PImage.mask(PImage.java:599)
at processing.core.PImage.mask(PImage.java:614)
at code_swarm$PersonNode.(code_swarm.java:1503)
at code_swarm.update(code_swarm.java:740)
at code_swarm.draw(code_swarm.java:382)
at processing.core.PApplet.handleDraw(PApplet.java:1395)
at processing.core.PApplet.run(PApplet.java:1300)
at java.lang.Thread.run(Thread.java:637)

It would be nice if CircularAvatars did not restrict the avatar size.

Invalid Argument error

I have all the env ready for ant, ruby, python 2.7.1 on Mac, but I can't get this code_swarm command to run even on code_swarm repo itself. Not sure why. I tried to manually generate activity.log file through
git log --name-status --pretty=format:'%n--------------------------%nr%h | %ae | %ai (%aD) | x lines%nChanged paths:' > activity.log
But convert_logs.py can't convert that into event.xml
I'm not sure what's going on.

Error:

Creating default config file at /path/to/code_swarm/bin/code_swarm/.code_swarm/project.config
Traceback (most recent call last):
  File "/path/to/code_swarm/bin/code_swarm", line 245, in <module>
    main()
  File "/path/to/code_swarm/bin/code_swarm", line 76, in main
    proj_cfg = autogenerate_files(options)
  File "/path/to/code_swarm/bin/code_swarm", line 181, in autogenerate_files
    cp_tpl = os.path.join(root_path(), "bin", "config.template")
  File "/path/to/code_swarm/bin/code_swarm", line 99, in root_path
    real_path = os.path.join(os.path.dirname(__file__), os.readlink(__file__))
OSError: [Errno 22] Invalid argument: '/path/to/code_swarm/bin/code_swarm'

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.