Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

C-c C-n #39

Closed
jonaprieto opened this issue Nov 22, 2016 · 10 comments
Closed

C-c C-n #39

jonaprieto opened this issue Nov 22, 2016 · 10 comments
Labels

Comments

@jonaprieto
Copy link

jonaprieto commented Nov 22, 2016

It seems that nothing that I define shows the normalizations, and in emacs does.

data Bool : Set where
  False   : Bool                    
  True    : Bool 

¬_ : Bool  Bool
¬ True  = False
¬ False  = True

C-c C-n with ¬ True , atom doesn't show the normal form.

Some Idea? In emacs, it works fine.

@banacorn
Copy link
Owner

banacorn commented Nov 22, 2016

That's weird, because it works on my machine.

Does the panel at the bottom give you a weird normal form, or if it just disappeared? If it's the latter case, then maybe it's some UI-related bug.

p.s. I can't type check¬_ : Bool → True so I tried to reproduce the issue with ¬_ : Bool → Bool.

@jonaprieto
Copy link
Author

jonaprieto commented Nov 22, 2016

It Just appears the title, "Compute Normal Formal", not result or anything else.

image

image

@banacorn Yes, I was a typo ¬_ : Bool → Bool.

@banacorn
Copy link
Owner

Thanks for reporting this.

Does this problem happen all the time? Or if it only occurs under certain situation? Because I can't reproduce it :(

@jonaprieto
Copy link
Author

Yes, it is happening in every single agda file. The Atom version is the last, 1.12.3.

@banacorn
Copy link
Owner

banacorn commented Nov 22, 2016

May I know which version of Agda you are using?

agda -V

And the configs of agda-mode and core

cat .atom/config.cson 

It looks like that agda-mode has not received any reply :\

@ruhatch
Copy link

ruhatch commented Dec 26, 2016

I am getting this same issue with the development version of Agda (2.6.0-4be18df).

My .atom/config.cson isn't very interesting but I'll post it anyway

"*":
  "agda-mode":
    executablePath: "/home/rupert/.local/bin/agda"
    maxBodyHeight: 496
  core:
    autoHideMenuBar: true
    disabledPackages: [
      "wrap-guide"
      "autohide-tree-view"
      "project-ring"
      "project-jump"
    ]
    packagesWithKeymapsDisabled: [
      "tree-view"
    ]
    telemetryConsent: "limited"
    themes: [
      "arc-ui"
      "one-light-syntax"
    ]
  editor:
    fontFamily: "Input Mono"
    softWrap: true
    softWrapHangingIndent: 2
  "exception-reporting":
    userId: "19a752f3-7afe-157f-1802-8e2fe0557989"
  "git-plus":
    splitPane: "Right"
  "haskell-ghc-mod": {}
  hidpi: {}
  "ide-haskell": {}
  "ide-haskell-repl":
    commandArgs: [
      "ghci"
    ]
    commandPath: "stack"
  latextools:
    forwardSync: false
    keepFocus: false
    linux: {}
    refAddParenthesis: true
  linter: {}
  "pdf-view":
    fitToWidthOnOpen: true
  "project-manager":
    alwaysOpenInSameWindow: true
    includeGitRepositories: true
  "spell-check":
    grammars: [
      "source.asciidoc"
      "source.gfm"
      "text.git-commit"
      "text.plain"
      "text.plain.null-grammar"
      "text.tex.latex"
    ]
  term3:
    colors:
      background: "#282c34"
    fontFamily: "Input Mono"
  "tree-view":
    hideVcsIgnoredFiles: true
  "vim-mode": {}
  welcome:
    showOnStartup: false
  wordcount:
    extensions: [
      "md"
      "markdown"
      "readme"
      "txt"
      "rst"
      "adoc"
      "log"
      "msg"
      "tex"
    ]
    hidechars: true
".c2hs.source":
  editor:
    softWrapHangingIndent: 2
".cabal.source":
  editor:
    softWrapHangingIndent: 2
".diff":
  editor:
    softWrapHangingIndent: 2
".diff.source":
  editor:
    softWrapHangingIndent: 2
".haskell.hint":
  editor:
    softWrapHangingIndent: 2
".haskell.hint.message":
  editor:
    softWrapHangingIndent: 2
".haskell.hint.type":
  editor:
    softWrapHangingIndent: 2
".haskell.latex.tex.text":
  editor:
    softWrapHangingIndent: 2
".haskell.source":
  editor:
    softWrapHangingIndent: 2
".hsc2hs.source":
  editor:
    softWrapHangingIndent: 2

Any help would be much appreciated!

@ruhatch
Copy link

ruhatch commented Dec 26, 2016

The output in the developer console is

Agda parse error: IOTCM,/home/rupert/github/HoTT-Agda/theorems/groupoids/SymmetricHIT2.agda,NonInteractive,Direct,Cmd_compute,False,0,noRange,f (g b)

@banacorn
Copy link
Owner

banacorn commented Dec 26, 2016

That parse error is really helpful!
It seems that the parsing has gone wrong.
In case you are in the development mode, you should see that there's a button here on the right of the panel.
how to open dev view

If you open it you will see two columns, it would be nice if you could identify the string where the parser panics.

how to open dev view

Thanks!!

@ruhatch
Copy link

ruhatch commented Dec 26, 2016

My output is

2016-12-26-210959_3764x2046_scrot

(sorry for the large screenshot!)

@banacorn
Copy link
Owner

banacorn commented Dec 27, 2016

After some further investigation, I found that the issue @ruhatch had reported is related to some protocol updates in Agda 2.6. We should move to #41.

@banacorn banacorn reopened this Dec 27, 2016
banacorn added a commit that referenced this issue Dec 27, 2016
Prior to 2.6 there were only two modes of computation, now there are three.
Fix #39 and #41
@banacorn banacorn added the bug label Dec 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants