我使用 github+jekyll 构建博客,我尝试将 jekyll 安装到本地(Windows 10)?当我运行时它失败gem install jekyll了,堆栈跟踪是
C:\Developments\FrontEnd\rubygems-2.7.7>gem install jekyll
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
current directory: C:/Developments/FrontEnd/Ruby25-x64/lib/ruby/gems/2.5.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
C:/Developments/FrontEnd/Ruby25-x64/bin/ruby.exe -r ./siteconf20180806-33956-l8y76h.rb extconf.rb
creating Makefile
current directory: C:/Developments/FrontEnd/Ruby25-x64/lib/ruby/gems/2.5.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR=" clean
'make' is not recognized as an internal or external command,
operable program or batch file.
current directory: C:/Developments/FrontEnd/Ruby25-x64/lib/ruby/gems/2.5.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR="
'make' is not recognized as an internal or …Run Code Online (Sandbox Code Playgroud)问题:配置 karma 和声纳后,声纳覆盖范围为 0%。
Arch:应用程序使用Angular7和Node v8.14,集成的Sonarqube是最新版本,JDK是java 11。
问题描述:这些是我的本地环境,在我配置并运行覆盖范围和声纳之后,业力覆盖率为 35%,但在声纳中它仍然是 0%。
请看我的代码如下:
package.json:
"scripts": {
"ng": "ng",
"start": "node server.js",
"build": "ng build",
"test": "ng test --code-coverage",
"lint": "ng lint",
"e2e": "ng e2e",
"sonar": "sonar-scanner"
},
"dependencies": {
...
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"puppeteer": "^2.0.1"
},
"devDependencies": {
...
"sonarqube-scanner": "^2.6.0",
}
Run Code Online (Sandbox Code Playgroud)
sonar-project.properties:
sonar.projectKey=aaa
sonar.projectName=AAA
sonar.projectVersion=1.0.0
sonar.sources=src
sonar.sourceEncoding=UTF-8
sonar.test.reportPath=./test-results.xml
sonar.language=ts
sonar.exclusions=**/node_modules/**
sonar.tests=src
sonar.typescript.lcov.reportPaths=coverage/lcov.info
sonar.test.inclusions=**/*.spec.ts
Run Code Online (Sandbox Code Playgroud)
karma.conf.js: …
背景:
我使用 Macbook pro 开发 java 应用程序,效果很好。而在我将 mac os 从 10.x 升级到最新版本后Big Sur,mvn clean package抛出以下异常:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project dq-common: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/../lib/tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME …Run Code Online (Sandbox Code Playgroud)