liteide 找不到 go 路径错误修复

文章详细描述了如何在Windows环境下修改LiteIDE配置文件,调整Go环境变量,以适应开发需求,包括设置GOROOT,GOPATH,CGO_ENABLED等,确保正确启动和项目构建。
摘要由CSDN通过智能技术生成

在配置文件:C:\Users\iwlb\AppData\Roaming\liteide\liteide.ini中修改

[liteenv]
currentenvid=win64

改为

[liteenv]
currentenvid=system

启动脚本:

set GO111MODULE=off
set GOROOT=M:\work\tool\go1.21.2.windows-amd64
set GOPATH=M:\work\code\go
set PATH=M:\work\tool\msys64\mingw64\bin\;M:\work\tool\msys64\mingw64\x86_64-w64-mingw32\bin\;M:\work\tool\msys64\mingw64\bin;%PATH%;
set CGO_ENABLED=1
set LIB=M:\work\tool\msys64\mingw64\lib;M:\work\tool\msys64\mingw64\x86_64-w64-mingw32\lib;
set CPPFLAGS="-Wl,-Bdynamic -lgcc_s -lOpenCL -lM:\work\tool\msys64\mingw64\x86_64-w64-mingw32\lib\libsensapi.a -lwininet -Werror=no-implicit-function-declaration"
set GOARCH=amd64
rem set GOOS=windows
set PKG_CONFIG_PATH=M:\work\tool\msys64\mingw64\lib\pkgconfig
set MAGICK_CODER_MODULE_PATH=M:\work\tool\msys64\mingw64\lib\ImageMagick-7.0.10\modules-Q16HDRI\coders
taskkill /f /im gocode.exe
taskkill /f /im dlv.exe
start "" liteide38.2wlbbuildx32\bin\liteide.exe
rem liteide38.2wlbbuildx32\bin\liteide.exe

如果大纲无法自动定位函数参考配置文件:

[General]
side_side_hide=false

[golangdoc]
goroot=M:\\work\\tool\\go1.21.2.windows-amd64

[liteenv]
currentenvid=system

[sidebar_area]
Folders=2

[liteapp]
FolderShowHidenFiles=false
FolderShowDetails=false
FolderSplitMode=false
WindowStyle=sidebar
MaxRecentFile=32
MaxEditorCount=64
AutoLoadLastSession=true
SplashVisible=true
EditTabsClosable=true
StartupReloadFiles=true
FileWatcherAutoReload=false
EditTabEnableWhell=true
AutoIdleSaveDocuments=true
AutoIdelSaveDocumentsTime=15
ToolWindowShortcuts=true
EditorMouseExtNavigate=true
Qss=default.qss
CustomeIcon=false
CustomeIconPath=default

[FileBrowser]
root=
synceditor=true
ShowHiddenFiles=false
ShowDetails=false

[godocfind]
matchcase=true
matchword=false
useregexp=false

[goapisearch]
match_case=true

[markdown]
batch_usecss=true
batch_css=0
batch_oupath=
batch_hr=false
batch_page-break=true
css=textbrowser.css
syncsscrollhtml=true
syncviewhtml=false

[find]
matchWord=false
matchCase=false
useRegexp=false
wrapAround=true

[findfiles]
matchWord=false
matchCase=false
useRegexp=false
findSub=true
autoswitchdir=true

[FileManager]
synceditor=true
initpath=M:/work/code/go/src

[golangast]
outlinesynceditor=true

[editor]
fontzoom=140

[litedebug]
external\cmd=
external\args=
external\work=
curdebugger=debugger/delve1

[litebuild-custom]
 

[litedebug_watch]
 

[%General]
Language=zh_CN
WelcomePageVisible=true
ToolBarIconSize=0

[golangfmt]
goimportsstyle=true
autofmt=true
syncfmt=true
synctimeout=500

[keybord_shortcuts]
FileTest="Alt+T; Alt+C"

[litebuild]
outputautoclear=false

[mimetype]
tabtospace\text\x-python=true

[Documents]
FontZoom=100

[Recent1]
session=default

 

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值