vronic / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

Cannot compile #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I attempted to download and get the app working in eclipse.  I was trying to 
get it working to the point where I could try changing some stuff.  However, 
when I get it in eclipse and download gwt-log and gwt-html5-database, I get an 
error on RestClient.java @ line 212: 

The method setHeaders(List<RequestHeader>) in the type RequestBuilder is not 
applicable for the arguments (LinkedHashMap<String,String>)

Since I don't see any tags, I'm wondering what rev did you use to build the 
latest extension?  

Since it couldn't find the XMLHttpRequest2 lib, I just linked the project so 
perhaps I'm using the wrong version.  

Any help would be appreciated. 

Original issue reported on code.google.com by mikew...@gmail.com on 27 Mar 2012 at 7:41

GoogleCodeExporter commented 8 years ago
In trunk there is XMLHttpRequest2 project with build.xml file.
You need set some EVN variables like GWT HOME for GWT SDK. 
Or you can check 
RestClientApp/war/WEB-INF/lib/gwt-xmlhttp-request-l2-library-2.4.0.jar for 
missing library :)
Just add it to include path ad it should work.

BTW:  There is many unnecessary libs that will be removed in next update.

Original comment by jarro...@gmail.com on 27 Mar 2012 at 8:03

GoogleCodeExporter commented 8 years ago
I grabbed the libraries from the RestClientApp, and I still get the failure:

The method setHeaders(List<RequestHeader>) in the type RequestBuilder is not 
applicable for the arguments (LinkedHashMap<String,String>)

It would be nice if the dependent libs were either off of some classpath 
variable or in the project itself, I keep getting build path issues in eclipse. 

Original comment by mikew...@gmail.com on 27 Mar 2012 at 10:35

GoogleCodeExporter commented 8 years ago
It would appear the above problem is somewhat related to r101.  The code seems 
to want to put a map of headers, whereas r101 removed that.  Should I revert 
that commit out? 

Original comment by mikew...@gmail.com on 27 Mar 2012 at 10:39

GoogleCodeExporter commented 8 years ago
Pulling out r101 from src/com/google/gwt/xhr2/client/RequestBuilder.java fixed 
the compile issues with RestClient, I doubt it is the proper way to go. 

Original comment by mikew...@gmail.com on 27 Mar 2012 at 11:05

GoogleCodeExporter commented 8 years ago
LinkedHashMap has been removed and replaced by other object because it 
overwrite headers for with same name while spec tells that headers with same 
name should be merged, not replaced.
I've committed latest version yesterday. It should contain proper version.

Original comment by jarro...@gmail.com on 29 Mar 2012 at 8:48

GoogleCodeExporter commented 8 years ago
This fixed the problem I was having with RestClientApp great.  However, 
RestClient was still being redflagged, but I am ignoring it. 

Thanks much!

Original comment by mikew...@gmail.com on 2 Apr 2012 at 9:39