每当我运行咕噜翡翠时,我都会收到错误:
Warning: pattern.indexOf is not a function Use --force to continue.
Run Code Online (Sandbox Code Playgroud)
现在这是我的玉任务:
jade: {
options: {
pretty: true
},
all: {
files: {
expand:true,
cwd: 'src/static/jade',
ext: "html",
src: ['src/static/jade/**/*.jade', '!src/static/jade/_includes'],
dest: 'build/'
}
}
}
Run Code Online (Sandbox Code Playgroud)
所以基本上我正在尝试将jade文件src/static/jade(包括subdirs,除外_include)放入并build保存目录结构.我试过评论这expand条线,但它给了我:
Warning: Unable to read "src/static/jade" file (Error code: EISDIR). Use --force to continue.
Run Code Online (Sandbox Code Playgroud)
也许我会以错误的方式解决这个问题.我该怎么解决这个问题?
我一直在尝试在我的编程项目中使用Poco库,但我得到链接错误.我的C++文件在main函数中只有一行代码,应该可以正常编译.
我的C++文件:
/**
* Created by kkprince on 27/06/16.
*/
#include <Poco/AutoPtr.h>
#include <Poco/Util/IniFileConfiguration.h>
using Poco::AutoPtr;
using Poco::Util::IniFileConfiguration;
int main(int argc, char* argv[]){
AutoPtr<IniFileConfiguration> pConf(new IniFileConfiguration("invalid"));
}
Run Code Online (Sandbox Code Playgroud)
我的CMakeLists:
cmake_minimum_required(VERSION 3.5)
project(village.io-server CXX)
include(conanbuildinfo.cmake)
conan_basic_setup()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "/home/kkprince/ClionProjects/village.io/build")
set(CMAKE_BINARY_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
find_package(Boost
COMPONENTS program_options system REQUIRED)
set(SOURCE_FILES main.cpp) # src/Runner.cpp src/Runner.h src/workQueue/workQueue.h src/server/Server.cpp src/server/Server.h)
add_executable(village.io-server ${SOURCE_FILES})
TARGET_LINK_LIBRARIES(village.io-server ${Boost_LIBRARIES} ${CONAN_LIBS})
Run Code Online (Sandbox Code Playgroud)
还有我的conanfile.txt:
[requires]
Poco/1.7.3@lasote/stable
easyloggingpp/9.80@memsharded/testing
[options]
Poco:shared=False
[generators]
cmake
Run Code Online (Sandbox Code Playgroud)
我生成的conaninfo.txt:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=5.3
os=Linux
[requires]
Poco/1.Y.Z
easyloggingpp/9.Y.Z
[options]
[full_settings]
arch=x86_64 …Run Code Online (Sandbox Code Playgroud)