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

LTA REPL with Unicode #1930

Closed
tisonkun opened this issue Jun 17, 2018 · 4 comments
Closed

LTA REPL with Unicode #1930

tisonkun opened this issue Jun 17, 2018 · 4 comments
Labels
REPL Unicode Related to unicode support

Comments

@tisonkun
Copy link
Contributor

The Problem

REPL should recognize Unicode properly

Expected Behavior

treat Unicode character atomically

Actual Behavior

> say "骆驼道“ # then you will find REPL applies backspace and move(left or right) in `char`, not in unicode

Environment

  • Operating system: Mac OS X
  • Compiler version (perl6 -v):
    This is Rakudo Star version 2018.04.1 built on MoarVM version 2018.04.1
    implementing Perl 6.c.
@zoffixznet
Copy link
Contributor

FWIW, the problem isn't present if Readline is installed.

@tisonkun
Copy link
Contributor Author

Hmmm, is there any problem with Readline?

➜  ~ zef install Readline
===> Searching for: Readline
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan.json
===> Updated p6c mirror: http://ecosystem-api.p6c.org/projects.json
===> Searching for missing dependencies: LibraryCheck
===> Testing: LibraryCheck:ver<0.0.6>:auth<github:jonathanstowe>
===> Testing [OK] for LibraryCheck:ver<0.0.6>:auth<github:jonathanstowe>
===> Testing: Readline:ver<0.0.2>:auth<github:drforr>
    # Failed test 'macro-dumper lives'
    # at t/02-base.t line 18
    # Cannot locate symbol 'rl_macro_dumper' in native library 'libreadline.dylib'
    # Looks like you failed 1 test of 1
# Failed test 'dumpers'
# at t/02-base.t line 13
    # Failed test 'expand-prompt lives'
    # at t/02-base.t line 29
    # Cannot locate symbol 'rl_expand_prompt' in native library 'libreadline.dylib'
    # Failed test 'on-new-line-with-prompt lives'
    # at t/02-base.t line 31
    # Cannot locate symbol 'rl_on_new_line_with_prompt' in native library 'libreadline.dylib'
    # Failed test 'save-prompt lives'
    # at t/02-base.t line 33
    # Cannot locate symbol 'rl_save_prompt' in native library 'libreadline.dylib'
    # Failed test 'restore-prompt lives'
    # at t/02-base.t line 35
    # Cannot locate symbol 'rl_restore_prompt' in native library 'libreadline.dylib'
    # Looks like you failed 4 tests of 5
# Failed test 'prompt'
# at t/02-base.t line 24
    # Failed test 'tilde-expand-word lives'
    # at t/02-base.t line 48
    # Cannot locate symbol 'tilde_expand_word' in native library 'libreadline.dylib'
    # Looks like you failed 1 test of 2
# Failed test 'tilde'
# at t/02-base.t line 39
    # Failed test 'reset-line-state lives'
    # at t/02-base.t line 70
    # Cannot locate symbol 'rl_reset_line_state' in native library 'libreadline.dylib'
    # Looks like you failed 1 test of 1
# Failed test 'state'
# at t/02-base.t line 68
    # Failed test 'free-undo-list lives'
    # at t/02-base.t line 81
    # Cannot locate symbol 'rl_free_undo_list' in native library 'libreadline.dylib'
    # Failed test 'do-undo lives'
    # at t/02-base.t line 83
    # Cannot locate symbol 'rl_do_undo' in native library 'libreadline.dylib'
    # Failed test 'begin-undo-group lives'
    # at t/02-base.t line 85
    # Cannot locate symbol 'rl_begin_undo_group' in native library 'libreadline.dylib'
    # Failed test 'end-undo-group lives'
    # at t/02-base.t line 87
    # Cannot locate symbol 'rl_end_undo_group' in native library 'libreadline.dylib'
    # Looks like you failed 4 tests of 4
# Failed test 'undo'
# at t/02-base.t line 80
    # Failed test 'funmap-names lives'
    # at t/02-base.t line 99
    # Cannot locate symbol 'rl_funmap_names' in native library 'libreadline.dylib'
    # Looks like you failed 1 test of 1
# Failed test 'funmap'
# at t/02-base.t line 91
    # Failed test 'reset-screen-size lives'
    # at t/02-base.t line 110
    # Cannot locate symbol 'rl_reset_screen_size' in native library 'libreadline.dylib'
    # Looks like you failed 1 test of 2
# Failed test 'screen'
# at t/02-base.t line 103
    # Failed test 'delete-text lives'
    # at t/02-base.t line 120
    # Cannot locate symbol 'rl_delete_text' in native library 'libreadline.dylib'
    # Failed test 'copy-text lives'
    # at t/02-base.t line 124
    # Cannot locate symbol 'rl_copy_text' in native library 'libreadline.dylib'
    # Looks like you failed 2 tests of 4
# Failed test 'text'
# at t/02-base.t line 114
    # Failed test 'copy-keymap lives'
    # at t/02-base.t line 134
    # Cannot locate symbol 'rl_copy_keymap' in native library 'libreadline.dylib'
    # Failed test 'make-keymap lives'
    # at t/02-base.t line 136
    # Cannot locate symbol 'rl_make_keymap' in native library 'libreadline.dylib'
    # Failed test 'discard-keymap lives'
    # at t/02-base.t line 138
    # Cannot locate symbol 'rl_discard_keymap' in native library 'libreadline.dylib'
    # Failed test 'get-keymap-by-name lives'
    # at t/02-base.t line 145
    # Cannot locate symbol 'rl_get_keymap_by_name' in native library 'libreadline.dylib'
    # Failed test 'get-keymap-name lives'
    # at t/02-base.t line 149
    # Cannot locate symbol 'rl_get_keymap_name' in native library 'libreadline.dylib'
    # Looks like you failed 5 tests of 8
# Failed test 'keymap'
# at t/02-base.t line 128
        # Failed test 'bind-key-if-unbound-in-map lives'
        # at t/02-base.t line 167
        # Cannot locate symbol 'rl_bind_key_if_unbound_in_map' in native library 'libreadline.dylib'
        # Failed test 'bind-keyseq-in-map lives'
        # at t/02-base.t line 170
        # Cannot locate symbol 'rl_bind_keyseq_in_map' in native library 'libreadline.dylib'
        # Failed test 'macro-bind lives'
        # at t/02-base.t line 178
        # Cannot locate symbol 'rl_macro_bind' in native library 'libreadline.dylib'
        # Looks like you failed 3 tests of 4
    # Failed test 'bind keymaps'
    # at t/02-base.t line 161
    # Looks like you failed 1 test of 1
# Failed test 'bind'
# at t/02-base.t line 155
    # Failed test 'unbind-key-in-map lives'
    # at t/02-base.t line 200
    # Cannot locate symbol 'rl_unbind_key_in_map' in native library 'libreadline.dylib'
    # Failed test 'unbind-function-in-map lives'
    # at t/02-base.t line 202
    # Cannot locate symbol 'rl_unbind_function_in_map' in native library 'libreadline.dylib'
    # Looks like you failed 2 tests of 2
# Failed test 'unbind'
# at t/02-base.t line 193
    # Failed test 'history-set-history-state lives'
    # at t/02-base.t line 224
    # Cannot locate symbol 'history_set_history_state' in native library 'libreadline.dylib'
    # Failed test 'add-history-time lives'
    # at t/02-base.t line 226
    # Cannot locate symbol 'add_history_time' in native library 'libreadline.dylib'
    # Failed test 'free-history-entry lives'
    # at t/02-base.t line 230
    # Cannot locate symbol 'free_history_entry' in native library 'libreadline.dylib'
    # Failed test 'history-list lives'
    # at t/02-base.t line 250
    # Cannot locate symbol 'history_list' in native library 'libreadline.dylib'
    # Failed test 'history-get-time lives'
    # at t/02-base.t line 259
    # Cannot locate symbol 'history_get_time' in native library 'libreadline.dylib'
    # Failed test 'read-history-range lives'
    # at t/02-base.t line 277
    # Cannot locate symbol 'read_history_range' in native library 'libreadline.dylib'
    # Looks like you failed 6 tests of 25
# Failed test 'history'
# at t/02-base.t line 206
    # Failed test 'push-macro-input lives'
    # at t/02-base.t line 350
    # Cannot locate symbol 'rl_push_macro_input' in native library 'libreadline.dylib'
    # Failed test 'modifying lives'
    # at t/02-base.t line 352
    # Cannot locate symbol 'rl_modifying' in native library 'libreadline.dylib'
    # Failed test 'replace-line'
    # at t/02-base.t line 373
    # Cannot locate symbol 'rl_replace_line' in native library 'libreadline.dylib'
    # Failed test 'tty-set-default-bindings lives'
    # at t/02-base.t line 375
    # Cannot locate symbol 'rl_tty_set_default_bindings' in native library 'libreadline.dylib'
    # Failed test 'tty-unset-default-bindings lives'
    # at t/02-base.t line 377
    # Cannot locate symbol 'rl_tty_unset_default_bindings' in native library 'libreadline.dylib'
    # Failed test 'get-termcap lives'
    # at t/02-base.t line 379
    # Cannot locate symbol 'rl_get_termcap' in native library 'libreadline.dylib'
    # Failed test 'extend-line-buffer lives'
    # at t/02-base.t line 381
    # Cannot locate symbol 'rl_extend_line_buffer' in native library 'libreadline.dylib'
    # Failed test 'alphabetic lives'
    # at t/02-base.t line 383
    # Cannot locate symbol 'rl_alphabetic' in native library 'libreadline.dylib'
    # Failed test 'set-paren-blink-timeout lives'
    # at t/02-base.t line 387
    # Cannot locate symbol 'rl_set_paren_blink_timeout' in native library 'libreadline.dylib'
    # Failed test 'complete-internal lives'
    # at t/02-base.t line 390
    # Cannot locate symbol 'rl_complete_internal' in native library 'libreadline.dylib'
    # Looks like you failed 10 tests of 11
# Failed test 'Miscellaneous'
# at t/02-base.t line 338
# Looks like you failed 13 tests of 17
===> Testing [FAIL]: Readline:ver<0.0.2>:auth<github:drforr>
Aborting due to test failure: Readline:ver<0.0.2>:auth<github:drforr> (use --force-test to override)
  in code  at /Applications/Rakudo/share/perl6/site/sources/7926F4F3ED4C81AA5DA2A54C8AE1E03D03424CCE (Zef::Client) line 375
  in method test at /Applications/Rakudo/share/perl6/site/sources/7926F4F3ED4C81AA5DA2A54C8AE1E03D03424CCE (Zef::Client) line 355
  in code  at /Applications/Rakudo/share/perl6/site/sources/7926F4F3ED4C81AA5DA2A54C8AE1E03D03424CCE (Zef::Client) line 531
  in sub  at /Applications/Rakudo/share/perl6/site/sources/7926F4F3ED4C81AA5DA2A54C8AE1E03D03424CCE (Zef::Client) line 528
  in method install at /Applications/Rakudo/share/perl6/site/sources/7926F4F3ED4C81AA5DA2A54C8AE1E03D03424CCE (Zef::Client) line 623
  in sub MAIN at /Applications/Rakudo/share/perl6/site/sources/E4784A2A0FA00D16808817186E95FE74BEF3FE2D (Zef::CLI) line 152
  in block <unit> at /Applications/Rakudo/share/perl6/site/resources/3065D08F5332CA244672D7F8A05B603F92BB8A7D line 3
  in sub MAIN at /Applications/Rakudo/share/perl6/site/bin/zef line 2
  in block <unit> at /Applications/Rakudo/share/perl6/site/bin/zef line 2

@zoffixznet
Copy link
Contributor

Dunno, worked fine for me on 2018.05-43-gc80ea2f28

Cannot locate symbol 'rl_funmap_names' in native library 'libreadline.dylib'

That's the error you'd get if you don't have libreadline installed, right? Maybe that's what the issue is?

@tisonkun
Copy link
Contributor Author

Right, I install libreadline by homebrew and if LD first it could be found.

@lucasbuchala lucasbuchala added Unicode Related to unicode support REPL labels Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Unicode Related to unicode support
Projects
None yet
Development

No branches or pull requests

3 participants