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

x/tools/gopls: Issue installing GopherJS package #45561

Closed
ghost opened this issue Apr 14, 2021 · 3 comments
Closed

x/tools/gopls: Issue installing GopherJS package #45561

ghost opened this issue Apr 14, 2021 · 3 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@ghost
Copy link

ghost commented Apr 14, 2021

What version of Go are you using (go version)?

$ go version
1.16.3

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Windows

go env Output
$ go env

What did you do?

I am trying to install a GopherJS package

package main

import (
	"fmt"

	"syscall/js"
)

func main() {
	fmt.Println("Hello Go !")
	js.Global.Get("document").Call("alert", "Hello JavaScript!")
	println("Yo JavaScript console")

}

What did you expect to see?

Hello Go inside of the compiler
hello JavaScript inside of the an JavaScript alert window
Yo JavaScript inside the web console

What did you see instead?

Error loading workspace: You are outside of a module and outside of $GOPATH/src. If you are using modules, please open your editor to a directory in your module. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new.

@seankhliao
Copy link
Member

please provide the output of go env

@seankhliao seankhliao changed the title Issue installing GopherJS package x/tools/gopls: Issue installing GopherJS package Apr 14, 2021
@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Apr 14, 2021
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Apr 14, 2021
@gopherbot gopherbot added this to the Unreleased milestone Apr 14, 2021
@heschi
Copy link
Contributor

heschi commented Apr 16, 2021

@heschi heschi modified the milestones: Unreleased, Backlog Apr 16, 2021
@stamblerre stamblerre modified the milestones: Backlog, gopls/unplanned Apr 27, 2021
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@stamblerre stamblerre removed this from the gopls/unplanned milestone May 14, 2021
@golang golang locked and limited conversation to collaborators May 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants