https://github.com/codesmell/aoc_2021
Advent of Code (2021)
https://github.com/codesmell/aoc_2021
Last synced: 6 months ago
JSON representation
Advent of Code (2021)
- Host: GitHub
- URL: https://github.com/codesmell/aoc_2021
- Owner: CodeSmell
- Created: 2021-12-02T18:01:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T19:34:50.000Z (over 4 years ago)
- Last Synced: 2025-02-16T09:20:32.084Z (about 1 year ago)
- Language: Kotlin
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code (2021)
The Advent of Code puzzles for each day are available [here](https://adventofcode.com/2021)
## Setup
Installing the compiler
brew update
brew install kotlin
### Description of Environment
Using Kotlin 1.5.x with JDK 11
Using the Eclipse IDE with Kotlin plugin
- Eclipse version 2021-09 (4.21.0)
- Kotlin plugin version 0.8.22
Using Maven
### Notes
Found that Eclipse is not building the Kotlin files/classes and have to do that via the command line
mvn clean test-compile
Not sure what is wrong with development environment setup
Getting these errors:
/Volumes/dev/aoc_2021/src/main/kotlin/aoc/util/FileUtil.kt
ERROR: Unresolved reference: java (5, 8)
ERROR: Unresolved reference: java (6, 8)
ERROR: Unresolved reference: java (7, 8)
Because Eclipse is not compiling Kotlin classes doing this isn't working either
package aoc.day1
import aoc.util.FileUtil
class SonarSweep {
fun runMe() {
List sonarData = FileUtil.readClassPathFileToList("testData.txt");
}
}
That gives
ERROR: Unresolved reference: FileUtil (3, 17)