fvim icon indicating copy to clipboard operation
fvim copied to clipboard

--termcmd option not recognized

Open rashil2000 opened this issue 4 years ago • 10 comments

I ran the command fvim --termcmd powershell, here's the stacktrace:

Exit code: 1
Exception message: neovim crashed
nvim.exe: Unknown option argument: "--termcmd" More info with "nvim.exe -h"

at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1433.Invoke(String message) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\printf.fs:line 1433 at FVim.states.msg_dispatch(Event _arg1) in D:\a\1\s\states.fs:line 285 at [email protected](Event arg1) in D:\a\1\s\model.fs:line 146 at [email protected](T delegateArg0) at System.Reactive.AnonymousSafeObserver1.OnNext(T value) in /_/Rx.NET/Source/src/System.Reactive/AnonymousSafeObserver.cs:line 44 at System.Reactive.Sink1.ForwardOnNext(TTarget value) in //Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 50 at System.Reactive.Concurrency.ObserveOn1.Context._.OnNextPosted(Object value) in /_/Rx.NET/Source/src/System.Reactive/Concurrency/Synchronization.ObserveOn.cs:line 118 at Avalonia.Threading.AvaloniaSynchronizationContext.<>c__DisplayClass8_0.<Post>b__0() at Avalonia.Threading.JobRunner.Job.Avalonia.Threading.JobRunner.IJob.Run() at Avalonia.Threading.JobRunner.RunJobs(Nullable1 priority) at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg) at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken) at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) at [email protected](Window win) in D:\a\1\s\Program.fs:line 129 at FVim.Program.startMainWindow(FSharpFunc`2 app, ServerOptions serveropts_0, Boolean serveropts_1, Boolean serveropts_2) in D:\a\1\s\Program.fs:line 78 at FVim.Program.Main(String[] args) in D:\a\1\s\Program.fs:line 138

rashil2000 avatar May 07 '21 10:05 rashil2000

What is the expected behavior?

yatli avatar Jul 15 '21 11:07 yatli

According to the Readme image it should launch a terminal with powershell (by default it launches with cmd)

rashil2000 avatar Jul 15 '21 11:07 rashil2000

Aha. Totally forgot about this :D The arg is actually --terminal-cmd. I'll update the README, thanks!

yatli avatar Jul 15 '21 15:07 yatli

Unfortunately, it still doesn't work. I've tried

fvim --terminal-cmd pwsh
fvim --terminal --terminal-cmd pwsh
fvim --terminal-cmd pwsh --terminal

All of these just open a blank buffer.

rashil2000 avatar Jul 15 '21 16:07 rashil2000

Could you try this: fvim -u NORC +"set mouse=a" +"set noshowmode" +"set laststatus=0" +"set noruler" +"set noshowcmd" +"terminal pwsh"

yatli avatar Jul 15 '21 17:07 yatli

It opens up cmd in FVim

rashil2000 avatar Jul 15 '21 17:07 rashil2000

@rashil2000 updated the line, pls try again

yatli avatar Jul 15 '21 17:07 yatli

I'm guessing it's some quote escape problem again so that fvim fail to assemble the correct startup args

yatli avatar Jul 15 '21 17:07 yatli

Yes, now the line works

rashil2000 avatar Jul 15 '21 17:07 rashil2000

thanks for confirming. I'll figure out a fix.

yatli avatar Jul 15 '21 17:07 yatli