-
Notifications
You must be signed in to change notification settings - Fork 753
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
vscode installed from flatpak fails to access the default go installation location /usr/local/go #3063
Comments
@TheUncleRemus Thanks for sharing your setup to workaround. Are you proposing to add this to a doc? It looks like the key is to install go in a location flatpak allows vscode to access and make the extension know about the location. |
Hi @hyangah yes! The key is to install My proposal can be:
thx. :) |
The suggestion is:
|
Hi @hyangah ,
|
@TheUncleRemus if it is about using go with other flatpak app, is there any flatpak community that can host the doc and review the contents? |
Hi @hyangah , {
"go.alternateTools": {
"go": "<path_to_go_bin>"
},
"go.goroot": "<path_to_goroot>",
"go.gopath": "<path_to_go_bin>"
} In every way...
thx |
Can you tell us more details what doesn't work? We can add a section in faq or advanced setting doc to mention your link, but we don't want to ask users to run a shell script that we don't understand or manage. |
Hi @hyangah ,
In fact if you see the error tooltip in vscode the value of the printed For this reason I have opened this thred. In summary:
After that you can use your
For this reason in my opinion a solid documentation will be useful for the user, also because I had read this thred and there are confusing opinion. Appendix: tooltip error in vscode configurationIf you want I can suppor to to you for docs pull requst. I apologize for the hentropic text :) |
@hyangah do you have any updates? |
Thanks for sharing the screenshots. From the screenshots, I guess the settings were not configured correctly.
Moreover, is your "go" command located in Can you try to fix the configuration errors and come up with a minimal configuration? |
Hi @hyangah , The point is not: the collision between he GOPATH var and vscode Yes, I known, this is not a I then I open this "issue" to propose an additional section to your doc. useful to describe this scenario. |
Thanks. But we want to provide accurate info. Please correct errors. Then
we are happy to have a place to link. (Wiki). For example, setting GOROOT
and GOPATH isn't necessary nowadays and sometimes setting it can lead to
confusion. I asked to test if they can be avoided, but it looks like the
option wasn't tested correctly.
…On Wed, Jan 10, 2024, 9:23 AM TheUncleRemus ***@***.***> wrote:
Hi @hyangah <https://github.com/hyangah> ,
don't focus to screenshots, because the point is not: "how can I configure
my vscode for golang".
The point is: "How can I configure my flatpak vscode for golang".
The point is not: the collision between he GOPATH var and vscode go
configuration (the screenshoots are misleading). The point is: have you a
documentation section that describe this situation? Thus, your
documentation describe the scenario when vscode is installed from flatpak
(the answear is: *no*!).
Yes, I known, this is not a vscode "problem" or a go problem, but with
the new era (potentially) of immutable OS, this scenario could be recurring.
I then I open this "issue" to propose an additional section to your doc.
useful to describe this scenario.
—
Reply to this email directly, view it on GitHub
<#3063 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGESL3KQQ3XN324H2AC4XTYN2P77AVCNFSM6AAAAAA72AYXJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUHE2DKNZVGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@hyangah onestly I don't understand. The point, for me, is: if you have this environment
You can configure your If you want a "green" setup (using flatpak), you need:
I don't have any other suggestions to you. If you want you can consider my observations useful to enrich your TuR |
proposal
I have published a simple repo for
go-vscode
configuration when vscode is installed from flatpak. You can to reach the repo at this link:Can you consider this configuration as proposal?
Thx!
The text was updated successfully, but these errors were encountered: