liteide 找不到 go 路径错误修复

发布于:2024-04-23 ⋅ 阅读:(22) ⋅ 点赞:(0)

在配置文件: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