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

Integrated PS console - follow up #56

Open
mikeTWC1984 opened this issue Jul 24, 2019 · 20 comments
Open

Integrated PS console - follow up #56

mikeTWC1984 opened this issue Jul 24, 2019 · 20 comments
Labels
bug Something isn't working

Comments

@mikeTWC1984
Copy link
Contributor

Did some clean up/overview and realize some old issues are still there

  1. Despite Change powershell.execute to run file in PSIC #52 powershell.execute command still doesn't work properly, file path is generated but is sent to a new terminal (not the integrated one) and closes immediately. Tested in both vim/nvim (latest) on a fresh Ubuntu container.

  2. evaluateSelection doesn't work in Vim (works fine in NeoVim). Getting this error:
    request error nvim_buf_get_mark buf_get_mark support current buffer only

  3. Integrated console doesn't work in Windows. gVim throws some error, but neovim just not loading it (using latest versions of both). I guess vim is not the best option for powershell stuff on windows anyway, so this is more like FYI, in case anybody is willing to research that.

@TylerLeonhardt
Copy link
Collaborator

@yatli have we done a release since #52 went in?

@TylerLeonhardt
Copy link
Collaborator

Number 2 is probably related to our selection implementation... It's a bit of a hack.

@chemzqm anything that you might need that could help with understanding the 3rd problem? Seems like that's possibly a coc.nvim issue?

@TylerLeonhardt TylerLeonhardt added the bug Something isn't working label Jul 26, 2019
@corbob
Copy link
Member

corbob commented Jul 26, 2019

I'm using NVIM v0.4.0-1234-g1b99aa8c5 and not having any issues with PSIC in nvim, or nvim-qt (biggest trouble is remembering how to exit the terminal...) I also don't recall having any issues with nvim stable, but it's been a while so I could be wrong...

@mikeTWC1984
Copy link
Contributor Author

@corbob Is that on Windows? I think on Windows problems starts when you install coc extensions, getting error from npm about certificates or something (although npm works fine outside vim, and I can run build.ps1 just fine). Idk, maybe manual install will help
Just realized windows terminal is already on choco, looking forward to try vim on it.

@TylerLeonhardt , @yatli I discovered that integrated terminal acts a bit quircky in neovim. Usually when I'm get there it's not in insert mode. And some times when you get in insert mode cursor get somewhere in the middle, so need to type cls to escape that mess. In VIM it works just fine (it always in insert mode). Besides that neovim looks like much better choice for ps.

@mikeTWC1984
Copy link
Contributor Author

I see 1 and 2 are fix for both vim/neovim, thanks! I'm good to close this

@TylerLeonhardt
Copy link
Collaborator

@mikeTWC1984 is 3 still an issue?

@yatli
Copy link
Member

yatli commented Aug 1, 2019

@mikeTWC1984 which version of gVim are you running? At least 8.0 is required

@mikeTWC1984
Copy link
Contributor Author

Yes, still getting same error. Using 8.1 (latest available on their website)
gvim81err
I'm getting it on 3 different machines so I assume this is something common.

@yatli
Copy link
Member

yatli commented Aug 1, 2019

can you provide the output of :CocInfo?

:CocOpenLog may also help

@mikeTWC1984
Copy link
Contributor Author

cocinfo

@mikeTWC1984
Copy link
Contributor Author

this is lcocopenlog:
2019-08-01T13:17:32.972 INFO (pid:34232) [plugin] - coc 0.0.73-d9ac1b1568 initialized with node: v10.16.0

@mikeTWC1984
Copy link
Contributor Author

Are you guys able to launch it on windows with no problem?

@yatli
Copy link
Member

yatli commented Aug 1, 2019

I'm always sticking to Windows, no problem on my side.
I use NeoVim.

@yatli
Copy link
Member

yatli commented Aug 1, 2019

This doesn't look like a Vim-related problem -- more likely on the javascript side.
Which version of Windows are you running?

@mikeTWC1984
Copy link
Contributor Author

windows 10 and server 2016. Do you have any issue with gVim on your end? I have neovim 0.38 on one of the machines, but terminal just doesn't start.

@mikeTWC1984
Copy link
Contributor Author

I realized I didn't have polyglot on my nvim. After adding completion started working. Tested this on 2 machines. I guess we need to update read me to move polyglot from recommended to prereq. Still can't get it to work with gvim. But I'm good for now anyway

@TylerLeonhardt
Copy link
Collaborator

Sounds good. Is it cool that we close this? I think you should open an issue on gvim or coc for better support there but also we should have an issue opened to have polyglot not be a dependency

@yatli
Copy link
Member

yatli commented Aug 2, 2019

@mikeTWC1984 I have the problem repro.
[coc.nvim] Error on active extension coc-powershell: TypeError: (intermediate value) is not iterable
Environment is:
Windows 10 1903
node 10.11
coc 0.0.73
polyglot: yes

I will trace this problem now.

@mikeTWC1984
Copy link
Contributor Author

Yeah, since nvim is working fine, we definitely can close it. If you guys can figure out if it's coc.nvim or gvim issue I can forward this to them

@Gankarloo
Copy link

I have the same problem, trying to use coc-powershell on windows.
Enabled the debug log and found this:

2019-09-25T15:31:17.924 ERROR (pid:23096) [extensions] - TypeError: (intermediate value) is not iterable
    at TerminalModel.start (C:\Users\ankarloog\Dropbox\Utilities\gVimPortable8\Data\settings\vimfiles\bundle\coc.nvim\build\index.js:30387:28)
    at process._tickCallback (internal/process/next_tick.js:68:7)

My Environment is:

vim version: VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:36:07)
node version: v10.16.3
coc.nvim version: 0.0.74-07b00fd6fc
term: undefined
platform: win32
polygot: yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants