|
|
Are you desperate? Look at **[frequently asked questions](faq)**.
|
|
|
|
|
|
**Outline, rules, and procedures**
|
|
|
**Course administration and rules**
|
|
|
- [Assessment](assessment)
|
|
|
- [Exams](exams)
|
|
|
- [Regular labs](Project-labs-for-ONLINE-teaching)
|
... | ... | @@ -11,20 +11,45 @@ Are you desperate? Look at **[frequently asked questions](faq)**. |
|
|
- [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)
|
|
|
- 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!
|
|
|
- **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**
|
|
|
- [Semestral projects and homeworks](https://gitlab.fi.muni.cz/pb162/)
|
|
|
- [Simplified git usage](git-basic-setup) (submission via "odevzdávárna v IS")
|
|
|
- Advanced git usage (submittion through Git merge requests)
|
|
|
- [Guide to **advanced git setup**](git-advanced-setup) (steps 1-2 in the scheme).
|
|
|
- [Guide what to do **every week** after that](git-every-week) (steps 3-8 in the scheme).
|
|
|
- [Guide to **homework** submission](git-homework).
|
|
|
|
|
|
![git-scheme](uploads/d093a48b1e0dba6d47d095d4e6f08636/git-scheme.png) |
|
|
\ No newline at end of file |
|
|
![git-scheme](uploads/d093a48b1e0dba6d47d095d4e6f08636/git-scheme.png)
|
|
|
|
|
|
- **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:
|
|
|
```GitLab: you are not allowed to push code to this project. Fatal: Could not read from remote repository.```
|
|
|
- You are probably pushing to public repository. You want to push to your private one.
|
|
|
- I cannot pull iteration.
|
|
|
- You probably have uncommited changes. The solution is one of these:
|
|
|
- commit (save) changes: `git add -A && git commit -m "Message"`
|
|
|
- remove (delete) changes: `git reset --hard`
|
|
|
- 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
|
|
|
|