spmeesseman / vscode-taskexplorer

Run and Manage Tasks for Visual Studio Code
Other
141 stars 30 forks source link

parse Makefile error #136

Closed xin053 closed 3 years ago

xin053 commented 3 years ago

using the lastest extension, I got this: QQ截图20210218140333

while version 1.28.0 1

spmeesseman commented 3 years ago

shit. can u provide me your makefile to test with?

xin053 commented 3 years ago

@spmeesseman

.PHONY: all build run gotool clean help

BINARY="gin-vue-admin"
GVA = "gva"

all: check gva mysqlredis-down mysqlredis-up initdb kill run

all-dev: check gva initdb kill run

all-debug: check gva initdb kill

gva:
    go env -w GO111MODULE=on
    go env -w GOPROXY=https://goproxy.io,direct
    go build -o ${GVA} cmd/main.go

initdb:
    @if [ -f ${GVA} ] ; then ./gva initdb && rm ${GVA} ; fi

linux-build:
    CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

windows-build:
    CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ${BINARY}.exe

mac-build:
    CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ${BINARY}

run:
    @go run main.go

kill:
    pkill -9 main; echo successful

mysqlredis-up:
    docker-compose -f ../docker-compose-dev.yaml up -d
    sleep 30

mysqlredis-down:
    docker-compose -f ../docker-compose-dev.yaml down -v

check:
    go fmt ./
    go vet ./

clean:
    @if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi
    @if [ -f ${GVA} ] ; then rm ${GVA} ; fi

help:
    @echo "make - 构建gva终端工具并初始化数据,初始化数据后删除gva终端工具,启动server项目"
    @echo "make gva - 构建gva终端工具"
    @echo "make initdb - 如果有gva终端工具就初始化数据,初始化数据后删除gva终端工具,没有则不会执行"
    @echo "make linux-build - 编译 Go 代码, 生成Linux系统的二进制文件"
    @echo "make windows-build - 编译 Go 代码, 生成Windows系统的exe文件"
    @echo "make mac-build - 编译 Go 代码, 生成Mac系统的二进制文件"
    @echo "make run - 直接运行 main.go"
    @echo "make kill - 杀死正在运行的 main.go"
    @echo "make mysqlredis-up - 启动 mysql 和 redis"
    @echo "make mysqlredis-down - 关闭 mysql 和 redis 并删除数据"
    @echo "make clean - 移除二进制文件"
    @echo "make check - 运行 Go 工具 'fmt' and 'vet'"
spmeesseman commented 3 years ago

:tada: This issue has been resolved in version 2.0.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: