question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE on second attempt to build

See original GitHub issue

Greetings to everybody! I strive to port Groupoid Infinity library to Arend!

For now we have several issues:

  1. Prelude.ard isn’t compilng;
  2. 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:closed
  • Created 5 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
valiscommented, Dec 17, 2018

I’ve committed it 12 hours ago, but pushed only 5 minutes ago.

0reactions
5HTcommented, Dec 17, 2018

Thanks a lot. Will try to port following module to Arend: https://github.com/groupoid/infinity/blob/master/priv/bundle.ctt

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found