komodo / komodo-go Goto Github PK
View Code? Open in Web Editor NEWKomodo extension to add Go lang support
Komodo extension to add Go lang support
smart indenting on { does not seem to work.
Open Preferences -> Languages -> Go
"Default Go location" fields are empty.
Fill them with the correct paths.
"Apply" and "OK"
Open Preferences -> Languages -> Go again.
"Default Go location" fields are empty again.
pystderr.log file reports the following:
ERROR:xpcom:Creation of class '<class 'component:koGoLanguage.KoGolangLinter'>' failed!
Exception details follow
ERROR:xpcom:Unhandled exception calling 'int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);'
Traceback (most recent call last):
File "/Applications/Komodo Edit 9.app/Contents/Resources/python/xpcom/server/policy.py", line 300, in _CallMethod_
return 0, func(*params)
File "/Applications/Komodo Edit 9.app/Contents/Resources/python/xpcom/server/factory.py", line 57, in createInstance
return self.klass()
File "/Users/leo/Library/Application Support/KomodoEdit/9.0/XRE/extensions/[email protected]/components/koGoLanguage.py", line 174, in __init__
getService(components.interfaces.koIAppInfoEx)
File "/Applications/Komodo Edit 9.app/Contents/Resources/python/xpcom/components.py", line 195, in getService
return serviceManager.getServiceByContractID(self.contractid, _get_good_iid(iid))
File "<XPCOMObject method 'getServiceByContractID'>", line 3, in getServiceByContractID
Exception: 2147746132 (NS_ERROR_FACTORY_NOT_REGISTERED)
[2015-03-27 11:40:11,658] [ERROR] lint:
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [koILintService.addRequest]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://komodo/content/lint/lint.js :: this.lintBuffer.prototype._issueRequest :: line 477" data: no]
+ toString (function) 3 lines
+ message (string) 'Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [koILintService.addRequest]'
+ result (number) 2147549183
+ name (string) 'NS_ERROR_UNEXPECTED'
+ filename (string) 'chrome://komodo/content/lint/lint.js'
+ lineNumber (number) 477
+ columnNumber (number) 0
+ inner (object) null
| + data (object) null
| + stack (string) 'this.lintBuffer.prototype._issueRequest@chrome://komodo/content/lint/lint.js:477:12
this.lintBuffer.prototype._continueRequest@chrome://komodo/content/lint/lint.js:421:8
'
+ location (object) JS frame :: chrome://komodo/content/lint/lint.js :: this.lintBuffer.prototype._issueRequest :: line 477
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://komodo/content/lint/lint.js'
| + name (string) 'this.lintBuffer.prototype._issueRequest'
| + lineNumber (number) 477
| + columnNumber (number) 12
| + sourceLine (string) ''
| + caller (object) JS frame :: chrome://komodo/content/lint/lint.js :: this.lintBuffer.prototype._continueRequest :: line 421
| + formattedStack (string) 'this.lintBuffer.prototype._issueRequest@chrome://komodo/content/lint/lint.js:477:12
this.lintBuffer.prototype._continueRequest@chrome://komodo/content/lint/lint.js:421:8
'
| + stack
this.lintBuffer.prototype._issueRequest@chrome://komodo/content/lint/lint.js:477:12
this.lintBuffer.prototype._continueRequest@chrome://komodo/content/lint/lint.js:421:8
-- EXCEPTION END --
While I'm not sure how that is suppose to work, but is it possible to show the documentations with gocode?
Is it possible to highlight builtins such as len
like Komodo does in Python?
I can't figure this out myself.
After installing Komodo and the plugin I open preferences -> languages -> Go and see the following:
XML Parsing Error: undefined entity
Location: chrome://golang/content/pref/pref-golang.xul
Line Number 40, Column 13:
`` in Go is for raw string literals. This is not highlighted.
From:
#11 (comment)
Yes - we would like to move this into the Komodo/ repository:
https://github.com/Komodo/
Sound okay?
can not open golang preference dialog.
error messsage:
XML Parsing Error: undefined entity
Location: chrome://golang/content/pref/pref-golang.xul
Line Number 40, Column 13: <caption label="&defaultGolangLocation.label;"/>
------------^
There is a great tool for doing this - https://github.com/bradfitz/goimports.
Issuing the cmd > "go get code.google.com/archive/p/rog-go/exp/cmd/godef"
per the installation instructions returns the following error>
"package code.google.com/archive/p/rog-go/exp/cmd/godef: unrecognized import path "code.google.com/archive/p/rog-go/exp/cmd/godef" (parse https://code.google.com/archive/p/rog-go/exp/cmd/godef?go-get=1: no go-import meta tags ())"
I get the following error when trying to use the plug-in.
System Info:
OS: Linux Mint 17
Komodo Version: Komodo Edit, version 8.5.4, build 14424, platform linux-x86_64.
Komodo-Go: 1.3.1
Failed to load the Python module: '/home/jason/.komodoedit/8.5/XRE/extensions/[email protected]/components/koGoLanguage.py'
Traceback (most recent call last):
File "/home/jason/Komodo-Edit-8/lib/mozilla/python/xpcom/server/loader.py", line 134, in loadModule
return self._getCOMModuleForLocation(aLocalFile)
File "/home/jason/Komodo-Edit-8/lib/mozilla/python/xpcom/server/loader.py", line 158, in _getCOMModuleForLocation
py_mod = loader.load_module( module_name_in_sys, stuff )
File "/home/jason/Komodo-Edit-8/lib/python/lib/python2.7/ihooks.py", line 272, in load_module
m = self.hooks.load_source(name, filename, file)
File "/home/jason/Komodo-Edit-8/lib/python/lib/python2.7/ihooks.py", line 170, in load_source
return imp.load_source(name, filename, file)
File "/home/jason/.komodoedit/8.5/XRE/extensions/[email protected]/components/koGoLanguage.py", line 27, in <module>
class koGoLanguage(KoLanguageBase, KoLanguageBaseDedentMixin):
File "/home/jason/.komodoedit/8.5/XRE/extensions/[email protected]/components/koGoLanguage.py", line 35, in koGoLanguage
[components.interfaces.koIInterpolationCallback]
File "/home/jason/Komodo-Edit-8/lib/mozilla/python/xpcom/components.py", line 103, in __getattr__
return self._get_one(attr)
File "/home/jason/Komodo-Edit-8/lib/mozilla/python/xpcom/components.py", line 153, in _get_one
raise xpcom.COMException(nsError.NS_ERROR_NO_INTERFACE, "The interface '%s' does not exist" % name,))
<class 'xpcom.Exception'>: 2147500034 (The interface 'koIInterpolationCallback' does not exist)
Nice. Thanks for this.
http://forum.komodoide.com/t/ide-9-golang-codeintel-failure/1563?u=diddledan (duplicated below):
referencing: http://forum.komodoide.com/t/komodo-ide-9-error-compiling-outline-unable-to-locate-go-executable/1405/11?u=diddledan
log lines:
[2015-05-12 20:40:24,644] [ERROR] process: process.py: can't execute None ("C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\extensions\[email protected]\golib\outline.exe" d:\daniel\documents\go\src\bang\cluster\cluster.go)
[2015-05-12 20:40:24,667] [ERROR] codeintel.go: Error executing '['C:\\Program Files (x86)\\ActiveState Komodo IDE 9\\lib\\mozilla\\extensions\\[email protected]\\golib\\outline.exe', u'd:\\daniel\\documents\\go\\src\\bang\\cluster\\cluster.go']': [Error 2] The system cannot find the file specified
[2015-05-12 20:40:24,727] [ERROR] codeintel.indexer: unexpected internal error in indexer: ignoring and continuing
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\codeintel2\indexer.py", line 516, in run
self._iteration()
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\codeintel2\indexer.py", line 583, in _iteration
buf.scan(mtime=request.mtime)
File "C:\Program Files (x86)\ActiveState Komodo IDE 9\lib\mozilla\python\komodo\codeintel2\citadel.py", line 279, in scan
scan_error = scan_tree[0].get("error")
This log suggests that the executable argument is empty in the _execute_child
function in <komodo-root>/lib/mozilla/python/komodo/process.py
. I've not figured-out where executable is specified yet, but I can see that it is external to the _execute_child
function in process.py
.
Do you have any ideas what I can do to get golang code intelligence to work based on the problems above? Is there any more information I can provide to help diagnosis?
If I open up a Go program, and attempt to run it via Debug, Run without Debugging, I get:
This is quite unintuitive, as most people would expect the program to run if you went to Debug, Run =).
I know there's a workaround, by using Tools, Run Command to manually run things like go run %F
(although the PATH for this is also weird), however, it'd be neat if there was integrated support for running Go programs.
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.