jyp/dante

Multiline code blocks using :{ and :} are not supported by reploid

clojurians-org opened this issue · 6 comments

i like dante.
but i have no idea how to handle the following things

1. the cross line code

when i enter [ctrl+c, "], it sees evaluate each line by [>>>] only.

import Network.HTTP.Client as H (Proxy(Proxy))
import Network.HTTP.Client
-- >>> :set -XOverloadedStrings
-- >>> let proxyEnv = proxyEnvironment $ Just (H.Proxy "127.0.0.1" 8118)
-- >>> let settings = managerSetProxy proxyEnv defaultManagerSettings
-- >>> mgr <- newManager settings
-- >>> flip httpLbs mgr defaultRequest {
--         host = "10.132.37.201"
--       , port = 9200
--       }

2. error info display

when i do some typo, the status bar display "(Haskell Danté:error(Main) FlyC ElDoc)"
i have no idea how to find detail error information.

i upgrade the dante, the error will display automatically in new popup window.

i have no idea how to process first situation either

jyp commented

Are you in fact using dante? The error should show in the buffer. Also, the default binding is C-c ".

yes, i use dante-20190503.645 now.
after i update the dante version ,the error buffer occur now.
C-c " seems don't support cross line code, can you gave me a example for multiline?

-- >>> 1 + 3                                                                                                                                                                          
--  + 5                                                                                                                                                                               

-- >>> 1 + 3                                                                                                                                                                          
-- >>> + 5                                                                                                                                                                            
jyp commented

Multiline input is currently not possible to do with Dante. Not even the GHCi multiline syntax will work (:{ ... :}), because GHCi will issue a prompt that dante does not recognize.

jyp commented

I see that this specific prompt can be changed using :set prompt-cont. Should eventually be looking into that.

Ran into this one today.