NPE on second attempt to build
See original GitHub issueGreetings to everybody! I strive to port Groupoid Infinity library to Arend!
For now we have several issues:
- Prelude.ard isn’t compilng;
- NPE on second build attempt without removal of
lib/.output
.
Reproduce:
$ git clone https://github.com/JetBrains/Arend.git
$ ./gradlew
$ ./gradlew jarDep
$ java -jar ./build/libs/arend.jar -s lib
Results:
--- Typechecking \default ---
[ERROR] Prelude:14:9: 'Nat.zero' is not a constructor of data type Nat
In: zero
While processing: Nat.-
[ERROR] Prelude:15:16: 'Nat.zero' is not a constructor of data type Nat
In: zero
While processing: Nat.-
[ERROR] Prelude:33:5: Coverage check failed
In: \func inProp {A : \Prop} : \Pi (a a' : A) -> a = a'
While processing: Path.inProp
[WARNING] Prelude:41:5: This clause is redundant
In: | path f, i => f i
While processing: @
[ERROR] Prelude:43:1: Some clauses are missing
right
In: \func coe (A : I -> \Type) (a : A left) (i : I) : A i \elim i
| left => a
While processing: coe
[✗] Prelude
Number of modules with errors: 1
--- Done ---
If I make compilation second time
$ java -jar ./build/libs/arend.jar -s lib
without erasing lib/.output
I get following:
--- Typechecking \default ---
Exception in thread "main" java.lang.NullPointerException
Issue Analytics
- State:
- Created 5 years ago
- Comments:12
Top Results From Across the Web
NPE upon second call to Mockito.when with custom argument ...
When I add the second case (along with the first one) the test crashes with NPE like: java.lang.NullPointerException at org.some.pkg.
Read more >Java NULL pointer exception upon attempting code build in ...
Java NULL pointer exception upon attempting code build in CCS v.4. Lee Holeva ... I'm seeing this in the error.log file upon attempting...
Read more >Handling Java NullPointerException and Best Practices
NullPointerException is a runtime condition where we try to access or modify an object which has not been initialized yet.
Read more >Compile Time Checking for NullPointerException — oracle-tech
I think Java should put a compile time checking for null pointer exception. If an instance variable(object type) is declared but not assigned...
Read more >Subversion folder causes NPE in PreCompilerBuilder ...
at com.android.ide.eclipse.adt.internal.build.builders. ... For a few days I got the same message, but the project compiled for the second try.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve committed it 12 hours ago, but pushed only 5 minutes ago.
Thanks a lot. Will try to port following module to Arend: https://github.com/groupoid/infinity/blob/master/priv/bundle.ctt