... | ... | @@ -10,25 +10,12 @@ |
|
|
- [Install required software on your computer](install-development-environment) (workstations at FI MU are already pre-installed)
|
|
|
- [Set up the IDE and useful shortcuts](working-with-ide)
|
|
|
- [Using IDE at school](Using-IDE-at-school)
|
|
|
- [IntelliJ IDEA Troubleshooting](IntelliJ-IDEA-Troubleshooting)
|
|
|
- **Troubleshooting**
|
|
|
- Compiling maven projects in the IDEA
|
|
|
* Show Maven window by clicking on *View->Tool Windows->Maven*.
|
|
|
* Run *Lifecycle->install*
|
|
|
* Compilation of the code using another way may skip unit tests or style checking!
|
|
|
- In IDEA, checkstyle complains about `AvoidStarImport: Using the ’.*’ form of import should be avoided`.
|
|
|
- You shouldn't use star imports like `import java.util.*;`
|
|
|
- PC does not recognize java classes like `String`, etc.
|
|
|
- Java JDK classpath is not set up.
|
|
|
- Go to _Setup JDK -> + -> JDK -> (choose java-XY directory) -> OK -> OK_. Then wait for indexing to finish.
|
|
|
- My homework solution **is not fully tested**, how do I know which methods aren't tested at all?
|
|
|
- Compile the project using the command above and then open **target/site/jacoco/index.html** file. Red lines are not tested, green ones are.
|
|
|
- When I push my solution to GitLab, I got an email saying _Your pipeline has failed_.
|
|
|
- Click (in your email) **build** button for more information why the compilation has failed.
|
|
|
So, either the tests didn't pass, or the checkstyle showed some checkstyle errors.
|
|
|
|
|
|
> Interested in better shell? Use [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh).
|
|
|
> Or install GUI client like [GitKraken](https://www.gitkraken.com/).
|
|
|
|
|
|
# Git workflow
|
|
|
- [Simplified git usage](git-basic-setup) (submission via "odevzdávárna v IS")
|
|
|
- Advanced git usage (submittion through Git merge requests)
|
... | ... | @@ -39,7 +26,6 @@ |
|
|

|
|
|
|
|
|
- **Troubleshooting**
|
|
|
- Semestral projects and homework [are here](https://gitlab.fi.muni.cz/pb162/)
|
|
|
- Git says `fatal: refusing to merge unrelated histories`.
|
|
|
- Add `--allow-unrelated-histories` argument and try again.
|
|
|
- I cannot push to git, I am getting a message:
|
... | ... | @@ -52,3 +38,8 @@ |
|
|
- I get an error `Git command returned with the following error: <some-url>: 404 Not Found`.
|
|
|
- Check your URL ends with **.git**, or use the _copy button_ on the project's gitlab web page
|
|
|
|
|
|
- When I push my code to GitLab, I got an email saying _Your pipeline has failed_.
|
|
|
- If you pushed an unfinished code, ignore this mail.
|
|
|
- If you pushed a final code and your IDE doesn't show any error, then it usually means that you skip the unit and/or checkstyle tests on your computer. When using IntelliJ IDEA, check the [IntelliJ IDEA Troubleshooting page](IntelliJ-IDEA-Troubleshooting).
|
|
|
- Anyway, click (in your email) **build** button for more information on why the compilation has failed. Either the tests didn't pass, or the checkstyle showed some checkstyle errors.
|
|
|
|