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

Windows support #8

Closed
zacbrown opened this issue Apr 18, 2016 · 7 comments
Closed

Windows support #8

zacbrown opened this issue Apr 18, 2016 · 7 comments

Comments

@zacbrown
Copy link

Looks like a neat project here and I'm interested in possibly contributing some expertise as a Windows programmer. What, in your estimation, is missing to get Micro running on Windows? (Note: I've not yet done the leg work to find out what's missing).

@zyedidia
Copy link
Owner

I actually have no idea what's missing, it might even run perfectly on Windows.

I don't own a Windows machine and have not tested micro on Windows at all. Technically it compiles (well, I was able to cross-compile a Windows exe) but I don't know whether there are any problems with it at runtime.
Tcell (the terminal library I am using for micro) says it supports Windows so that's good.

Really I guess I need someone to try and run it on Windows and report any issues here.

@mkody
Copy link

mkody commented Apr 18, 2016

Oh well, I was trying to install it right now by just running the make command with MinGW installed, but mkdir -p ~/.micro didn't work well, it created a ~ folder in the current directory (and I've nuked my HOME when trying to delete that folder...)

I'm going to try again.

@mkody
Copy link

mkody commented Apr 18, 2016

So the biggest issue I've got so far is that I can't use the backspace, it opens the help page.
Also, if I click somewhere, it crashes.

Micro encountered an error: runtime error: index out of range
runtime.errorString runtime error: index out of range
c:/go/src/runtime/panic.go:423 (0x435e8d)
c:/go/src/runtime/panic.go:12 (0x4347d3)
H:/Documents/dev/micro/src/cursor.go:282 (0x4055c0)
        (*Cursor).GetCharPosInLine: visualLine := strings.Replace(c.v.buf.lines[lineNum], "\t", "\t"+Spaces(tabSize-1), -1)
H:/Documents/dev/micro/src/view.go:334 (0x40ee6a)
        (*View).MoveToMouseClick: x = v.cursor.GetCharPosInLine(y, x)
H:/Documents/dev/micro/src/view.go:517 (0x40f148)
        (*View).HandleEvent: v.MoveToMouseClick(x, y)
H:/Documents/dev/micro/src/micro.go:170 (0x40ae2d)
        main: view.HandleEvent(event)
c:/go/src/runtime/proc.go:111 (0x438134)
c:/go/src/runtime/asm_386.s:1662 (0x45c7e1)

@aerth
Copy link
Contributor

aerth commented Apr 18, 2016

Mouse thing related to #16

@aerth
Copy link
Contributor

aerth commented Apr 18, 2016

micro exe

@leonardosnt
Copy link

👍

zyedidia added a commit that referenced this issue Apr 18, 2016
This is necessary because some terminals send Backspace and Ctrl-h as
the same key, so Ctrl-h must be reserved for deleting. See #8.
@zyedidia
Copy link
Owner

Delete should work on Windows now. The only issue (I think) that remains is #23 but that's more general than just Windows, so I'm going to close this now.

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

5 participants