Code Monkey home page Code Monkey logo

gonvim's People

Contributors

akiyosi avatar dzhou121 avatar kristijanhusak avatar meain avatar philk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gonvim's Issues

Install doesn't work on MacOS Sierra

$ go get -v -u github.com/dzhou121/gonvim/cmd/gonvim
github.com/dzhou121/gonvim (download)
github.com/dzhou121/neovim-fzf-shim (download)
github.com/junegunn/fzf (download)
github.com/junegunn/go-isatty (download)
github.com/junegunn/go-runewidth (download)
github.com/neovim/go-client (download)
github.com/dzhou121/neovim-locpopup (download)
github.com/dzhou121/svg (download)
github.com/rustyoz/Mtransform (download)
github.com/dzhou121/ui (download)
$ gonvim
-bash: gonvim: command not found

Problem running gonvim on OSX and Go 1.7

gonvim doesn't launch, and I don't have much information:

$ go get -u github.com/dzhou121/gonvim/cmd/gonvim
$ gonvim
Killed: 9

Using go 1.7:

$ go version
$ go version go1.7.6 darwin/amd64

windows version

This GUI is awesome!! I love it at the first glance! But, my major system is Windows. So, there is any plan for Windows version?

Unable to run Windows release

Hello,

I downloaded the Windows zip from the releases page, but I'm unable to run it.

Steps:

  • Download zip
  • Unzip archive in local directory
  • Either double-click gonvim.exe or start it from the command line
  • The process the just sits idle, no window appearing

Let me know if I can provide any other information.

Window resize when not needed

When I have a long list of auto complete or a long command output the window get really big, it should limit the content inside the window like in regular vim.

Empty app window

gonvim doesn't work for me, it just shows this empty window:
gonvim-empty-window

EDIT:
Using latest revision d234997 on OS X 10.11.6

Error when running gonvim

Hi everyone, the first time I run gonvim the window was blank and if I press Enter I got this error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7963f9]

goroutine 19 [running, locked to thread]:
github.com/dzhou121/gonvim.(*AreaHandler).KeyEvent(0xc420150200, 0xc420128200, 0xc420126c00, 0xc420194000)
	/home/mahdi/src/src/github.com/dzhou121/gonvim/area.go:149 +0x109
github.com/dzhou121/ui.doAreaHandlerKeyEvent(0x1f44750, 0x1f40b10, 0x7ffc66e84cf0, 0xc400000008)
	/home/mahdi/src/src/github.com/dzhou121/ui/areahandler.go:263 +0x100
github.com/dzhou121/ui._cgoexpwrap_503c44ee75e0_doAreaHandlerKeyEvent(0x1f44750, 0x1f40b10, 0x7ffc66e84cf0, 0x1)
	github.com/dzhou121/ui/_obj/_cgo_gotypes.go:2458 +0x3f
github.com/dzhou121/ui._Cfunc_uiMain()
	github.com/dzhou121/ui/_obj/_cgo_gotypes.go:1842 +0x41
github.com/dzhou121/ui.start(0xc42013c120, 0x8c5330)
	/home/mahdi/src/src/github.com/dzhou121/ui/main.go:56 +0x196
created by github.com/dzhou121/ui.Main
	/home/mahdi/src/src/github.com/dzhou121/ui/main.go:36 +0x6b

Unable to attach nvim to UI

Environment:
NVIM v0.2.0-1171-g4566f7c7c
go version go1.8 linux/amd64
Linux sting 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST 2017 x86_64 GNU/Linux

Behavior
gonvim installed cleanly and without warnings or errors with go get. Upon execution, a window flashes and exits, throwing this error:

➜  ~ gonvim

(gonvim:6994): Gtk-WARNING **: Theme parsing error: gtk.css:1:62: Failed to import: The resource at “/org/gnome/gnomishdark/gtk-main.css” does not exist
nvim attach UI error nvim:nvim_ui_attach validation: No such ui option

The exit code is 0.

Split window mapping does not work.

Below commands are not working in gonvim but its working in neovim-qt client
nmap < c-k > :wincmd k
nmap < c-j > :wincmd j
nmap < c-h > :wincmd h
nmap < c-l > :wincmd l

Install error on RUlock undefined

$ go get -u github.com/dzhou121/gonvim/cmd/gonvim
# github.com/dzhou121/ui
../workspace/gocode/src/github.com/dzhou121/ui/areahandler.go:164: areasRWMutex.RULock undefined (type sync.RWMutex has no field or method RULock)
../workspace/gocode/src/github.com/dzhou121/ui/areahandler.go:217: areasRWMutex.RULock undefined (type sync.RWMutex has no field or method RULock)
../workspace/gocode/src/github.com/dzhou121/ui/areahandler.go:238: areasRWMutex.RULock undefined (type sync.RWMutex has no field or method RULock)
../workspace/gocode/src/github.com/dzhou121/ui/areahandler.go:247: areasRWMutex.RULock undefined (type sync.RWMutex has no field or method RULock)
../workspace/gocode/src/github.com/dzhou121/ui/areahandler.go:265: areasRWMutex.RULock undefined (type sync.RWMutex has no field or method RULock)

$ go version
go version go1.7.4 linux/amd64
11:13:23 dotfiles (master)$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:        17.04
Codename:       zesty

Typing a colon results in a SIGSEGV

A window shows up when starting gonvim, but typing : immediatly crashes the application and outputs this on the console:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x438a2a9]

This is using:

  • Go 1.8.3
  • macOS Sierra 10.12.5
  • Latest gonvim commit hash: 00ced37

Black screen on start

I did the go build and tried to start gonvim, but all I get is a black screen.

I can use :q so that is working

OS: macOS Sierra 10.12.3 16D32 x86_64

buit after 1195027 commit

screenshot

Getting this error when installing gonvim

Am I doing something wrong here?

➔ go get -v -u github.com/dzhou121/gonvim/cmd/gonvim

github.com/dzhou121/gonvim (download)
github.com/dzhou121/neovim-fzf-shim (download)
github.com/junegunn/fzf (download)
github.com/mattn/go-isatty (download)
github.com/mattn/go-runewidth (download)
github.com/neovim/go-client (download)
github.com/therecipe/qt (download)
github.com/dzhou121/gonvim
# github.com/dzhou121/gonvim
../../dzhou121/gonvim/editor.go:80: e.signal.GuiSignal undefined (type *editorSignal has no field or method GuiSignal)
../../dzhou121/gonvim/editor.go:84: e.signal.RedrawSignal undefined (type *editorSignal has no field or method RedrawSignal)
../../dzhou121/gonvim/editor.go:317: undefined: NewEditorSignal
../../dzhou121/gonvim/locpopup.go:50: editor.signal.ConnectLocpopupSignal undefined (type *editorSignal has no field or method ConnectLocpopupSignal)
../../dzhou121/gonvim/locpopup.go:97: editor.signal.LocpopupSignal undefined (type *editorSignal has no field or method LocpopupSignal)
../../dzhou121/gonvim/locpopup.go:178: editor.signal.LocpopupSignal undefined (type *editorSignal has no field or method LocpopupSignal)
../../dzhou121/gonvim/statusline.go:251: editor.signal.ConnectStatuslineSignal undefined (type *editorSignal has no field or method ConnectStatuslineSignal)
../../dzhou121/gonvim/statusline.go:255: editor.signal.ConnectLintSignal undefined (type *editorSignal has no field or method ConnectLintSignal)
../../dzhou121/gonvim/statusline.go:258: editor.signal.ConnectGitSignal undefined (type *editorSignal has no field or method ConnectGitSignal)
../../dzhou121/gonvim/statusline.go:263: editor.signal.StatuslineSignal undefined (type *editorSignal has no field or method StatuslineSignal)
../../dzhou121/gonvim/statusline.go:263: too many errors

panic: unbuffered done channel

Installed gonvim on MacOS X Sierra via:
go get -u github.com/dzhou121/gonvim/cmd/gonvim

launched and got panic:

$ gonvim
panic: unbuffered done channel

goroutine 7 [running, locked to thread]:
github.com/neovim/go-client/msgpack/rpc.(*Endpoint).Go(0xc42007b790, 0x44bdc4d, 0xe, 0xc420114e00, 0x0, 0x0, 0xc420019f50, 0x3, 0x3, 0x30)
	/Users/divan/src/github.com/neovim/go-client/msgpack/rpc/endpoint.go:257 +0x6b6
github.com/neovim/go-client/msgpack/rpc.(*Endpoint).Call(0xc42007b790, 0x44bdc4d, 0xe, 0x0, 0x0, 0xc420019f50, 0x3, 0x3, 0xc420039af8, 0xc420011ed8)
	/Users/divan/src/github.com/neovim/go-client/msgpack/rpc/endpoint.go:245 +0xa7
github.com/neovim/go-client/nvim.(*Nvim).call(0xc420019e90, 0x44bdc4d, 0xe, 0x0, 0x0, 0xc420019f50, 0x3, 0x3, 0x40107df, 0x4416200)
	/Users/divan/src/github.com/neovim/go-client/nvim/nvim.go:196 +0x84
github.com/neovim/go-client/nvim.(*Nvim).AttachUI(0xc420019e90, 0x5f, 0x17, 0xc420019f20, 0xc420019f20, 0x0)
	/Users/divan/src/github.com/neovim/go-client/nvim/apiimp.go:456 +0x14b
github.com/dzhou121/gonvim.InitEditor(0xc42010e090, 0x46e5e90)
	/Users/divan/src/github.com/dzhou121/gonvim/editor.go:189 +0xb9d
main.main.func2()
	/Users/divan/src/github.com/dzhou121/gonvim/cmd/gonvim/gonvim.go:17 +0x22
github.com/dzhou121/ui.doQueued(0x0)
	/Users/divan/src/github.com/dzhou121/ui/main.go:110 +0xb3
github.com/dzhou121/ui._cgoexpwrap_e401c76804b4_doQueued(0x0)
	github.com/dzhou121/ui/_obj/_cgo_gotypes.go:2581 +0x2b
github.com/dzhou121/ui._Cfunc_uiMain()
	github.com/dzhou121/ui/_obj/_cgo_gotypes.go:1900 +0x41
github.com/dzhou121/ui.start(0xc420114c40, 0x44d4188)
	/Users/divan/src/github.com/dzhou121/ui/main.go:56 +0x19b
created by github.com/dzhou121/ui.Main
	/Users/divan/src/github.com/dzhou121/ui/main.go:36 +0x6b

Can't install

Hi,

I use "get get" to get an error.

Detail:

go get -u -v github.com/dzhou121/gonvim/cmd/gonvim
github.com/dzhou121/gonvim (download)
github.com/dzhou121/gonvim-fuzzy (download)
github.com/junegunn/fzf (download)
github.com/mattn/go-isatty (download)
github.com/mattn/go-runewidth (download)
github.com/neovim/go-client (download)
github.com/therecipe/qt (download)
github.com/dzhou121/gonvim

github.com/dzhou121/gonvim

go1.8/src/github.com/dzhou121/gonvim/editor.go:82: e.signal.GuiSignal undefined (type *editorSignal has no field or method GuiSignal)
go1.8/src/github.com/dzhou121/gonvim/editor.go:86: e.signal.RedrawSignal undefined (type *editorSignal has no field or method RedrawSignal)
go1.8/src/github.com/dzhou121/gonvim/editor.go:317: undefined: NewEditorSignal
go1.8/src/github.com/dzhou121/gonvim/locpopup.go:53: editor.signal.ConnectLocpopupSignal undefined (type *editorSignal has no field or method ConnectLocpopupSignal)
go1.8/src/github.com/dzhou121/gonvim/locpopup.go:100: editor.signal.LocpopupSignal undefined (type *editorSignal has no field or method LocpopupSignal)
go1.8/src/github.com/dzhou121/gonvim/locpopup.go:181: editor.signal.LocpopupSignal undefined (type *editorSignal has no field or method LocpopupSignal)
go1.8/src/github.com/dzhou121/gonvim/statusline.go:255: editor.signal.ConnectStatuslineSignal undefined (type *editorSignal has no field or method ConnectStatuslineSignal)
go1.8/src/github.com/dzhou121/gonvim/statusline.go:259: editor.signal.ConnectLintSignal undefined (type *editorSignal has no field or method ConnectLintSignal)
go1.8/src/github.com/dzhou121/gonvim/statusline.go:262: editor.signal.ConnectGitSignal undefined (type *editorSignal has no field or method ConnectGitSignal)
go1.8/src/github.com/dzhou121/gonvim/statusline.go:267: editor.signal.StatuslineSignal undefined (type *editorSignal has no field or method StatuslineSignal)
go1.8/src/github.com/dzhou121/gonvim/statusline.go:267: too many errors

Minor graphical bug when resizing windows

gonvim version:       0.1
nvim version:         0.2.0
platform:             linux
desktop-environment:  xfce4

Steps to reproduce

  1. Create a vertical split (type :vsp)
  2. Maximise the gonvim window
  3. Make the splits equal size (type Ctrl-W =)

Screenshots

Current behavior

Current

Expected behavior

Expected

Git branch gets displayed with ctrl characters

The git command used to parse the branch is a "porcelain" command not meant to be used by scripts.
The result is that, if colors.ui = always is set, the color control characters are shown.

issue example

relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC

When running the advised command:
LANG=C go get -u github.com/dzhou121/gonvim/cmd/gonvim

I have :

# github.com/dzhou121/ui
/usr/bin/x86_64-linux-gnu-ld.bfd.real: ../go/src/github.com/dzhou121/ui/libui_linux_amd64.a(libui-combined.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld.bfd.real: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.10
Release:	16.10
Codename:	yakkety

I am not familiar with go so not sure how to fix it.? Gcc is gcc-6.real (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005. Might be a linking issue ?

No license

If you want it to be open source / free software and you want other people to use it you should probably add a license.

Cannot type tilde '~' character

Well this is wierd, pressing the tilde combo on my keyboard does absolutley nothing in gonvim.
It works everywhere else on my system though. Might be worth mentioning that I have a nordic keyboard layout and I'm typing tilde by using a combination AltGr-button and the button that adds umlauts to "¨" other letters, e.g. ẅüïäëä

Underline not work

I use a plugin vim-cursorword. This plugin does not work with gonvim ver 0.1. Words are not underlined. I'm sure that this is not related to my init.vim, because this plugin works with other neovim GUI frontend, nvim-qt.

Cursor does not display correctly

The cursor renders at a fixed location in the buffer, and does not move. It reacts to mode changes (highlighting differently for insert vs normal vs visual), and the rest of the UI indicates that the actual cursor is moving (relative line numbers change, text can be inserted at different locations, etc.), but the cursor never moves. In what may be a related issue, the various popups (completion, fuzzy-finder, lint error) seem to not be displaying.

I'm on Arch Linux with Neovim 0.2.0 and the latest gonvim. This behavior occurs even when gonvim is started as gonvim -u NONE <file>, so I don't think it's due to any of my plugins or configuration.

No anti-alaising on fonts with 1440p external monitor

Fonts look great on my MacBook Pro's screen, but when I move the window to my external Dell U3415W monitor, the fonts appear to be missing anti-aliasing. The tab and bottom bar fonts render correctly, but the fonts inside the editor do not.
screen shot 2017-06-29 at 8 04 02 am
screen shot 2017-06-29 at 8 05 15 am

nvim attach UI error nvim:nvim_ui_attach validation: No such ui option

Hi there,

I am trying to get gonvim running and download the prebuilt package for Linux.
I made both executable and get the following error.

nvim attach UI error nvim:nvim_ui_attach validation: No such ui option

I am running the KDE neon, that should be equivalent to Kubuntu 16.04.

Thanks

Plugins used in the Gifs

Hi,

It would be nice if you could provide the list of plugins that you use in the GIFs. Especially, the fuzzy finder.
Thanks for this project. Its working fine even on windows !

denite.nvim is freezed

I have tested the latest release versionof gonvim.
It works!

But if I use denite.nvim, gonvim is freezed.
It does not happened in the previous version.

Can you test it?

Sometimes some of <Ctrl-...> mappings don't work

Hi @dzhou121, i have this in my init.vim nnoremap <silent><C-p> :CtrlSpace<CR>, but in gonvim when i press <C-p> it just moves the cursor one line upper
also i have these settings for file saving:

nmap <c-s> :wa!<CR>
imap <c-s> <Esc><c-s>

the first one doesn't work, the second one inserts <C-D-S>
next thing is that i'm using https://github.com/junegunn/fzf.vim so when i run :Files and press <C-n> or <C-p> to move around it inserts ;5u inside of fzf input prompt

I'm using NVIM v0.2.0 on Kernel: 4.9.31-1-MANJARO x86_64 (64 bit) Desktop: Xfce 4.12.3 Distro: Manjaro Linux

Thank you very much for your work !

EDIT: <C-f> and <C-b> in normal mode also don't work

Unhandle events at launch

When launching gonvim, a blank window appears and these messages loops in the terminal

Unhandle event mode_info_set
Unhandle event update_sp


Ubuntu 14,04
go version go1.8.3 linux/amd64
NVIM v0.2.1-dev

wrong keyboard layout.

I use a French layout (azerty) but gonvim seems to interpret it as a qwerty so if I type 'a', 'q' is printed. That's quite strange.

Error when trying to install

I get this error, when I try to install the program.

$ go get -u github.com/dzhou121/gonvim/cmd/gonvim
# github.com/dzhou121/ui
/usr/bin/ld: .go/src/github.com/dzhou121/ui/libui_linux_amd64.a(libui-combined.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

I am running Ubuntu Gnome 17.04
Installed packages golang-go, from the ubuntu repository.

My go path:

export GOPATH="$HOME/.go"

Long completion lists do not display properly

The popup for completions seems to have a bug related to displaying long lists.

For example:
Python import list
LaTeX citations

I'm on Arch Linux with Neovim 0.2.0 and the latest gonvim. I can give more diagnostic information if that helps.

cursor out of sync with font

After launcing gonvim -u NONE *.go
The further I go on a line the more the cursor is out of sync.
I have changed my systems default font. Perhaps I need a fixed width default font.
Let me know if you want more info

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.