-
Notifications
You must be signed in to change notification settings - Fork 87
No candidates for package syscall/js #56
Comments
Edit: switched to using This is actually related to #46, but not in a necessarily obvious way. Here is an example that shows completions working for
gives
Two things to note:
#46 will have the side effect of solving point 1 because of the use of For point 2 to be true, we likely require the user's editor to retain some sort of context of the fact that the file/project/whatever needs This links back to discussion in https://groups.google.com/forum/#!topic/golang-tools/ZtCU2SteN1w So in summary; I think this issue can be closed because it's not a bug with |
…l/js This doesn't fix it for binary imports, but they already don't work properly esp. with the package cache related: mdempsky/gocode#56
* improve status bar error message when margo.sublime build fails * make marGocodeCtl a singletone reducer this also takes cache pruning (partially) out of the QueryCompletions hot path * improve gsuImporter correctness make gsuImporter session-based and cache the result ImportFrom to avoid ending up in a loop trying to import a package that just keeps failing * document that the importFrom() cache also covers pkgInfo() * remove the now unused nsf/gocode * trim func bodies in the srcimporter to reduce memory * srcimporter: add special-case hack to make completion work for syscall/js This doesn't fix it for binary imports, but they already don't work properly esp. with the package cache related: mdempsky/gocode#56
@myitcv I tried your steps and I still don't see the completions.
Am I missing something? @eternal-flame-AD has tried the same |
@ramya-rao-a the example above is not using modules either. Perhaps it's an error with the |
I skipped the cat/echo and used my editor to write the code in the file in my existing GOPATH :) |
@ramya-rao-a if you created the file by hand, is the byte offset (44 in my example) still correct? |
I tried reproduce and was able to get completions when setting GOOS and GOARCH in the client request. Closing because this is not a gocode issue. |
It seemed that gocode failed to provide autocompletion candidates for
syscall/js
package.The text was updated successfully, but these errors were encountered: