我尝试在运行配置中添加参数。
我添加了master sequential pg-*.txt
。但当我开始运行时,出现了错误。
/usr/local/go/bin/go run /home/asus/dev/6.824/src/main/wc.go master sequential pg-*.txt
master: Starting Map/Reduce task wcseq
panic: open pg-*.txt: no such file or directory
但是我在终端使用命令是OK的。
~/dev/6.824/src/main$ /usr/local/go/bin/go run /home/asus/dev/6.824/src/main/wc.go master sequential pg-*.txt
master: Starting Map/Reduce task wcseq
Merge: read mrtmp.wcseq-res-0
Merge: read mrtmp.wcseq-res-1
Merge: read mrtmp.wcseq-res-2
master: Map/Reduce task completed
我认为问题在于通配符。那么如何在Intellij IDEA参数中使用通配符?
Code Style / Do not format
:请使用;
,例如:* json; * md
。 - LogicalKip