rictic / code_swarm Goto Github PK
View Code? Open in Web Editor NEWA (fork of a) slick visualization for your source code
Home Page: http://code.google.com/p/codeswarm/
License: Other
A (fork of a) slick visualization for your source code
Home Page: http://code.google.com/p/codeswarm/
License: Other
Android source is organized using repo over git. Would be nice to add support for repo so we can do android code visualizations.
grieve from stackoverflow said that he got an error creating an issue. I want to see if I can reproduce this.
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!
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.
(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:
java.com
didn't workSorry 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.
(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.
Hello,
code_swarm seems not to work with ssh authentication (svn+ssh:// links).
There was a fix in the original branche of code_swarm (https://code.google.com/p/codeswarm/issues/detail?id=51) but I can't seem to make it work.
(quick note, other repositories work, even with openjdk 7)
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.
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.