Giter Site home page Giter Site logo

collide's People

Contributors

donjaime avatar dragonsinth avatar dskloet avatar fka3 avatar jasonparekh avatar luscoma avatar wetherbeei avatar

collide's Issues

Can't login in Opera

Using Opera 12.00 on Ubuntu 11.04 x64 and Windows 7 x64, you can't get past the 
login screen.
Clicking the "let me in button" doesn't do anything.

This is running bf8bb62, both with and without the firefox.patch from issue#25.

Original issue reported on code.google.com by [email protected] on 29 Jul 2012 at 12:47

All files disappear when deleting single file

What steps will reproduce the problem?
1. Open dir with 3 files, e.g a.txt, b.txt, c.txt
2. Remove single file, e.g. a.txt

What is the expected output? What do you see instead?
All files disappear in Collide, even though only a.txt was really removed

What version of the product are you using? On what operating system?
git master branch, Mac OSX

Original issue reported on code.google.com by [email protected] on 27 Oct 2012 at 11:05

lib/vertx/bin/vertx not compatible with 'dash' on debian.

What steps will reproduce the problem?
1. ./collide

What is the expected output? What do you see instead?
I see this:
./lib/vertx/bin/vertx: 40: [: run: unexpected operator
./lib/vertx/bin/vertx: 40: [: bootstrap.js: unexpected operator
./lib/vertx/bin/vertx: 40: [: -conf: unexpected operator
./lib/vertx/bin/vertx: 40: [: /tmp/collide.IYz3DmLjPq: unexpected operator
./lib/vertx/bin/vertx: 40: [: -cp: unexpected operator
./lib/vertx/bin/vertx: 40: [: 
.:./lib/gwt-user.jar:./lib/collide-server.jar:./lib/guava-12.0.jar:./lib/gson-2.
2.1.jar:./lib/jsr305.jar:./lib/org.eclipse.jgit-1.3.0.201202151440-r.jar:./lib/w
aveinabox-import-0.3.jar: unexpected operator

What version of the product are you using? On what operating system?
2012-07-07, debian linux

Please provide any additional information below.
If you change the first line of the script to #!/bin/bash then the script runs 
normally. Debian uses 'dash' instead of 'bash' for /bin/sh and the script uses 
a bash-specific behaviour to work.

Original issue reported on code.google.com by [email protected] on 10 Jul 2012 at 8:34

There are no way to change listen address/port

What steps will reproduce the problem?
1. download, start

What is the expected output? What do you see instead?
a flag to do so, for example:
./collide 0.0.0.0:80

What version of the product are you using? On what operating system?
2012-07-07

Please provide any additional information below.


Original issue reported on code.google.com by kiswono on 24 Apr 2014 at 8:38

ant build test fails for clean build due to expecting a directory to exist

What steps will reproduce the problem?
1. git pull the project
2. ant dist
3. ant build test

What is the expected output? What do you see instead?
a completed compilation of all the tests, instead it fails with the message:

BUILD FAILED
/home/alusco/Documents/collide/javatests/com/google/collide/server/api/build.xml
:13: Directory does not exist: 
/home/alusco/Documents/collide/bin/test/classes/com/google/collide/server/api

Line 13 is this:
<!-- Clean up the destination so we know exactly what's there.
         Otherwise, prior test runs might leave junk. -->
<delete includeemptydirs="true">
  <fileset dir="${api_tests.out}" includes="**/*"/>
</delete>

In the case of never building the tests before the directory 
bin/test/classes/com/google/collide/server and 
bin/test/classes/com/google/collide/server/api do not exist so it seems like 
the delete rule fails.

Workaround:
just mkdir bin/test/classes/google/collide/server then mkdir 
bin/test/classes/com/google/collide/server/api

This occurs on ubuntu lucid 10.04


Original issue reported on code.google.com by [email protected] on 9 Jul 2012 at 7:34

Build a sandbox for running file_tree_test.js

Currently, breaking / failing halfway through file_tree_test.js can leave you 
in a state where you can't successfully start running the next time.  I should:

1) Nuke+recreate a sandbox testing folder at the start of the run.

2) Maybe create a few 'seed' files.

3) Run the test inside that sandbox.

Original issue reported on code.google.com by dragonsinth on 7 Jul 2012 at 11:35

Can't login in IE

Using IE 9 on Windows 7, I couldn't get past the "Connecting..." screen.

This is running bf8bb62 + firefox.patch from issue#25

Original issue reported on code.google.com by [email protected] on 29 Jul 2012 at 12:43

Underscores not displayed properly by the code editor

What steps will reproduce the problem?
1. Open a file in the collide editor window
2. Find a line that includes an underscore, or type one

What is the expected output? What do you see instead?

You should see an underscore character.

What version of the product are you using? On what operating system?

Latest collide server running on Ubuntu 12.04. The client is Windows 7 on 
Chrome version 20.0.1132.43 beta-m

Original issue reported on code.google.com by [email protected] on 9 Jul 2012 at 7:08

Exception for selection movement

Saw this when joining a collaborative session. The old window that I was typing 
in ended up orphaned and unable to push mutations to the edit session.

[New I/O  worker #2] 19:21:07,173 SEVERE 
Exception in Java verticle script
java.lang.NullPointerException
    at com.google.collide.server.documents.EditSessions$DocumentMutator.applyMutation(EditSessions.java:118)
    at com.google.collide.server.documents.EditSessions$DocumentMutator.access$600(EditSessions.java:80)
    at com.google.collide.server.documents.EditSessions$DocOpRecoverer.handle(EditSessions.java:184)
    at com.google.collide.server.documents.EditSessions$DocOpRecoverer.handle(EditSessions.java:165)
    at org.vertx.java.core.eventbus.impl.DefaultEventBus$7.run(DefaultEventBus.java:601)
    at org.vertx.java.core.impl.Context$2.run(Context.java:119)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processEventQueue(AbstractNioWorker.java:360)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:244)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

Original issue reported on code.google.com by [email protected] on 5 Jul 2012 at 11:24

Move directory on Windows throws AccessDeniedException

This is a placeholder for a sketchily-reported bug from Scott Blum, July 9th at 
https://groups.google.com/forum/?fromgroups#!topic/collide-discuss/DzdngWyH1SA:

1) Fixes for bugs and race conditions in the file system code.  For example, if 
you try move a directory on a Windows box, you get an AccessDeniedException.  I 
won't be able to debug this myself since I'm losing access to Windows soon.

Original issue reported on code.google.com by [email protected] on 12 Jul 2012 at 9:16

Code review request

http://code.google.com/p/collide/source/list?name=ant-fixes
Branch name: ant-fixes

http://code.google.com/p/collide/source/list?name=ant-fixes

Purpose of code changes on this branch:

UTF-8 encoding; use older style source/target spec for 1.7.
Whitespace fixes.

After the review, I'll merge this branch into:
/trunk


Original issue reported on code.google.com by dragonsinth on 6 Jul 2012 at 3:26

Move collide and bootstrap.js into a subfolder

People will naively try to run collide from the source root.  We need to move 
those scripts into some subfolder to hide them from view, and copy them over 
during the dist process.

Original issue reported on code.google.com by dragonsinth on 4 Jul 2012 at 8:47

ant dist fails to pick the right version of java?

$ ant dist
Buildfile: /home/hemanth/lab/collide/build.xml

src.shared.build:
    [mkdir] Created dir: /home/hemanth/lab/collide/bin/classes
    [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
    [javac] Compiling 63 source files to /home/hemanth/lab/collide/bin/classes

BUILD FAILED
/home/hemanth/lab/collide/java/com/google/collide/shared/build.xml:7: The 
following error occurred while executing this line:
/home/hemanth/lab/collide/macros.ant.xml:89: Class not found: javac1.7

Total time: 1 second

$ uname -a
Linux hemanth-OptiPlex-755 2.6.35-32-generic #65-Ubuntu SMP Tue Jan 24 13:48:14 
UTC 2012 i686 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.10
Release:    10.10
Codename:   maverick

$ javac -version
javac 1.7.0_03

$ java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) Server VM (build 22.1-b02, mixed mode)



Original issue reported on code.google.com by [email protected] on 5 Jul 2012 at 5:25

Top level build should immediately create the directories Eclipse needs

I tryed to clone the code to my pc via git. Then i tryed to import the project 
to eclipse. Now Eclipse say that com.google.collide.dto.client.DtoClientImpls 
is missing. And y there is no such package. 

Then i tryed to start Ant but BUILD FAILED with:

F:\java\collide\java\com\google\collide\dto\build.xml:54: The following error 
occurred while executing this line:
F:\java\collide\macros.ant.xml:103: Error running javac.exe compiler

I use 
Eclipse 4.2
JRE 7
Win 7



Original issue reported on code.google.com by [email protected] on 11 Jul 2012 at 5:55

Ant build failed if path contains "gen"

What steps will reproduce the problem?
1. git clone http://xxxx/collide 
2. cd collide 
3. ant dist

"......
src.dto.client:
    [mkdir] Created dir: /home/ligen/works/gitroot/collide/bin/gen/com/google/collide/dto/client
    [javac] Compiling 1 source file to /home/ligen/works/gitroot/collide/bin/classes
    [javac] Compiling 2 source files to /home/ligen/works/gitroot/collide/bin/classes
    [javac] /home/ligen/works/gitroot/collide/java/com/google/collide/dto/client/ClientDocOpFactory.java:25: error: package com.google.collide.dto.client.DtoClientImpls does not exist
    [javac] import com.google.collide.dto.client.DtoClientImpls.DeleteImpl;
    [javac]                                                    ^
    [javac] /home/ligen/works/gitroot/collide/java/com/google/collide/dto/client/ClientDocOpFactory.java:26: error: package com.google.collide.dto.client.DtoClientImpls does not exist
......."

I found DtoClientImpls class has been compiled into:
~/works/gitroot/collide/bin/classes/works/gitroot/collide/bin/gen/com/google/col
lide/dto/client
however, it should have been compiled into :
~/works/gitroot/collide/bin/classes/com/google/collide/dto/client

Is there something env vars which need to be set before? or there are some 
problem with build.xml?


What version of the product are you using? On what operating system?
OS: ubuntu 12.04 
      Apache Ant(TM) version 1.8.2 compiled on December 3 2011
     OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3)

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 11 Jul 2012 at 4:11

Remove the header.

- Move the run button to the editor panel as a simple "preview this file" 
button.
- Make the awesome box a free floating input box that becomes visible on 
alt+enter
- Remove the header.


Original issue reported on code.google.com by [email protected] on 4 Jul 2012 at 5:22

webroot directory config change doest not apply

What steps will reproduce the problem?
1. open collide starting file
2. change WEBROOT="/some/static/path"
3. start collide
4. find yourself always in the default dir (where collide is)

What is the expected output? What do you see instead?
open collide => find yourself in /some/static/path and not in the collide dir

What version of the product are you using? On what operating system?
collide-dist-2012-07-07.tar.bz2
debian squeeze 64bit

Please provide any additional information below.
JAVA:
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)


if any more needed just ask

Original issue reported on code.google.com by [email protected] on 11 Jul 2012 at 4:48

Enable password protection

Running collide on an intranet would be fine, but in order to use in 
production, it has to be secure.  

Workaround: Proxy all requests through another server with auth, and use a 
filter to deny all requests that don't come from your proxy.

Looking in bootstrap.js I saw:


  // This defines which messages from the client we will let through, as well as what
  // messages we want to let through to the client from the server.

  // TODO: Fill this in. Currently allowing EVERYTHING "{}" through.
  // TODO: We should auto-generate this.
  in_permitted: [
    {}
  ],
  out_permitted: [
    {}
  ]

var participantListConfig = {
  // TODO: Pick this up off the command line when launching collide.
  // password="s3cret"
}


This looks like it will do what I need, but I don't know how to use it yet!


Original issue reported on code.google.com by [email protected] on 5 Jul 2012 at 6:38

List of collaborators doesn't update

If you open the "Collaborate" list, you only see those people that were online 
when you did this (or at page load?), rather than those that are online now.

This is running bf8bb62 + firefox.patch from issue#25

Original issue reported on code.google.com by [email protected] on 29 Jul 2012 at 1:16

Make testlets run on Windows

They don't run now, due to run_api_test script.

Probably pure ant is the right way to go.

Original issue reported on code.google.com by dragonsinth on 7 Jul 2012 at 11:37

Need top level ant target to produce a binary (was: Release tarball does not have containing directory)

What steps will reproduce the problem?
1. cd ~/src
2. tar -xvf ~/Downloads/collide-dist-2012-07-07.tar.bz2
3. mutter, then clean up all the trash that's been littered in my src directory.

What is the expected output? What do you see instead?
100s of lines like:
./collide-dist-2012-07-07/bootstrap.js

instead I see 100s of lines like: 
./bootstrap.js

What version of the product are you using? On what operating system?
2012-07-07, linux.

Please provide any additional information below.
Always include the containing directory in tarballs.

Original issue reported on code.google.com by [email protected] on 10 Jul 2012 at 8:28

Bug in Cookies.java

What steps will reproduce the problem?
1. Download last server version
2. Run 'Collide.bat'
3. Open http://localhost:8080 in Chrome 20

What is the expected output? What do you see instead?
Chrome show me a 'Fail on load page' after a lot of time.

What version of the product are you using? On what operating system?
Version: last binary 
(http://code.google.com/p/collide/downloads/detail?name=collide-dist-2012-07-07.
tar.bz2&can=2&q=)
OS: Windows 7, 64 bits

Please provide any additional information below.
Console output

Started
[New I/O  worker #8] 18:04:25,663 SEVERE [deployment-355c066f-b132-4737-8e08-4ec
11d51108f-2]  Exception in Java verticle script
java.lang.ArrayIndexOutOfBoundsException: 1
        at com.google.collide.server.fe.Cookie.extractCookies(Cookie.java:42)
        at com.google.collide.server.fe.Cookie.getCookie(Cookie.java:52)
        at com.google.collide.server.fe.WebFE.authAndWriteHostPage(WebFE.java:13
6)
        at com.google.collide.server.fe.WebFE.handle(WebFE.java:110)
        at com.google.collide.server.fe.WebFE.handle(WebFE.java:46)
        at org.vertx.java.core.http.RouteMatcher.route(RouteMatcher.java:349)
        at org.vertx.java.core.http.RouteMatcher.handle(RouteMatcher.java:68)
        at org.vertx.java.core.http.RouteMatcher.handle(RouteMatcher.java:49)
        at org.vertx.java.core.http.impl.ServerConnection.handleRequest(ServerCo
nnection.java:123)
        at org.vertx.java.core.http.impl.ServerConnection.processMessage(ServerC
onnection.java:246)
        at org.vertx.java.core.http.impl.ServerConnection.handleMessage(ServerCo
nnection.java:95)
        at org.vertx.java.core.http.impl.DefaultHttpServer$ServerHandler.message
Received(DefaultHttpServer.java:540)
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(S
impleChannelUpstreamHandler.java:75)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:564)
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerC
ontext.sendUpstream(DefaultChannelPipeline.java:792)
        at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(Chu
nkedWriteHandler.java:141)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:564)
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerC
ontext.sendUpstream(DefaultChannelPipeline.java:792)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:29
6)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMe
ssageReceived(ReplayingDecoder.java:613)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Repl
ayingDecoder.java:597)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived
(ReplayingDecoder.java:450)
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(S
impleChannelUpstreamHandler.java:75)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:564)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:559)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:26
8)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:25
5)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedK
eys(AbstractNioWorker.java:372)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioW
orker.java:246)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)
        at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnabl
e.java:102)
        at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProof
Worker.java:42)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[New I/O  worker #6] 18:08:39,598 SEVERE [deployment-355c066f-b132-4737-8e08-4ec
11d51108f-4]  Exception in Java verticle script
java.lang.ArrayIndexOutOfBoundsException: 1
        at com.google.collide.server.fe.Cookie.extractCookies(Cookie.java:42)
        at com.google.collide.server.fe.Cookie.getCookie(Cookie.java:52)
        at com.google.collide.server.fe.WebFE.authAndWriteHostPage(WebFE.java:13
6)
        at com.google.collide.server.fe.WebFE.handle(WebFE.java:110)
        at com.google.collide.server.fe.WebFE.handle(WebFE.java:46)
        at org.vertx.java.core.http.RouteMatcher.route(RouteMatcher.java:349)
        at org.vertx.java.core.http.RouteMatcher.handle(RouteMatcher.java:68)
        at org.vertx.java.core.http.RouteMatcher.handle(RouteMatcher.java:49)
        at org.vertx.java.core.http.impl.ServerConnection.handleRequest(ServerCo
nnection.java:123)
        at org.vertx.java.core.http.impl.ServerConnection.processMessage(ServerC
onnection.java:246)
        at org.vertx.java.core.http.impl.ServerConnection.handleMessage(ServerCo
nnection.java:95)
        at org.vertx.java.core.http.impl.DefaultHttpServer$ServerHandler.message
Received(DefaultHttpServer.java:540)
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(S
impleChannelUpstreamHandler.java:75)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:564)
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerC
ontext.sendUpstream(DefaultChannelPipeline.java:792)
        at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(Chu
nkedWriteHandler.java:141)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:564)
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerC
ontext.sendUpstream(DefaultChannelPipeline.java:792)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:29
6)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMe
ssageReceived(ReplayingDecoder.java:613)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Repl
ayingDecoder.java:597)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived
(ReplayingDecoder.java:450)
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(S
impleChannelUpstreamHandler.java:75)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:564)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:559)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:26
8)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:25
5)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedK
eys(AbstractNioWorker.java:372)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioW
orker.java:246)
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)
        at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnabl
e.java:102)
        at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProof
Worker.java:42)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by [email protected] on 9 Jul 2012 at 9:11

Ant build failed, reopen issue of 31

What steps will reproduce the problem?
1. git clone http://xxxx/collide 
2. cd collide 
3. ant dist

"......
src.dto.client:
    [mkdir] Created dir: /home/ligen/works/gitroot/collide/bin/gen/com/google/collide/dto/client
    [javac] Compiling 1 source file to /home/ligen/works/gitroot/collide/bin/classes
    [javac] Compiling 2 source files to /home/ligen/works/gitroot/collide/bin/classes
    [javac] /home/ligen/works/gitroot/collide/java/com/google/collide/dto/client/ClientDocOpFactory.java:25: error: package com.google.collide.dto.client.DtoClientImpls does not exist
    [javac] import com.google.collide.dto.client.DtoClientImpls.DeleteImpl;
    [javac]                                                    ^
    [javac] /home/ligen/works/gitroot/collide/java/com/google/collide/dto/client/ClientDocOpFactory.java:26: error: package com.google.collide.dto.client.DtoClientImpls does not exist
......."

I found DtoClientImpls class has been compiled into:
~/works/gitroot/collide/bin/classes/works/gitroot/collide/bin/gen/com/google/col
lide/dto/client
however, it should have been compiled into :
~/works/gitroot/collide/bin/classes/com/google/collide/dto/client

Is there something env vars which need to be set before? or there are some 
problem with build.xml?


What version of the product are you using? On what operating system?
OS: ubuntu 12.04 
      Apache Ant(TM) version 1.8.2 compiled on December 3 2011
     OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3)


I have finally found the resolution of this problem. This problem is cause by 
the line in build.xml like this:
   "<arg value="--package_base=gen/"/>"   
and in my path string 
"/home/ligen/works/gitroot/collide/bin/gen/com/google/collide/dto/client", you 
can see my home directory string  "/home/ligen/" match the package_base string 
"gen/", this cause DtoGenerator generate wrong path of DtoClientImpls.java.

I provide a patch here. could you fix this defect? otherwise, I have to change 
my name :P.   


diff --git a/java/com/google/collide/dto/build.xml 
b/java/com/google/collide/dto/build.xml
index abd04f5..b31b5d5 100644
--- a/java/com/google/collide/dto/build.xml
+++ b/java/com/google/collide/dto/build.xml
@@ -49,7 +49,7 @@
                <arg value="--dto_jar=${dirs.bin}/${dirs.toppkg}/dto/dto-interfaces.jar"/>
           <arg value="--gen_file_name=${dirs.gen}/${dirs.toppkg}/dto/client/DtoClientImpls.java"/>
           <arg value="--impl=client"/>
-          <arg value="--package_base=gen/"/>
+          <arg value="--package_base=${dirs.gen}/"/>
         </java>
         <do.javac srcdir="${dirs.gen}" destdir="${dirs.bin}">
           <include name="${dirs.toppkg}/dto/client/**/*.java"/>
@@ -87,7 +87,7 @@
           <arg value="--dto_jar=${dirs.bin}/${dirs.toppkg}/dto/dto-interfaces.jar"/>
          <arg value="--gen_file_name=${dirs.gen}/${dirs.toppkg}/dto/server/DtoServerImpls.java"/>
           <arg value="--impl=server"/>
-          <arg value="--package_base=gen/"/>
+          <arg value="--package_base=${dirs.gen}/"/>
         </java>
         <do.javac srcdir="${dirs.gen}" destdir="${dirs.bin}">
           <include name="${dirs.toppkg}/dto/server/**/*.java"/>
diff --git a/java/com/google/collide/dtogen/DtoGenerator.java 
b/java/com/google/collide/dtogen/DtoGenerator.java
index e51b459..b6ee5d4 100644
--- a/java/com/google/collide/dtogen/DtoGenerator.java
+++ b/java/com/google/collide/dtogen/DtoGenerator.java
@@ -86,6 +86,8 @@ public class DtoGenerator {
     String fileName = outputFilePath.substring(packageEnd + 1);
     String className = fileName.substring(0, fileName.indexOf(".java"));
     String packageName = outputFilePath.substring(packageStart, packageEnd).replace('/', '.');
+       
+    

     File outFile = new File(outputFilePath);
     File interfaceJar = new File(dto_jar);
diff --git a/javatests/com/google/collide/client/build.xml 
b/javatests/com/google/collide/client/build.xml
index 9038438..38cb74b 100644
--- a/javatests/com/google/collide/client/build.xml
+++ b/javatests/com/google/collide/client/build.xml
@@ -48,7 +48,7 @@
           <arg value="--dto_jar=${dirs.testbin}/${dirs.toppkg}/client/testing/dto/client-testdtos.jar"/>
           <arg value="--gen_file_name=${dirs.testgen}/${dirs.toppkg}/client/testing/CollideDtoClientTestingImpls.java"/>
           <arg value="--impl=client"/>
-          <arg value="--package_base=gen/"/>
+          <arg value="--package_base=${dirs.testgen}/"/>
         </java>
         <do.javac srcdir="${dirs.testgen}" destdir="${dirs.testbin}">
           <include name="${dirs.toppkg}/client/**/*.java"/>
diff --git a/javatests/com/google/collide/dtogen/build.xml 
b/javatests/com/google/collide/dtogen/build.xml
index fd4f737..d168262 100644
--- a/javatests/com/google/collide/dtogen/build.xml
+++ b/javatests/com/google/collide/dtogen/build.xml
@@ -48,7 +48,7 @@
           <arg value="--dto_jar=${dirs.testbin}/${dirs.toppkg}/dtogen/dtogen-testdtos.jar"/>
           <arg value="--gen_file_name=${dirs.testgen}/${dirs.toppkg}/dtogen/server/TestDtoServerImpls.java"/>
           <arg value="--impl=server"/>
-          <arg value="--package_base=gen/"/>
+          <arg value="--package_base=${dirs.testgen}/"/>
         </java>
         <mkdir dir="${dirs.testgen}/${dirs.toppkg}/dtogen/client"/>
         <java classname="${pkg.toppkg}.dtogen.DtoGenerator" fork="true"


Original issue reported on code.google.com by [email protected] on 13 Jul 2012 at 1:28

collide script invoking vertx should accept user-supplied jvm arguments

What steps will reproduce the problem?
1. Deploy collide to aws
2. Run for a while
3. Wait

java.lang.OutOfMemoryError: Java heap space
    at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:64)
    at java.lang.StringBuilder.<init>(StringBuilder.java:97)
    at org.codehaus.jackson.util.TextBuffer.contentsAsString(TextBuffer.java:352)
    at org.codehaus.jackson.io.SegmentedStringWriter.getAndClear(SegmentedStringWriter.java:100)
    at org.codehaus.jackson.map.ObjectMapper.writeValueAsString(ObjectMapper.java:2098)
    at org.vertx.java.core.sockjs.impl.JsonCodec.encode(JsonCodec.java:107)
    at org.vertx.java.core.sockjs.impl.Session.writePendingMessages(Session.java:188)
    at org.vertx.java.core.sockjs.impl.Session.write(Session.java:91)
    at org.vertx.java.core.sockjs.impl.Session.writeBuffer(Session.java:114)
    at org.vertx.java.core.sockjs.impl.EventBusBridge.deliverMessage(EventBusBridge.java:224)
    at org.vertx.java.core.sockjs.impl.EventBusBridge.access$500(EventBusBridge.java:49)
    at org.vertx.java.core.sockjs.impl.EventBusBridge$5.handle(EventBusBridge.java:265)
    at org.vertx.java.core.sockjs.impl.EventBusBridge$5.handle(EventBusBridge.java:259)
    at org.vertx.java.core.eventbus.impl.DefaultEventBus$7.run(DefaultEventBus.java:601)
    at org.vertx.java.core.impl.Context$2.run(Context.java:119)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processEventQueue(AbstractNioWorker.java:360)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:244)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

The supplied stacktrace changes every time, as one would expect from an OOM.




Workaround: Put -Xmx1024m -XX:MaxPermSize=1280m in the appropriate files, or a 
flag to pass settings through to the invocation of java in vert.x

I tried adding them in the bin/deploy/collide script, as well as in 
/bin/deploy/lib/vert.x, but both tries just made the command line complain 
about unexpected tokens.

Original issue reported on code.google.com by [email protected] on 5 Jul 2012 at 3:44

Multibyte Support

What steps will reproduce the problem?
1. For instance, type in Korean
2.
3.

What is the expected output? What do you see instead?
Languages that use multibyte need more than one typing for a completed char. 
For example, to type '한글', which means 'Korean', we need to type 'ㅎ', 
'ㅏ', 'ㄴ', 'ㄱ', 'ㅡ', 'ㄹ'.
But, with collide, any single type would be immediately shown on the editor, 
thus correct multibyte chars cannot be typed.

What version of the product are you using? On what operating system?
collide-dist-2012-07-07.tar.bz2, Linux CentOS 2.6.18 x86, jdk1.7.0_05

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 18 Jul 2012 at 9:22

Attachments:

Awesome box needs love

Jeff Schiller sez: Matching on paths would make the Awesome Box more awesome!

Original issue reported on code.google.com by dragonsinth on 4 Jul 2012 at 5:00

Upgrade to released version of Elemental

The collide build uses an older, internal version of elemental.

I have a fork that has been updated to use the newer versions, however, it also 
have some other enhancements that may or may not be good for upstream.

I'll put it on github in the next few days, but was just wondering if I should 
also put the fork on code.google.com for easier merging with upstream.

Please let me know the best way to submit a pull request.

Original issue reported on code.google.com by [email protected] on 15 Mar 2013 at 5:04

Easy Install Of Demo

Until the install script is bulletproofed, there should be an easy way for 
people to play with it for free.


I've posted an AWS image of collide pre-installed for anyone that wants to play 
with it, without any setup. This is handy if you're on windows, and can't 
easily get it running.

If you would like to spawn a working copy of collide-1.0, use the free image 
provided:

  Login to Amazon aws EC2 control panel ->
  Go to us west 1 (n. california) ->
  new instance wizard ->
  community amis -> 
  search for collide ->
  wait ->
  wait some more ->
  see the image, Collider-1.0 -> //misspelled it.  Oops!
  click through install ->
  make sure you whitelist port 8080 ->
  follow aws instructions to ssh into your instance ->
  type command 'collide' ->
  browse to YOUR_INSTANCE.amazonaws.com:8080 ->
  profit!

Original issue reported on code.google.com by [email protected] on 5 Jul 2012 at 11:57

Ant build needs some love with respect to spurious rebuilds

Sometimes, when we build/rebuild, stuff gets recompiled that doesn't need to 
be.  This ultimately cascades down to rebuilding the client, which is hugely 
expensive.  Not sure where the problem is, maybe around dto generation?

Original issue reported on code.google.com by dragonsinth on 4 Jul 2012 at 4:57

Choose port from command line

Everyone and their brother uses port 8080. Collide does too, so it's annoying 
to use Collide with a dev webserver. Worse, if I want to run collide on two 
projects at once, I need to modify Collide's source code for each invocation.

Collide should accept a port on the command line for these reasons.

Original issue reported on code.google.com by [email protected] on 2 Sep 2012 at 3:35

Make things run on Windows

There are shell scripts (including collide itself) that also need a .bat file 
written.

javatests/com/google/collide/server/api/run_api_test
^^ Ant could just exec vertx directly instead of having this script

Original issue reported on code.google.com by dragonsinth on 5 Jul 2012 at 6:56

Ctrl+Space vs. Ctrl+Shift+Space

James Nelson

Scott, the docs said Ctrl+space would do lexical lookup, but it isn't working 
for me in a java test project I'm playing with.

(I think it's mapped to Ctrl+Shift+Space currently?)

Anyway, Ctrl+Space should do all completions.

Original issue reported on code.google.com by dragonsinth on 4 Jul 2012 at 10:29

Code editor panel mouse offset problem.

I am working on a fork of collide to operate as a standalone plugin over top of 
other gwt-based modules, and have liberated the ui into drag 'n droppable 
panels (and a plugin system, with a gwt compiler + super dev mode).  It works 
great and I'm using it in production, but I'm having trouble with tracking down 
how clicks are handled in the workspace editor...

It seems the mouse offsets are calculated assuming the workspace is positioned 
at (0,0), so when the panel is moved somewhere else and clicked, it places the 
cursor at a very wrong offset.  I need to make it pull in the offset from the 
panel it is placed in instead, and could really use some help tracking down 
where this will need to be done.

I'm also hoping to enable opening more than one editor at a time, though it's 
not a priority.

I'm hoping to publish my fork soon as a google+ hangout, but would like to fix 
these usability issues before going public with it.

Thanks.

Original issue reported on code.google.com by [email protected] on 15 Mar 2013 at 4:57

GWT DevMode in Firefox - JSNI Error

I am JavaScript exception in DevMode in Firefox (compiled and Chrome DevMode 
work fine).

I take it down to a line is register that, honestly I don't understand
    // Ghetto!
-->    handler.__unregisterRef = handlerWrapper;

Is there any other way of doing this so that FF DevMode is happy?


  @Override
  public final native void register(String address, MessageHandler handler) /*-{
    var handlerWrapper = function(message, replier) {
      handler.@com.google.collide.clientlibs.vertx.VertxBus.MessageHandler::onMessage(Ljava/lang/String;Lcom/google/collide/clientlibs/vertx/VertxBus$ReplySender;)
      (message.dto, replier)
    }

    // Ghetto!
    handler.__unregisterRef = handlerWrapper;
    this.registerHandler(address, handlerWrapper);
  }-*/;

Original issue reported on code.google.com by miller.garym on 10 Oct 2012 at 4:56

FileTree MOVE directory fails on Windows

java.nio.file.AccessDeniedException: bar -> baz
    at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
    at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
    at java.nio.file.Files.move(Unknown Source)
    at com.google.collide.server.filetree.FileTree$FileTreeMutationHandler.handle(FileTree.java:268)
    at com.google.collide.server.filetree.FileTree$FileTreeMutationHandler.handle(FileTree.java:1)
    at org.vertx.java.core.eventbus.impl.DefaultEventBus$7.run(DefaultEventBus.java:601)
    at org.vertx.java.core.impl.Context$2.run(Context.java:119)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processEventQueue(AbstractNioWorker.java:360)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:244)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)
    at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
    at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by dragonsinth on 8 Jul 2012 at 2:23

Fix debugging extension

- Build extension during the regular build and emit it to bin/extension along 
with the pem that was used/generated and the update manifest.
- During the dist copy it to the static folder so that the crx can be served up 
by the collide instance.
- Change the installation URL for clients that do not have the extension 
installed to point to the locally served install location.
- Have the extension maintain its own internal whitelist of sites it allows to 
connect to it. This means the global content script needs a lenient whitelist 
in the manifest JSON since we can't know ahead of time the hostnames for the 
collide servers.
- Make this whitelist allow localhost by default and be configurable via the 
extensions settings page.


Original issue reported on code.google.com by [email protected] on 4 Jul 2012 at 11:01

FileTree gets confuses with renames

visitFileFailed: .git/index.lock
java.lang.NullPointerException
        at com.google.collide.server.filetree.FileTree$DirInfoExt.removeChild(FileTree.java:127)
        at com.google.collide.server.filetree.FileTree.processAllWatchEvents(FileTree.java:623)
        at com.google.collide.server.filetree.FileTree$1.run(FileTree.java:554)
        at java.lang.Thread.run(Thread.java:722)

Original issue reported on code.google.com by dragonsinth on 4 Jul 2012 at 3:07

Analyze memory

All we know is "it seems to use a lot of memory".

It will take some diving with jhat to figure out who's using so much.  This 
might involve fixes to vert.x, GC on our FileEditSessions, etc.

Original issue reported on code.google.com by dragonsinth on 5 Jul 2012 at 5:00

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.