|
|
@@ -158,6 +158,34 @@ cd ~/workspace/exercism/xjava
|
|
158
|
158
|
./bin/build.sh
|
|
159
|
159
|
```
|
|
160
|
160
|
|
|
|
161
|
+## Developing
|
|
|
162
|
+
|
|
|
163
|
+### Tip: gradle clean before exercism fetch
|
|
|
164
|
+
|
|
|
165
|
+If you `exercism fetch` after doing a build, the CLI will fail with the following error message:
|
|
|
166
|
+
|
|
|
167
|
+```
|
|
|
168
|
+$ exercism fetch java bob
|
|
|
169
|
+2015/09/06 15:03:21 an internal server error was received.
|
|
|
170
|
+Please file a bug report with the contents of 'exercism debug' at: https://github.com/exercism/exercism.io/issues
|
|
|
171
|
+```
|
|
|
172
|
+
|
|
|
173
|
+and if you review the logs of your x-api, you'll find:
|
|
|
174
|
+
|
|
|
175
|
+```
|
|
|
176
|
+127.0.0.1 - - [06/Sep/2015:15:20:56 -0700] "GET /v2/exercises/java/bob HTTP/1.1" 500 514949 0.2138
|
|
|
177
|
+2015-09-06 15:21:01 - JSON::GeneratorError - source sequence is illegal/malformed utf-8:
|
|
|
178
|
+```
|
|
|
179
|
+
|
|
|
180
|
+This is because some files generated by the build can't be served from the x-api. That's actually fine. To fix this, simply make sure you do a clean in your xjava repo before you fetch:
|
|
|
181
|
+
|
|
|
182
|
+```
|
|
|
183
|
+cd ~/workspace/exercism/xjava
|
|
|
184
|
+gradle clean
|
|
|
185
|
+cd ~/worksapce/exercism/exercises
|
|
|
186
|
+exercism fetch java bob
|
|
|
187
|
+```
|
|
|
188
|
+
|
|
161
|
189
|
## Submitting Your Contribution
|
|
162
|
190
|
|
|
163
|
191
|
First of all... Exercism is meant help programmers, world-wide, to develop their skills and in doing so help raise the bar on our industry as a whole. Your contribution is making that experience even better. Thank you!
|