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

I'm not able to use Nushell #444

Open
kurokirasama opened this issue Nov 12, 2024 · 0 comments
Open

I'm not able to use Nushell #444

kurokirasama opened this issue Nov 12, 2024 · 0 comments

Comments

@kurokirasama
Copy link

Hey, in sublime text 4 I'm using the terminus package with this settings:

{
   "256color": true,
   "theme": "user",
   "unix_term": "xterm-256color", 
   "user_theme_colors":
   {
      "background": "#000000",
      "caret": "#ffffff",
      "foreground": "#ffffff"
   },
   "view_settings":
   {
      "font_face": "Monocraft Nerd Font Regular",
      "font_size": 15
   },
   "default_config": {
        "linux": "Nushell",    // login shell
    },
    "shell_configs": [
        {
            "name": "Nushell",
            "cmd": ["nu", "-i", "-l"],
            "env": {},
            "enable": true,
            "platforms": ["linux"]
        },
        {
            "name": "Bash",
            "cmd": ["bash", "-i", "-l"],
            "env": {},
            "enable": true,
            "platforms": ["linux", "osx"]
        }
    ],
   "debug": true,
   "debug_output": true
}

however, i cannot run command nu (nushell) in the terminus terminal when Bash is the default, it stays frozen and i cannot interact with it. The same happens if i set nushell as the default_config shell.

Note that nushell works fine outside of sublime's terminus.

I also tried without the -l and -i flags, and with xterm instead of xterm-256color, and the problem persists.

the debug log shows, when nushell is the default_config this:

Terminus [DEBUG]: add 4 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
Terminus [DEBUG]: updating lines takes 0.012325048446655273s
Terminus [DEBUG]: mode: [7, 25], cursor: 0.14
Terminus [DEBUG]: receieved: �[?2004h
Terminus [DEBUG]: receieved: �[6n
Terminus [DEBUG]: receieved: �[6n
Terminus [DEBUG]: receieved: �[?25l�[15;1H�[15;1H�[J�[38;5;10m�]133;A�\�[48;2;0;255;0;38;2;0;0;0m  1.4MBChatGpt�[0m�]133;B�\�[38;5;14m�[38;2;0;255;0m �[0m�[38;5;5m�7�[15;129H�[38;2;0;255;0m 17.88°C�[0m�[38;2;0;255;0m0.823s�[0m�8�[0m�[0m�7�8�[5 q�[?25h
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [14]
Terminus [DEBUG]: updating lines takes 0.0005261898040771484s
Terminus [DEBUG]: mode: [7, 2004], cursor: 0.14
Terminus [DEBUG]: set recent view: 33
Terminus [DEBUG]: set recent view: 33

and when running nu from Bash in the terminus terminal:

Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [14]
Terminus [DEBUG]: updating lines takes 0.0010852813720703125s
Terminus [DEBUG]: mode: [7, 2004], cursor: 0.14
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: set recent view: 18
Terminus [DEBUG]: kill
Terminus [DEBUG]: renderer breaks
Terminus [DEBUG]: activating with offset 0
Terminus [DEBUG]: view size: (40, 80)
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: handle resize 40 80 -> 15 144
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
Terminus [DEBUG]: updating lines takes 0.001855611801147461s
Terminus [DEBUG]: mode: [7, 25], cursor: 0.0
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: receieved: �]0;kira@deathnote: ~/Yandex.Disk/ChatGpt��[01;32mkira@deathnote�[00m:�[01;34mChatGpt�[00m$ 
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0005125999450683594s
Terminus [DEBUG]: mode: [7, 25], cursor: 24.0
Terminus [DEBUG]: sent: n
Terminus [DEBUG]: receieved: n
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0008289813995361328s
Terminus [DEBUG]: mode: [7, 25], cursor: 25.0
Terminus [DEBUG]: sent: u
Terminus [DEBUG]: receieved: u
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.00045108795166015625s
Terminus [DEBUG]: mode: [7, 25], cursor: 26.0
Terminus [DEBUG]: sent:  
Terminus [DEBUG]: receieved:  
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0004258155822753906s
Terminus [DEBUG]: mode: [7, 25], cursor: 27.0
Terminus [DEBUG]: sent: -
Terminus [DEBUG]: receieved: -
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0004343986511230469s
Terminus [DEBUG]: mode: [7, 25], cursor: 28.0
Terminus [DEBUG]: sent: n
Terminus [DEBUG]: receieved: n
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0]
Terminus [DEBUG]: updating lines takes 0.0014388561248779297s
Terminus [DEBUG]: mode: [7, 25], cursor: 29.0
Terminus [DEBUG]: sent: 
Terminus [DEBUG]: receieved: 

Terminus [DEBUG]: updating lines takes 0.00011682510375976562s
Terminus [DEBUG]: mode: [7, 25], cursor: 0.1
Terminus [DEBUG]: receieved: �]2;~/Yandex.Disk/ChatGpt��]7;file://deathnote/home/kira/Yandex.Disk/ChatGpt�\�[32m     __  ,�[0m
�[32m .--()°'.' �[0mWelcome to �[32mNushell�[0m,
�[32m'|, . ,'   �[0mbased on the �[32mnu�[0m language,
�[32m !_-(_\    �[0mwhere all data is structured!

Please join our �[35mDiscord�[0m community at �[35mhttps://discord.gg/NtAbbGn�[0m
Our �[1;32mGitHub�[0m repository is at �[1;32mhttps://github.com/nushell/nushell�[0m
Our �[32mDocumentation�[0m is located at �[32mhttps://nushell.sh�[0m
�[36mTweet�[0m us at �[1;36m@nu_shell�[0m
Learn how to remove this at: �[32mhttps://nushell.sh/book/configuration.html#remove-welcome-message�[0m

It's been this long since �[32mNushell�[0m's first commit:
5yrs 6months 1day 50mins 46secs 895ms 337µs 193ns 

Startup Time: 8ms 459µs 618ns

�[?2004h�[6n
Terminus [DEBUG]: add 3 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
Terminus [DEBUG]: updating lines takes 0.002990245819091797s
Terminus [DEBUG]: mode: [7, 25, 2004], cursor: 0.14
Terminus [DEBUG]: receieved: �[6n
Terminus [DEBUG]: receieved: �[?25l�[15;1H�[15;1H�[J�[38;5;10m�]133;A�\�]133;B�\�[38;5;14m> �[38;5;5m�7�[15;123H11/11/2024 02:49:58 PM�8�[0m�[0m�7�8�[?25h
Terminus [DEBUG]: add 0 line(s) to scroll back history
Terminus [DEBUG]: screen is dirty: [14]
Terminus [DEBUG]: updating lines takes 0.0004150867462158203s
Terminus [DEBUG]: mode: [7, 2004], cursor: 0.14
Terminus [DEBUG]: set recent view: 20
Terminus [DEBUG]: set recent view: 20

Am I doing something wrong?

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

1 participant