gwynethllewelyn / go.novaextension Goto Github PK
View Code? Open in Web Editor NEWA quick & dirty Go language template for the Panic Nova editor
License: Other
A quick & dirty Go language template for the Panic Nova editor
License: Other
The plugin needs to be reloaded each time a new empty .go file is created or a new empty .go file is opened.
MacOS 12.1 (21C52)
Nova app 8.3 Build 343365
Go Extension 0.4.3
Extension Console Log:
Go Language Server [23:57:11.598000] 2021/12/31 23:57:11 no completions found: %!w(getting file for Completion: <nil> (package completions: line is beyond end of file 1))
position={3 0}
---
Go Language Server[23:57:11.857000] 2021/12/31 23:57:11 imports fixes: AllImportsFixes: /Volumes/Macintosh HD/Users/user/code/sn/cmd/web/test.go:1:1: expected ';', found 'EOF' (and 2 more errors)
file="/Volumes/Macintosh HD/Users/user/code/sn/cmd/web/test.go"
---
Go Language Server[23:57:11.857000] 2021/12/31 23:57:11 analyzer "tests" failed: analysis tests for package github.com/user/sn/cmd/web panicked: runtime error: invalid memory address or nil pointer dereference
---
Go Language Server[23:57:11.858000] 2021/12/31 23:57:11 no completions found: %!w(getting file for Completion: <nil> (package completions: line is beyond end of file 1))
position={3 0}
---
Go Language Server[23:57:11.892000] 2021/12/31 23:57:11 no highlight: line is beyond end of file 1
URI=file:///Volumes/Macintosh HD/Users/user/code/sn/cmd/web/test.go
---
Go Language Server[23:57:12.153000] 2021/12/31 23:57:12 no highlight: line is beyond end of file 1
URI=file:///Volumes/Macintosh HD/Users/user/code/sn/cmd/web/test.go
Hello.
I'm not sure if there is a simple filter that can be applied to prevent running in a non-Go repo, or exactly what is going on here, but if I enable this extension and open up a very large TypeScript codebase (tens of thousands of files), this extension will go CPU crazy and eventually crash Nova.
There are no Golang files or files with a .go
extension in this project folder. Just lots and lots of TypeScript (.ts
) files.
It's not a deal breaker as I can disable the extension and re-enable it when needed. Thanks for the tool!
Hello Gwyneth, I've just downloaded the demo of Nova and have installed your extension along with the other two Go extensions. Visually it all looks good, although I notice that it seems to be Spicer's Go Tools
which provides the syntax highlighting.
The thing that has me stumped is how to enable Run and Debug. Ideally, the debugging would be done in conjunction with Derek Parker's Delve tool, but at the moment all the useful options are greyed out.
Is it something blindingly obvious that I have missed or is the ability to actually run programs only available in the paid version of Nova? I can't imagine that this is the case, but...
Thanks in advance for any clue that you can give me!
Cheers,
Carl
Sometimes when I try to tab (for example fmt.Println
) Nova shows me this error:
Ranges of edits cannot be applied to document "<path-to-go-file>", as they exceed the current content.
I censored the path but it would show the path of the file. Any ideas why this is happening? Also I noticed that sometimes the IntelliSense doesn't work at all and the only thing it suggests is fmt.Fprint
(only tested fmt for now)
This is really the only thing holding me back from Nova full time.
When I click on a go.mod
file, Nova opens a dysfunctional video player interface instead of an editor.
Since this extension provides a syntax for go.mod
files, I assume that either a recent Nova update has broken this, or there is some setting I am unable to find to fix this.
I am mainly opening this issue to see whether this is a problem with my personal configuration or affects other people as well.
//////////////////////////////////////////////////////////////////////
// Foo functions
//////////////////////////////////////////////////////////////////////
fails to render properly. (Inserting a space after the initial "//" on lines 1 and 3 fixes this.)
(Really great work -- thanks very much for taking the time to create this extension!)
I'm unable to install the go extension on the panic nova editor. it takes forever to install and it shoes "<>" under the name of the extension while downloading. (not sure if this is the desired behavior)
It also shows an exclamatory mark in front of the extension name in the extensions list
Nova 9.2
Thank you for the fantastic extension! I'd like to use the language server setting ON, but whenever I do so, typing becomes very laggy and you can tell the editor is waiting for the LSP to continue. Is there an additional setting I can set for LSP to be done in the background so that I don't experience this? Has this been reported before?
Thanks again
I've been able to get gopls barely working with nova. The issue is that the gopls binary needs to be fetched statically from the go/bin directory. Example: /go/bin/gopls
. I'd be happy to make a PR with my changes, if you'd like.
Although, it's still extremely unstable, and I'm not sure if it's Nova's fault. But, I'll keep working away at it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.