Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
clojurians-org opened this issue Apr 16, 2019 · 6 comments
Open

Comments

@clojurians-org
Copy link

clojurians-org commented Apr 16, 2019

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.

@clojurians-org
Copy link
Author

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

i have no idea how to process first situation either

@jyp
Copy link
Owner

jyp commented May 20, 2019

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

@clojurians-org
Copy link
Author

clojurians-org commented May 21, 2019

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
Copy link
Owner

jyp commented Aug 1, 2019

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
Copy link
Owner

jyp commented Aug 16, 2019

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

@jyp jyp changed the title cross line code and error info display Multiline code blocks using :{ and :} are not supported by reploid Dec 8, 2019
@acarrico
Copy link

Ran into this one today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants