首先尝试New Project,按照之前的GOROOT新建 报错Go SDK in WSL cannot be used for the Windows project。那么执行以下操作: 打开Goland,在File>Settings>Build,Execution,Deployment>Run Targets中新建WSL,配置如下图: 上面Add language runtime选择Go,完成后在Goland右上角Edit Configurations中新建Go build并保存,完...
直接设置go root浏览到wsl2里面的go文件夹也是不行的,提示错误不是有效的go sdk。 网上看了不少文章,后来在jetbrains官网找到了关于这个issue。 按这个issue里进行设置https://youtrack.jetbrains.com/issue/GO-…
go install github.com/go-delve/delve/cmd/dlv 我们直接开始配合goland进行debug。 打开debug配置: 打开项目根目录,使用命令编译并启动dlv: go1.18 build -o main -gcflags "all=-N -l" && dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./main 命令中的第一个main是g...
二、Linux(WSL)安装Go 1. 下载 代码语言:javascript 代码运行次数:0 复制Cloud Studio 代码运行 wget https://golang.google.cn/dl/go1.20.6.linux-amd64.tar.gz 2. 解压缩 代码语言:javascript 代码运行次数:0 复制Cloud Studio 代码运行 sudo tar -C /usr/local -xzf go1.20.6.linux-amd64.tar.gz ...
1.deepin在wsl上体验2023-07-20 2.goland基于wsl编译构建程序2023-08-22 收起 问题# 在window上构建出linux-amd64程序 解决# https://www.jetbrains.com/help/go/how-to-use-wsl-development-environment-in-product.html x01|window wsl2安装# 点击查看 x02|从store下载linux# deepin centos x03|配置...
Note that GoLand does not supportlegacy WSL, which you may have installed before upgrading your system to the build 16299.15 or later of Windows 10. In this case, you need to update your WSL distribution. Run the Linux distribution.
参考官网的说明 使用WSL 2 运行时调试器无法连接:GO-15209 (jetbrains.com) 1、更新到2024.1可以解决,下载链接 https://download-cdn.jetbrains.com.cn/go/goland-241.14494.155.exe 2、wsl不使用镜像模式 最终我升级到2024.1版本解决了这个bug
GoLand 现在支持连接到在适用于 Linux 的 Windows 子系统 (WSL) 中运行的 Docker。 您可以在 Preferences | Build, Execution, Deployment | Docker(设置 | 构建、执行、部署 | Docker)中设置连接。 新意图操作:Pull Docker image(拉取 Docker 镜像) 现在,有一种无需从 Dockerfile 或docker-compose.yml 运行即...
远程开发 在GoLand 2024.2 中,我们专注于修正可能对远程环境工作产生负面影响的问题和 bug。我们也修正了许多与使用 WSL 相关的实用性问题。Terraform 支持改进 我们大幅扩展了适用于 Terraform 插件的编码辅助功能。 适用于 Terraform 的全行代码补全 Full line code completion(全行代码补全)现在可用于 Terraform 开发...
etBrains GoLand 2021是一款专为GO语言而开发的编程开发工具,是目前最受欢迎的开发工具之一,我们推荐的这个版本是目前该软件系列中的全新发行版,该版本上提供了很多全新的新功能,可以帮助用户更高效的完成开发工作,这个GoLand 2021.3对WSL中的Go项目有原生支持,Inline Function重构,并支持Beta模式的远程开发。从...