text:
修改布局文件增量编译出错！

全量编译没有问题，代码改动增量也没有问题，修改res里面的内容增量编译就出错，下面日志只是修改了简单的textview文本，所有的布局文件修改都会报下面的错误：
python freeline.py --debug
[DEBUG] [dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=True, version=False, wait=False)
[DEBUG] [dispatcher] *** Android Gradle Plugin Version: 2.2.3
[DEBUG] [dispatcher] *** Freeline Gradle Plugin Version: 0.8.6
[DEBUG] [dispatcher] *** Freeline Python Version: v0.8.4
[DEBUG] [scan_changed_files_command] find /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml has modification.
[DEBUG] find MPChartLib3 has 0 java files modified.
[DEBUG] find network has 0 java files modified.
[DEBUG] find app has 0 java files modified.
[DEBUG] find kefu has 0 java files modified.
[DEBUG] find live has 0 java files modified.
[DEBUG] find yxrequest has 0 java files modified.
[DEBUG] find ui has 0 java files modified.
[DEBUG] find base has 0 java files modified.
[DEBUG] find social_sdk_library_project has 0 java files modified.
[DEBUG] find guideview has 0 java files modified.
[DEBUG] find utils has 0 java files modified.
[DEBUG] find GenseeLib has 0 java files modified.
[DEBUG] project just need a incremental build.
[DEBUG] file changed list:
{
"build_info": {
"last_clean_build_time": 1488937382.0,
"is_root_config_changed": false
},
"projects": {
"MPChartLib3": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"network": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"app": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [
"/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml"
],
"config": [],
"cpp": [],
"manifest": []
},
"kefu": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"live": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"yxrequest": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"ui": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"base": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"social_sdk_library_project": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"guideview": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"utils": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
},
"GenseeLib": {
"src": [],
"so": [],
"assets": [],
"libs": [],
"res": [],
"config": [],
"cpp": [],
"manifest": []
}
}
}
[DEBUG] [gradle_inc_builder] find app modules have res changed
[DEBUG] [task_engine] depth: 1, task: [connect_device_task]
[DEBUG] [task_engine] depth: 1, task: [gradle_aapt_task]
[DEBUG] [task_engine] depth: 2, task: [utils]
[DEBUG] [task_engine] depth: 2, task: [network]
[DEBUG] [task_engine] depth: 2, task: [MPChartLib3]
[DEBUG] [task_engine] depth: 2, task: [kefu]
[DEBUG] [task_engine] depth: 2, task: [ui]
[DEBUG] [task_engine] depth: 2, task: [social_sdk_library_project]
[DEBUG] [task_engine] depth: 2, task: [guideview]
[DEBUG] [task_engine] depth: 2, task: [GenseeLib]
[DEBUG] [task_engine] depth: 4, task: [yxrequest]
[DEBUG] [task_engine] depth: 5, task: [base]
[DEBUG] [task_engine] depth: 7, task: [live]
[DEBUG] [task_engine] depth: 13, task: [app]
[DEBUG] [task_engine] depth: 14, task: [merge_dex_task]
[DEBUG] [task_engine] depth: 16, task: [gradle_sync_task]
[DEBUG] [task_engine] depth: 17, task: [clean_cache_task]
[DEBUG] [task_engine] depth: 18, task: [update_stat_task]
[DEBUG] [connect_device_task] connect_device_task start to run after waiting 0.0s
[DEBUG] [gradle_aapt_task] gradle_aapt_task start to run after waiting 0.0s
[DEBUG] [sync_client] start to connect device...
[DEBUG] [app_inc_invoker] find app has resource files modification.
[DEBUG] [sync_client] apktime path: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-assets/apktime
[DEBUG] [gradle_aapt_task] start to execute aapt command...
[DEBUG] [sync_client] your local sync value is: 404114
[DEBUG] [tracing] generate_id_keeper_files: 0.697135925293ms
[DEBUG] [sync_client] your local uuid value is: 404114
[DEBUG] replace /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res with target resource dir: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res
[DEBUG] [databinding_processor] java -jar freeline/release-tools/databinding-cli8.jar -p com.yunxiao.haofenshu -i /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res -o /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res -d /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo -c /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/java -l false -v 14 -s /Users/xzz/Library/Android/sdk -a /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml
[DEBUG] [sync_client] server result is 1
[DEBUG] [sync_client] find device port: 41128
[DEBUG] [connect_device_task] connect_device_task finish in 0.2s
[DEBUG] [databinding_processor] process databinding resources success: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res
[DEBUG] [app_inc_invoker] replace /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res/layout/activity_login.xml with output path: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res/layout/activity_login.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_active_account-layout.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_active_change_pwd-layout.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_bind_student-layout.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_forgetpwd-layout.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_login-layout.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_register-layout.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/activity_reset_pwd-layout.xml
[DEBUG] [databinding_processor] process layout info: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/merged_layoutinfo/list_item_loginpop-layout.xml
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.bindPhone.ActiveBindPhoneContract.Presenter
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.changePwd.ActiveChangePwdContract.Presenter
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.bindStudent.BindStudentContract.Presenter
[DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/forgetPwd/ForgetPwdViewModel.java
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.forgetPwd.ForgetPwdContract.Presenter
[DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/utils/PrefUtil.java
[DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/LoginViewModel.java
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.login.LoginContract.Presenter
[DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/register/RegisterViewModel.java
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.register.RegisterContract.Presenter
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.resetPwd.ResetPwdContract.Presenter
[DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java-gen/com/yunxiao/haofenshu/account/greendao/AccountDb.java
[DEBUG] [databinding_processor] found related java file: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/AccountPopAdapter.java
[DEBUG] [databinding_processor] classpath file not found: com.yunxiao.haofenshu.start.login.AccountPopAdapter.ViewHolder
[DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/java/android/databinding/layouts/DataBindingInfo.java to app module
[DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/forgetPwd/ForgetPwdViewModel.java to app module
[DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/utils/PrefUtil.java to app module
[DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/LoginViewModel.java to app module
[DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/register/RegisterViewModel.java to app module
[DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java-gen/com/yunxiao/haofenshu/account/greendao/AccountDb.java to app module
[DEBUG] [app_inc_invoker] add /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/java/com/yunxiao/haofenshu/start/login/AccountPopAdapter.java to app module
[DEBUG] [tracing] incremental_databinding_process: 713.155031204ms
[DEBUG] replace /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/res with target resource dir: /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res
[DEBUG] [app_inc_invoker] find relative path: res/layout/activity_login.xml
[DEBUG] [app_inc_invoker] find relative path: res/values/freeline_id_keeper_public.xml
[DEBUG] [app_inc_invoker] find relative path: res/values/freeline_id_keeper_ids.xml
[DEBUG] [app_inc_invoker] aapt exec: freeline/release-tools/FreelineAapt package -f -I /Users/xzz/Library/Android/sdk/platforms/android-23/android.jar -M /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/AndroidManifest.xml -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-databinding/app/846ed7356fdcadb599ee1abd70757638/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/social_sdk_library_project/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/social_sdk_library_project/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/social_sdk_library_project/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/kefu/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/guideview/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/ui/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/GenseeLib/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/guideview/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/utils/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/network/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/guideview/src/main/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.6/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/net.zetetic/android-database-sqlcipher/3.5.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/res -S /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/res -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/src/main/assets -A /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/kefu/src/main/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.6/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/assets -A /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/assets --custom-package com.yunxiao.haofenshu -m -J /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup --auto-add-overlay -P /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/res/values/freeline_id_keeper_public.xml -F /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/respack/app.pack --debug-mode --auto-add-overlay --no-version-vectors --buildIncrement res/layout/activity_login.xml:res/values/freeline_id_keeper_public.xml:res/values/freeline_id_keeper_ids.xml --resoucres-md5-cache-path /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/arsc_cache.dat --ignore-assets public_id.xml:public.xml:.bak:.
[DEBUG] [gradle_aapt_task] gradle_aapt_task finish in 0.8s
[DEBUG] [network] network start to run after waiting 0.8s
[DEBUG] [utils] utils start to run after waiting 0.8s
[DEBUG] [MPChartLib3] MPChartLib3 start to run after waiting 0.8s
[DEBUG] [kefu] kefu start to run after waiting 0.8s
[DEBUG] [ui] ui start to run after waiting 0.6s
[DEBUG] [social_sdk_library_project] social_sdk_library_project start to run after waiting 0.0s
[DEBUG] [guideview] guideview start to run after waiting 0.0s
[DEBUG] [GenseeLib] GenseeLib start to run after waiting 0.0s
[DEBUG] [yxrequest] yxrequest start to run after waiting 0.0s
[DEBUG] [base] base start to run after waiting 0.0s
[DEBUG] [live] live start to run after waiting 0.0s
[DEBUG] [app] app start to run after waiting 0.0s
[DEBUG] [merge_dex_task] merge_dex_task start to run after waiting 0.0s
[DEBUG] [gradle_sync_task] gradle_sync_task start to run after waiting 0.0s
[DEBUG] [clean_cache_task] clean_cache_task start to run after waiting 0.0s
[DEBUG] [update_stat_task] update_stat_task start to run after waiting 0.0s
[DEBUG] [task_engine] task engine occurs exception, engine will exit.
[DEBUG] [task_engine] it takes task engine 0.85s to execute tasks.
[ERROR] --------------------------------------------------------
[ERROR] Freeline ERROR
[ERROR] --------------------------------------------------------
gChangeList = res/layout/activity_login.xml:res/values/freeline_id_keeper_public.xml:res/values/freeline_id_keeper_ids.xml
-resoucres-md5-cache-path = /Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/arsc_cache.dat
warning: overwriting '/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.6/assets/apktime' with '/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/freeline-assets/apktime'
(skipping file '.DS_Store' due to ANDROID_AAPT_IGNORE pattern '.')
(skipping file '.DS_Store' due to ANDROID_AAPT_IGNORE pattern '.')
(skipping file '.DS_Store' due to ANDROID_AAPT_IGNORE pattern '.*')
/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/AndroidManifest.xml:2: error: Error parsing XML: unbound prefix
[ERROR] --------------------------------------------------------
[ERROR] incremental res build failed.
[ERROR] --------------------------------------------------------
[DEBUG] Prepare tasks time: 0.7s
[DEBUG] Task engine running time: 0.9s
[DEBUG] Total time: 1.6s
[DEBUG] --------------------------------------------------------

@sixgodIT 日志已经有提示：
/Users/xzz/AndroidStudioProjects/haofenshu/HaoFenShu/app/build/freeline/app/backup/AndroidManifest.xml:2: error: Error parsing XML: unbound prefix
这个文件有问题，修改即可。

@lomanyong 这个文件没有做任何改动，改的只是个简单的布局文件，没有改动注册表，

@lomanyong 全量编译时也会报错，但是能运行起来。
[INFO] preparing for tasks...
[-][read_project_info_task] finished. in 3.9s
[-][generate_file_stat_task] finished. in 0.2s
[-][gradle_clean_build_task] finished. in 172.2s
[-][clean_all_cache_task] finished. in 0.2s
[-][install_apk_task] finished. in 9.8s
[-][build_base_resource_task] failed. in 3.7s
[-][generate_project_info_task] finished. in 0.0s
[-][generate_apt_files_task] finished. in 0.0s
[-][append_file_stat_task] finished. in 0.0s
[ERROR] --------------------------------------------------------
[ERROR] Freeline ERROR
[ERROR] --------------------------------------------------------
-resoucres-md5-cache-path = /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/arsc_cache.dat
warning: overwriting '/Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.5/assets/apktime' with '/Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/freeline-assets/apktime'
/Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup/AndroidManifest.xml:2: error: Error parsing XML: unbound prefix
[ERROR] --------------------------------------------------------
[ERROR] build base resources failed with: freeline/release-tools/FreelineAapt package -f -I /Users/xzz/Library/Android/sdk/platforms/android-23/android.jar -M /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup/AndroidManifest.xml -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/freeline-databinding/app/69dcfbfb96e82d74def31f0862c7e92a/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/social_sdk_library_project/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/hfs-parent/kefu/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/ui/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/src/main/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/social_sdk_library_project/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/GenseeLib/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/resValues/debug -S /Users/xzz/AndroidStudioProjects/hfs-parent/social_sdk_library_project/build/generated/res/rs/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/base/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/utils/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/MPChartLib3/build/generated/res/resValues/release -S /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/src/main/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/yunxiaoui/network/src/main/res -S /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/res/rs/debug -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.5/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/net.zetetic/android-database-sqlcipher/3.5.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/res -S /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup/res -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/freeline-assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/src/main/assets -A /Users/xzz/AndroidStudioProjects/yunxiaoui/yxrequest/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/yunxiaoui/live/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/hfs-parent/kefu/src/main/assets -A /Users/xzz/AndroidStudioProjects/yunxiaoui/base/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/generated/assets/shaders/debug -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.squareup.leakcanary/leakcanary-android/1.5/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/percent/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.jakewharton/butterknife/8.4.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.antfortune.freeline/runtime/0.8.5/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/library/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.databinding/adapters/1.2.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.tencent.bugly/crashreport_upgrade/1.2.3/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-analyzer/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.markzhai/blockcanary-android/1.4.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.github.dmytrodanylyk.shadow-layout/library/1.0.3/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/gridlayout-v7/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/design/23.0.1/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/ext/2.0.3/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.getui/sdk/2.8.1.0/assets -A /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/intermediates/exploded-aar/com.android.support/multidex/1.0.1/assets -m -J /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/app/backup --auto-add-overlay -F /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/base-res.so --debug-mode --no-version-vectors --resoucres-md5-cache-path /Users/xzz/AndroidStudioProjects/hfs-parent/app/build/freeline/arsc_cache.dat --ignore-assets public_id.xml:public.xml:.bak:.
[ERROR] --------------------------------------------------------
[DEBUG] Prepare tasks time: 0.4s
[DEBUG] Task engine running time: 185.9s
[DEBUG] Total time: 186.3s
[DEBUG] --------------------------------------------------------

@lomanyong 找到原因了，项目中集成了tinker，把tinker去掉增量编译就可以了。请问有什么解决方案吗

@sixgodIT debug的时候不要开启tinker应该就可以了，freeline的用户同时使用tinker的还不少...

同样遇到了这个问题，卸载全量编译时正常，一修改xml就会遇到上面的问题，请问有什么最新的解决方案吗 @lomanyong @sixgodIT

参考这个，看能不能解决 #793

authors: Heart2009 biyeshengplay lomanyong sixgodIT

repo: alibaba/freeline


text:
fix grafana servicemonitor port same with scheduler-extender service …

…port name.

LGTM

source: gharchive/pull-request

repo: alibaba/open-local

license_type: permissive

license_source: github-api


text:
如何部署翻译好的js文件到服务器

我transfrom we文件之后，用weex －s ，访问的时候不能看到页面，而是具体文件，请问该如何处理

http://localhost:12580/?page=[翻译后的js文件路径]
这样试试 page对应transfrom后的js文件路径

#636
weex -s 目前仅仅只是输出js bundle ，是不会自动生成最终页面的。 这个feature我们后续会考虑。
如果你想把Weex集成于现有的 web程序，参考   http://alibaba.github.io/weex/doc/advanced/integrate-to-html5.html  这个文档

source: gharchive/issue

authors: lvscar yahooyee zct1989

repo: alibaba/weex


text:
Update Wiki link

Update Wiki link in the Readme page so that users do not have to make the jump themselves :)

Thanks for the update!

authors: Irvise rocher

repo: alice-adventures/Alice

license: MIT


text:
Changes post-deployment

Fixed some typos, included a script to connect to AWS ussing the access keys and changed the documentation as the az_connect_k8s.sh script could also be used to connect the EKS cluster to Arc

Sorry i didn't see this PR. I have made the changes into the base.

authors: alihhussain lanicolas


text:
docs: add algorithm and playing suggestions

adding topcoder, codebyte and SPOJ

Thank you so much for the suggestions! I made some changes, tell if it's ok for you :)

For me it's ok. I was in doubt about topcoder category lol

authors: alinebastos ericpatrick

repo: alinebastos/frontend-practice


text:
Fix #106

-response status problem fixed.
by: inherit upstream's response status.

for http1/http2, code is universal

for bolt/httpx, transformation alreay exist.
code:
if statusCode != types.SuccessCode {
var err error
var respHeaders interface{}
  		//Build Router Unavailable Response Msg
  		switch statusCode {
  		case types.RouterUnavailableCode, types.NoHealthUpstreamCode, types.UpstreamOverFlowCode:
  			//No available path
  			respHeaders, err = sofarpc.BuildSofaRespMsg(s.context, headerMaps, sofarpc.RESPONSE_STATUS_CLIENT_SEND_ERROR)
  		case types.CodecExceptionCode:
  			//Decode or Encode Error
  			respHeaders, err = sofarpc.BuildSofaRespMsg(s.context, headerMaps, sofarpc.RESPONSE_STATUS_CODEC_EXCEPTION)
  		case types.DeserialExceptionCode:
  			//Hessian Exception
  			respHeaders, err = sofarpc.BuildSofaRespMsg(s.context, headerMaps, sofarpc.RESPONSE_STATUS_SERVER_DESERIAL_EXCEPTION)
  		case types.TimeoutExceptionCode:
  			//Response Timeout
  			respHeaders, err = sofarpc.BuildSofaRespMsg(s.context, headerMaps, sofarpc.RESPONSE_STATUS_TIMEOUT)
  		default:
  			respHeaders, err = sofarpc.BuildSofaRespMsg(s.context, headerMaps, sofarpc.RESPONSE_STATUS_UNKNOWN)
  		}

  		if err == nil {
  			headers = respHeaders
  		} else {
  			s.connection.logger.Errorf(err.Error())
  		}
  	}

Codecov Report

Merging #125 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #125   +/-   ##
=======================================
  Coverage   22.27%   22.27%
=======================================
  Files          40       40
  Lines        3488     3488
=======================================
  Hits          777      777
  Misses       2673     2673
  Partials       38       38

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c376480...51d351b. Read the comment docs.

authors: Lingtaonju codecov-io

repo: alipay/sofa-mosn


text:
Please upload environment.yml from conda to setup requirements

I followed install instruction and got some issue with cudatoolkit version and then I tried running demo.py and it says I do not have cv2 package.
Please create environment.yml file from conda.
you can easily do it by following this link.
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#sharing-an-environment
Thank you very much in advance.

It has been a long time so I do not have that environment. The setup of this environment should be not complex.

repo: aliyun/NeWCRFs


text:
使用POST的时候报错

像README里面一样使用client.post的时候报错: error message: API unsupport the channel: HTTP.
在API网关上的设置是支持HTTP的：协议：HTTP,HTTPS
使用的是阿里云的二级域名：*-cn-shanghai.alicloudapi.com

在headers里添加'Content-Type': 'application/x-www-form-urlencoded'解决了问题。

repo: aliyun/api-gateway-nodejs-sdk

license: mit

license_source: bigquery


text:
连线异位

为什么有时打开，映射关系连线是好的。有时打开。会出现连线异位的问题。

我想问问是不是还没渲染完就开始使用此组件了呢？

我想问问是不是还没渲染完就开始使用此组件了呢？

好像是，加个延时就好了。有没有能判断渲染完成的标志呢？

这个没办法，因为我不知道你界面其他组件什么时候渲染好，例如antd的modal组件，他是有500ms的动画，是没办法判断渲染完毕的

repo: aliyun/react-data-mapping


text:
Add defect to testresult

Dear allan,
I would like to make PR for adding defect to the test result with decorator
Probably resolve this issue : https://github.com/allankp/pytest-testrail/issues/45
Thanks

Can you please update the README with the new flag please

I've just updated the README with example for using pytestrail.defects.
Please have a look.
Thank you!

repo: allankp/pytest-testrail


text:
emby first path segment in URL cannot contain colon

设置emby地址出现

用的 Jellyfin，同样遇到了。
//host:port
http://host:port

都不行。


text:
Will PPO fine-tuning be added?

Hi, will you consider adding PPO fine-tuning scripts?

Hi, there are some work in progress in #204

See it. Thank you.

authors: notoookay vwxyzjn

repo: allenai/open-instruct


text:
Spacy does not return vector if GPU is enabled

I'm using a GPU-enabled Google Colab notebook.
After installing the requisite libraries and models
!pip install spacy[cuda100]~=2.2 scispacy~=0.2.4

!pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.2.4/en_core_sci_lg-0.2.4.tar.gz

import spacy
spacy.prefer_gpu()
nlp = spacy.load("en_core_sci_lg")

text = """
Myeloid derived suppressor cells (MDSC) are immature
myeloid cells with immunosuppressive activity.
They accumulate in tumor-bearing mice and humans
with different types of cancer, including hepatocellular
carcinoma (HCC).
"""

doc = nlp(text)

Running
doc.ents

produces
(Myeloid,
 suppressor cells,
 MDSC,
 immature,
 myeloid cells,
 immunosuppressive activity,
 accumulate,
 tumor-bearing mice,
 humans,
 cancer,
 hepatocellular
 carcinoma,
 HCC)

as expected, but
doc.vector

produces this error:
TypeError                                 Traceback (most recent call last)
<ipython-input-19-40a48203c66b> in <module>()
----> 1 doc.vector

doc.pyx in __iter__()

cupy/core/core.pyx in cupy.core.core.ndarray.__array_ufunc__()

cupy/core/_kernel.pyx in cupy.core._kernel.ufunc.__call__()

cupy/core/_kernel.pyx in cupy.core._kernel._preprocess_args()

TypeError: Unsupported type <class 'numpy.ndarray'>

Commenting out
spacy.prefer_gpu()

solves the issue. This means that getting token vectors will not be able when the GPU is enabled?
I'm not sure if this is related to #81 or #3431 in spaCy.

Is this a scispacy specific issue? could you see if you can get vectors with gpu enabled in your environment with one of the core spacy models? This is likely to be a spacy issue (as you notice from the linked issues)

I can get vectors with GPU enabled, using one of the core spacy models.
I'm not familiar with how scispacy and spacy interact, but it seems there's some conflict whenspacy.prefer_gpu() is run, and how scispacy grabs the vectors?
import spacy
spacy.prefer_gpu()

import scispacy

nlp_core = spacy.load("en_core_web_sm")
nlp_sci = spacy.load("en_core_sci_lg")

text1 = "Apple is looking at buying a U.K. startup."

text2 ="""
Myeloid derived suppressor cells (MDSC) are immature
myeloid cells with immunosuppressive activity.
They accumulate in tumor-bearing mice and humans
with different types of cancer, including hepatocellular
carcinoma (HCC).
"""

doc1 = nlp_core(text1)
doc2 = nlp_sci(text2)

doc1.vector

array([ 1.87626123e+00,  1.74610004e-01, -4.07206148e-01,  1.36689353e+00,
        1.40843523e+00,  6.05548732e-03,  1.66239119e+00, -9.30897593e-01,
        4.57793772e-01,  8.95731628e-01, -3.08286622e-02, -1.05232155e+00,
       -9.10535514e-01, -4.45902228e-01, -1.26608491e+00, -1.16015565e+00,
       -7.04167783e-01, -1.32227492e+00,  2.44126424e-01, -1.16682744e+00,
        1.01085961e+00, -1.08586415e-03,  5.55718184e-01,  3.72446686e-01,
       -9.01190221e-01,  1.23116934e+00, -6.60890281e-01,  6.00397348e-01,
        5.54930389e-01, -8.53769362e-01,  6.49879932e-01,  7.13668883e-01,
        1.02024949e+00, -9.36036825e-01,  4.99367177e-01, -1.58682418e+00,
        9.09082830e-01, -1.30400848e+00, -2.59107184e+00, -5.57143390e-01,
        1.04673874e+00, -3.63536745e-01, -1.13535136e-01, -8.38947952e-01,
       -5.15586138e-01,  3.48068118e-01,  4.34633315e-01,  8.31843376e-01,
       -1.80327475e+00,  1.34507072e+00,  8.74345064e-01, -1.11486959e+00,
        6.44101799e-01,  3.26330513e-01, -1.77515948e+00,  1.20124876e+00,
        5.46832561e-01,  4.90726799e-01,  8.51599455e-01,  3.70686591e-01,
        1.27395010e+00,  3.82406980e-01,  1.10774016e+00,  2.99000680e-01,
        1.01485348e+00,  1.80296153e-01,  3.69155794e-01, -2.23638988e+00,
       -1.13989949e+00,  1.15371501e+00,  1.25055921e+00, -6.30269468e-01,
       -4.70783919e-01, -1.00702071e+00, -8.97607952e-02,  1.85000479e-01,
        1.25299013e+00, -9.43444371e-01, -9.46472824e-01, -1.07134831e+00,
        5.28648794e-01, -1.34740043e+00,  3.15346926e-01, -9.12814960e-02,
        8.59327018e-01,  1.32857764e+00, -9.96670604e-01,  1.10705197e+00,
       -4.88456368e-01,  4.50987555e-02, -9.75819349e-01, -1.79819620e+00,
        1.05998307e-01,  7.29284525e-01,  1.14333367e+00,  8.58014762e-01],
      dtype=float32)

doc2.vector

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-12-02f8cd16c309> in <module>()
----> 1 doc2.vector

doc.pyx in __iter__()

cupy/core/core.pyx in cupy.core.core.ndarray.__add__()

cupy/core/_kernel.pyx in cupy.core._kernel.ufunc.__call__()

cupy/core/_kernel.pyx in cupy.core._kernel._preprocess_args()

TypeError: Unsupported type <class 'numpy.ndarray'>

I suspect this might be related to #4680 in SpaCy, although the patch should be merged for v2.2.3?

Could you try it with en_core_web_lg? It crashes for me with that model, suggesting it is a spacy issue rather than a scispacy issue. For what its worth, it also doesn't crash for me if i just type out the text you provided, something about the formatting seems to cause the crash although i did not figure out exactly what yet.

Any update on this?

Hi @danielkingai2,
I also see your problem.
For full documentation's sake:
import spacy
spacy.prefer_gpu()
nlp_core = spacy.load("en_core_web_lg")

text1 = "The effect of anxiogenic treatments on three rodent models of anxiety: \
         the open field test, the elevated plus-maze, and the light-dark box."

doc1 = nlp_core(text1)

doc1.vector

produces
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-531ef58ab65a> in <module>()
      1 doc1 = nlp_core(text1)
      2
----> 3 doc1.vector

doc.pyx in __iter__()

cupy/core/core.pyx in cupy.core.core.ndarray.__add__()

cupy/core/_kernel.pyx in cupy.core._kernel.ufunc.__call__()

cupy/core/_kernel.pyx in cupy.core._kernel._preprocess_args()

TypeError: Unsupported type <class 'numpy.ndarray'>

Relevant package versions:
print(spacy.__version__)
print(cupy.__version__)

2.2.3
7.2.0

Closing this for now as it seems it's a spacy issue and not scispacy's.

repo: allenai/scispacy


text:
Update README and CONTRIBUTUING guides

Update README and CONTRIBUTUING guides

Codecov Report

Merging #40 (3ee4bd3) into main (7fe8d90) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #40   +/-   ##
=======================================
  Coverage   95.98%   95.98%
=======================================
  Files           8        8
  Lines         722      722
=======================================
  Hits          693      693
  Misses         29       29

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

authors: allenporter codecov-commenter

repo: allenporter/ical


text:
pubmed_publication_status in biblio display and editor before date_pu…

…blished

Thanks @sweng66 !


text:
🛑 Handyworx is down

In d4e0d72, Handyworx (https://thehandyworx.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Handyworx is back up in ce7d5d8 after 8 minutes.

repo: alliancewebteam/Uptime


text:
🛑 Handyworx is down

In fa0ad5e, Handyworx (https://www.thehandyworx.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Handyworx is back up in 6ced07d after 17 minutes.


text:
🛑 St. Paul's Evangelical Lutheran Church is down

In 1e26708, St. Paul's Evangelical Lutheran Church (https://stpaulsandhill.com) was down:

HTTP code: 429
Response time: 338 ms

Resolved: St. Paul's Evangelical Lutheran Church is back up in 4ac5a6a after 13 minutes.


text:
Support for Abstracted Objects

I realise that "It currently doesn't know how to translate CloudForamtion resource into the abstracted objects used in cfndsl, for example EC2_Instance."
However this would be a very useful feature to add to the roadmap.
I have used cfn2dsl to 'reverse engineer' a manually created stack. I then manually converted the cfn2dsl output to use the abstracted object notation and this took quite some time.

if we start supporting abstracted objects, that will fall into a version dependency trap, as the generic type can give you a safe way to translate back and forward the templates as you needed.
I am happy to raise this as a feature request, any thoughts?
thx

I understand that you use cfn2dsl as a say of keeping json and cfndsl representations of a stack in sync with each other.
My use case for cfn2dsl is just for a one way conversion of json to cfndsl.  In this case the dependency trap would not be problem.

Doesn't it actually do this now?? I'm pretty sure it does.

authors: allinwonder cmaxwellau yumpy


text:
[Feature] Add Transaction types, implement sign_transaction

Component
providers
Describe the feature you would like

builder style Request types (Optional fields) that have a corresponding Transaction type (valid Transaction).

yes, love this plan :)

going from Request -> Transaction is what we called fill in ethers.

This is a little more complex, I think. The TransactionRequest generally allows a from field, which the Transaction that implements RLP should not
So we may want something like:

Transaction - complete, no from field, implements RLP, no serde
SignedTransaction - complete, no from field, contains Transaction + Signature, no serde
TransactionRequest - builder for the JSON request object
Provider::fill(&mut TransactionRequest)

populates all possible fields from RPC node
should ensure that TransactionRequest::try_into_transaction definitely succeeds

Signer::sign_transaction(&TransactionRequest) -> Result<SignedTransaction>

errors when the request is missing info, or if from  is populated with address signer can't sign from

TransactionResponse - JSON object returned by eth_getTransactionByXXXX methods

should ALWAYS contain a SignedTransaction

Originally posted by @prestwich in https://github.com/alloy-rs/alloy/pull/44#discussion_r1423195976
Additional context
No response

Per conversation today:
Here is the full matrix of types to be implemented. The primitive column should derive RLP. The req/response should be in alloy json rpc types (and already partially exist)
All req+response types should allow extra fields. signature on TransactionResponse should be Optional to support Optimism.
Responses should inherit primitives
Reqs should be builders, and should have an option to build into the primitive types
Provider should use req/resp
cc @Evalir
          | Primitive         | Req                | Resp
Legacy    | TransactionLegacy | RequestLegacy      | ResponseLegacy
1559      | Transaction1559   | Request1559        | Response1559
2930      | Transaction2930   | Request2930        | Response2930

enum      | Transaction       | TransactionRequest | TransactionResponse

receipt   | Receipt           | n/a                | ReceiptResponse

signed    | Signed<T: Transaction>

Signing and transactions have been implemented.

authors: DaniPopes prestwich

repo: alloy-rs/alloy


text:
fix(genesis): Base Fee Params fixes"

Description
Fixes base fee param loading in the ChainConfig -> RollupConfig conversion to actually pull in the OpBaseFeeParams defined in the optimism field of the ChainConfig.

📚 $\text{Stack Overview}$
Pulls submitted in this stack:

#292 👈
main

This comment was automatically generated by st.

repo: alloy-rs/op-alloy


text:
fix(rpc): impl ecotone for op_alloy_rpc_types::OptimismTransactionReceiptFields

Motivation
Ref https://github.com/alloy-rs/op-alloy/issues/54
Eip-4844 support missing for op_alloy_rpc_types::OptimismTransactionReceiptFields and bad filed naming, causing bugs in reth RPC.
Solution

Adds fileds l1_blob_base_fee and l1_blob_base_fee_scalar to op_alloy_rpc_types::OptimismTransactionReceiptFields
Fixes naming of field l1_fee_scalar to l1_base_fee_scalar, in coherence with op-geth and reth-evm-optimism

PR Checklist

[x] Added Tests
[x] Added Documentation
[x] Breaking changes

let's add the changes from https://github.com/alloy-rs/alloy/commit/ab462f12ac40fd16bd9882c9451d7d62f7c31d37 for this pr

so much context switching, checkout the code from here by accident, my bad. very agile process.
this is in fact a bug in reth when this issue is closed @refcell https://github.com/paradigmxyz/reth/issues/10452. it's already a bug for anyone pulling in the op_alloy_network::Optimism and relying on it's associated type <Optimism as alloy_network::Network::ReceiptResponse`.

issue solved in https://github.com/alloy-rs/op-alloy/pull/62, but still think we want some type safety here in terms of op hard fork receipt envelopes to minimise risk of future bugs.
Maybe smthg like
enum Eip4844Receipt<T> {
    Eip4844(ReceiptWithBloom<T>)
    Ecotone(OpEcotoneReceiptWithBloom<T>)
    // no changes to receipt in fjord so no other variant needed for `TxType` = 2
}

issue solved in #62, but still think we want some type safety here in terms of op hard fork receipt envelopes to minimise risk of future bugs.
Maybe smthg like
enum Eip4844Receipt<T> {
    Eip4844(ReceiptWithBloom<T>)
    Ecotone(OpEcotoneReceiptWithBloom<T>)
    // no changes to receipt in fjord so no other variant needed for `TxType` = 2
}

Sorry not really following - we don't need the changes in this pr right

if you want we can do that @refcell

authors: emhane mattsse refcell


text:
How to pass link from @pytest.mark.parametrize to @allure.link?

Hello fellas,
My current stack is Pytest + Selenium and Allure for reporting. I got the variables from @pytest.mark.parametrize and tried to pass it into allure decorators. In a case of @allure.title it works fine, but when I tried to pass link to @allure.link or @allure.testcase the value - actual link didn't appear in allure-report and the label as well (second parameter of @allure.testcase). And instead, I got {link} in Link section. If someone come across this issue, please let me know. This issue has been double-checked on https://github.com/allure-examples as well.

Please, use https://github.com/orgs/allure-framework/discussions to ask for support

authors: baev vladyslavstetsenko

repo: allure-examples/allure-python-pytest


text:
Bower components on Github repo?

Is the any reason to have bower_components folder in the Github Repo?
Like node_modules o vendor folder  bower_component have to bee in .gitignore no?
I've seen this commit:
https://github.com/almasaeed2010/AdminLTE/commit/06bb8c2be1309de5627f590c1bbb90ac4b9952e7
But I do not understand why you choose to remove bower_components form .gitignore Pleaseis you can explain that.

Also if I run
rm -rf bower_components
npm -g install bower
bower install

It not works:
Unable to find a suitable version for jquery, please choose one by typing one of the numbers below:

See also https://github.com/almasaeed2010/AdminLTE/issues/1680


text:
400 Bad Request error when trying to login with almightytest user

Len reported this error when using one of his test user. The user only uses github but the weird thing is that tries to get the token from openshift-v3.
patternfly.css:2 ERROR Error: Uncaught (in promise): Response with status: 400 Bad Request for URL: https://sso.prod-preview.openshift.io/auth/realms/fabric8/broker/openshift-v3/token
    at resolvePromise (polyfills.f49acb8….bundle.js:1) [angular]
    at resolvePromise (polyfills.f49acb8….bundle.js:1) [angular]
    at _assets/lib/polyfills.f49acb8aeb061f0c40eb.bundle.js:1:56039 [angular]
    at Object.onInvokeTask (patternfly.css:2) [angular]
    at ZoneDelegate.invokeTask (polyfills.f49acb8….bundle.js:1) [angular]
    at Zone.runTask (polyfills.f49acb8….bundle.js:1) [<root> => angular]
    at drainMicroTaskQueue (polyfills.f49acb8….bundle.js:1) [<root>]
    at XMLHttpRequest.ZoneTask.invoke (polyfills.f49acb8….bundle.js:1) [<root>]
defaultErrorLogger @ patternfly.css:2
ErrorHandler.handleError @ patternfly.css:2
next @ patternfly.css:2
t.object.o @ patternfly.css:2
SafeSubscriber.__tryOrUnsub @ patternfly.css:2
SafeSubscriber.next @ patternfly.css:2
Subscriber._next @ patternfly.css:2
Subscriber.next @ patternfly.css:2
Subject.next @ patternfly.css:2
EventEmitter.emit @ patternfly.css:2
NgZone.triggerError @ patternfly.css:2
onHandleError @ patternfly.css:2
ZoneDelegate.handleError @ polyfills.f49acb8….bundle.js:1
Zone.runGuarded @ polyfills.f49acb8….bundle.js:1
(anonymous) @ polyfills.f49acb8….bundle.js:1
drainMicroTaskQueue @ polyfills.f49acb8….bundle.js:1
ZoneTask.invoke @ polyfills.f49acb8….bundle.js:1
main.c585199….bundle.js:1 Failed to attach menus to Object {name: "User", icon: "pficon pficon-user"}
main.c585199….bundle.js:1 Failed to attach menus to Object {name: "User", icon: "pficon pficon-user"}
main.c585199….bundle.js:1 Default Context Changed to Object {user: Object, space: null, type: Object, name: "almusertest1", path: "/almusertest1"}

@alexeykazakov I managed to login with almightytest user even if It isn't approved :(. Is that possible ?

I recorded a video with the issue

It seems to be a problem in the UI login flow of this _gettingstarted url. I'll create one issue in planner and close this one.

Closing this issue in favor of https://github.com/fabric8io/fabric8-ui/issues/1009

repo: almighty/keycloak


text:
SSL certificate problem

Hello,
Thanks for sharing this library.
I following the steps and update the config file with the token and sid accordingly.
But I am getting below err:
Services_Twilio_TinyHttpException (E_UNKNOWN)
SSL certificate problem: self signed certificate in certificate chain
Open: C:\wamp\www\hello\vendor\twilio\sdk\Services\Twilio\TinyHttp.php
}
curl_close($curl);
if (isset($buf) && is_resource($buf)) {
fclose($buf);
}
return array($status, $headers, $body);
} else {
throw new Services_Twilio_TinyHttpException(curl_error($curl));
}
} else throw new Services_Twilio_TinyHttpException(curl_error($curl));
Can you please suggest, what I am missing.
Thanks
Nitesh

I'm surprised twilio has ssl certificate problems.
Since PR #21 you can disable ssl verification. This will be available in the next release.

When the next version release? (sorry i'm currently rushing to complete my project :D)

You can upgrade to the latest version at your own risk (it's untested) using composer require aloha/twilio:dev-master#2c34c2b0 to lock the commit hash to 2c34c2b0.


text:
AYUDA PARA IONIC

Buenas Alonso, te pido ayuda para un desarrollo que estoy haciendo. Estoy intentando crear una app que escanee un código de barras y me suba a la nube de firebase este código. He intentado aplicar lo que has hecho pero no soy capaz. ¿A que te refieres con FILE_URI?
Si tuvieras tiempo de echarme una mano, te lo agradecería en el alma. Un saludo y gracias de antemano

Por favor Alonso, necesito ayuda. Estaría muy agradecido. Este es mi correo: eduvega1604@gmail.com


text:
[FEATURE] альтернативная раскладка клавиатуры

Опишите проблему, которую решает ваша фича
когда раскладка переключена на русский язык - перестают работать горячие клавиши, если писал что-то в чат и краем глаза увидел движение, невозможно быстро открыть сделку
Опишите предлагаемое вами решение
сделать привязку клавиш вне зависимости от раскладки
Опишите альтернативные решения, о которых вы думали
как вариант можно добавить альтернативную клавишу для каждой сделки и уже пользователь самостоятельно может указать клавишу в альтернативной раскладке
Дополнительная информация
No response
Правила

[X] Я согласен следовать правилам

Давайте сделаем это в виде опции. Вы не первый кто об этом пишет, но я боюсь в браузерном приложении делать слишком широкие настройки для выставления заявок....

authors: PilgrimViis aronsx

repo: alor-broker/Astras-Trading-UI


text:
Improve multiline commit messages style

The first line as a subject of the commit message, and rest of text as a description, like GitHub does.

Any standard about that?

Read this:
http://git-scm.com/book/ch5-2.html#Commit-Guidelines

Done

authors: alorma edubxb

repo: alorma/Gitskarios


text:
feature request: incremental regexp diffing

Is it doable to expose a function that will update fields that matches a certain pattern on lines ?
For instance, here's the typical kind of headers I do have in my configuration files.
################################################################################
#
#    ██████╗   ██╗   ██╗  ███╗   ██╗  ███████╗  ████████╗  ██████╗    ██████╗
#    ██╔══██╗  ██║   ██║  ████╗  ██║  ██╔════╝  ╚══██╔══╝  ██╔══██╗  ██╔════╝
#    ██║  ██║  ██║   ██║  ██╔██╗ ██║  ███████╗     ██║     ██████╔╝  ██║
#    ██║  ██║  ██║   ██║  ██║╚██╗██║  ╚════██║     ██║     ██╔══██╗  ██║
#    ██████╔╝  ╚██████╔╝  ██║ ╚████║  ███████║     ██║     ██║  ██║  ╚██████╗
#    ╚═════╝    ╚═════╝   ╚═╝  ╚═══╝  ╚══════╝     ╚═╝     ╚═╝  ╚═╝   ╚═════╝
#
#    Author: anchnk
#    Date: 24.07.2017
#    Dunst: v1.2.0
#    File: dunstrc
#    Last Modified Date: 24.07.2017
#    Last Modified By: anchnk
#    Location: $HOME/.config/dunst/dunstrc
#
################################################################################

Having a function that would update Author, Date, File, Last Modified Date, Last Modified By fields' values without changing the structure of my headers would be awesome.
I understand that would not be top priority but I do believe it would add more flexibility to the plugin and also would avoid the need to wrote a script for that. Well at least if that use case can benefits to others.

Hello,
Thanks for the idea. This looks good but implementing this may be challenging. If the conditions are - file type should be cfg and the filename should be written as banner - It can be done. Challanging part is generating banner text.
If I have free time, I can do it.

Oh sorry my explanation was confusing. I am just wondering if the header attributes (Last Modified Date  being the most important) could be updated on save without being the first lines of the file (due to the banner).
That would require to expose a function that would search the first occurrence of Last Modified Date for instance and update it's value. Unfortunately I am quite new to Vimscript, I can understand your source quite well and I am willing to work on it as well but I will probably need to some guidance :)

Oh, I didn't read very well sorry. Now I got the point. Actually vim-header supports updating field already. But for this filetype should be supported and this filetype is not supported now thats why it wont update fields.

Now that cfg filetype support is merged, I can invoke AddHeader on the cfg filetype.
I force that option in vim's modeline (# vim: ft=cfg) in my dunstrc file.
However I am still having the issue that vim-header adds the header on top of the file rather than updating existing fields.
Also there's are several white spaces between the comment_char and headers'field in my banner. That's why I thought exporting a function that would update fields only would be great. I mainly need it to be able to have Last Modified Date one but others would be great as well (speaking of those added by the plugin).

Btw if that can help to get what I mean my dunstrc file is here

I worked a bit on this feature, it might be messy so I am looking for your opinion on this before even considering to make a PR.
Here you can see the diff between the 2 versions:
https://github.com/alpertuna/vim-header/compare/master...anchnk:diff-update
It changes the way the update was working by checking if headers are present from top of the buffer to a certain threshold set by the user (option g:header_max_size).

If all headers are present, then it updates only their values (keeping indentation).
If at least one header is missing, it generates a new file header.

So for example, if in my $MYVIMRC file I set g:header_field_filename = 1' and disabled every other header and set g:header_max_size = 10it will check if the textFile:` is present in the range 0,0+header_max_size:
-> 1 # This
|   2 # example
|   3 # updates
|   4 # the
|   5 # header
|   6 # as it's in the range
|   7 #
|   8 #  File: foobar.sh
|   9
-> 10 # g:header_max_size

If g:header_max_size is set to default (5) this header won't be updated (as most probably it means that header isn't present) and a new one is added
-> 1 # This
| 2 # example
| 3 # won't update
| 4 # the
-> 5 # header (g:header_max_size)
6 # as it's not in the range
7 #
8 #  File: foobar.sh
9
10

Let me know what you think about it and if you want to give it a try to make suggestions.

Hi again. I am not available so much nowadays to inspect the issue. However I looked into diff and your improvements looks reasonable. When you are done, you can send PR. :+1:

authors: alpertuna anchnk

repo: alpertuna/vim-header


text:
Allow users to select a child benefit stop date in years up to 2013

Trello Story: https://trello.com/c/dbyKP467/168-child-benefit-tax-calculator-change-stop-date-in-question-2-to-4-years-in-the-past
Motivation
A user can calculate their Child Benefit tax back to 7Jan 2013 in tax year 2012/13, as a consequence the Stop date should also include 2013 in the drop down boxes.
As the box is optional, if an end date isn't included, the calculator would calculate for a whole year, which isn't appropriate if the payments stopped during the year.
Dates are added to both selectors determining how many years to include (back and forward) starting from the current year.
Changed the stop year drop-down to include years up to four years ago.
Factcheck
Child benefit tax calculator
Expected Changes
URL on GOV.UK

Stop date should display years from 2013

Before

After

Hi @leenagupte, great work!
What about creating a separate PR for this commit: https://github.com/alphagov/calculators/pull/136/commits/81303bba4b3bedcbff2c130dfd0a20902c553cca? It was a very nice finding (and fix), but It seems that it is not related to this PR.
In the description, you could reference the PR described [in this comment] (https://github.com/alphagov/calculators/pull/136#discussion_r65336644) from @floehopper
It shouldn't take that much time.

@pmanrubia Moved change in commit 81303bb to another PR: https://github.com/alphagov/calculators/pull/137

@leenagupte: I have also reviewed: https://github.com/alphagov/calculators/pull/137;
Two minor things:

As per your suggestion in https://github.com/alphagov/calculators/pull/136#issuecomment-223014387, please remember to merge #137 first; just a friendly reminder :)
Tests seem to be failing in https://github.com/alphagov/calculators/pull/136/commits/f26a1aaa9f38687f138c0362fab7882a92d916ec. Rubocop might be complaining.

LGTM

@pmanrubia The failing test in f26a1aa was because PR #137 hadn't been merged yet.

authors: leenagupte pmanrubia

repo: alphagov/calculators


text:
Improve documentation

It was wrong in places
Inconsistent naming of things
Need to explain how it works
Also separated example code to avoid confusion

norelease because changing the name of the JS client class is a breaking change, but I am about to merge a major backend change as well, so waiting for that to do a major version bump.

repo: alphagov/consent-api


text:
Order taxons by updated at

This PR does the following:

changes the way we fetch Taxons from get_linkables to get_content_items;
sorts taxons by their public_updated_at attribute rather than by title. This is now possible because we are using get_content_items, which returns a lot more attributes for each of the taxons.

Trello: https://trello.com/c/y9VdJshp/111-add-created-at-updated-at-ordering-to-taxons-list

Cool, good to see that we no longer misuse linkables for the index page with this.

I will fix this so we use linkables where needed and get_content_items elsewhere.

@tijmenb I've changed things a bit:

we use the publishing api to sort by public_updated_at;
we use get_linkables for dropdowns and get_content_items for the taxons' index page.

WDYT?

Most excellent!

authors: carvil tijmenb

repo: alphagov/content-tagger


text:
Reorganise everything into namespaces

Big commit, sorry.
This organises most of the code into one of three namespaces: Tagging, BulkTagging and Taxonomy.
The goal of this is make the application easier to understand to newcomers and to avoid it becoming a big ball of code. The three features of this application are pretty well-defined, and should not have to talk to each other.
Some notes:

I considered inverting the pattern/namespace (so that it reads app/taxonomy/models, app/bulk_tagging/services). That seems a little outside of the mainstream, but might be worth talking about later.
There are a couple of classes that are used by multiple modules. I've kept these at the root level. The rules of this separation are that no module can talk to each other, but that each module can talk to the top level. The top level should also not talk to the modules, but that requires refactoring outside the scope of this PR.

How to review
Probably best to clone the branch and review it in your editor.
Part of: https://trello.com/c/Erx6NIwe/151-content-tagger-rename-code-in-content-tagger

@MatMoore Thanks! I'm planning another PR to address some of the naming things.


text:
[#125881031]list_briefs view: add "meta"->"total" attribute to response for returning total result count

update tests accordingly
Forgot I would need this for story https://www.pivotaltracker.com/story/show/125881031

Looks good after a rebase :+1:

Should we do this for services too?
@TheDoubleK, @andrewchong and I were counting a lot of services today by figuring out the number of pages and multiplying them by 100.

@pcraig3 perhaps, but the services are fetched through the search api, so separate job. Actially I was talking to you about pagination on the search api the other day, wasn't I?

authors: TheDoubleK pcraig3 risicle

repo: alphagov/digitalmarketplace-api


text:
Add request times to nginx logs

Add $request_time to access logs.
http://nginx.org/en/docs/http/ngx_http_log_module.html

:+1:
(I usually test the nginx config changes before merging by SSHing into one of the preview machines, replacing the file in-place and reloading. It's hard to spot typos in these things otherwise and rolling back an AMI update is a bit arduous.)

authors: allait robyoung

repo: alphagov/digitalmarketplace-aws


text:
Add exception for 422 errors

Raise a GdsApi::HTTPUnprocessableEntity on 422,
a more specific version of GdsApi::HTTPClientError

:+1:

authors: boffbowsh jackscotti

repo: alphagov/gds-api-adapters


text:
GPC-371: Use service domain

This change has the following effects:

Change cognito user pool admin client permitted callback url to the service.gov.uk version
Change SPRINGDOC_SWAGGER_UI_OAUTH2_REDIRECT_URL env var to service.gov.uk version
Change len lambdas to point at service.gov.uk domain
Change gro lambdas to point as service.gov.uk domain

Does this have any negative effect on DWP? Can you still auth through the auto generated cognito urls?

authors: ethanmills olevett

repo: alphagov/gdx-data-share-poc


text:
Work out how to document different plural rules in the Nunjucks option table for the Character Count

Following on from a discussion in https://github.com/alphagov/govuk-frontend/issues/2895#issuecomment-1273465230:

The documentation of the macro options hasn't been carried over yet from the first take, as I'd like to discuss the approach for it. From what I gathered, we currently have a system where we can document options as an object, then list the object's properties which will get extracted in the docs, like classes for the formGroup and countMessage options.

For internationalisation options, this will get very repetitive as it's the same set of options for all the options. I was thinking this is likely something that'll get described in the general documentation about configuration and internationalisation. If that's the case, it'll be lighter to just have a link pointing there rather than repeating 4 times the same list of 6 options.
@claireashworth how does this approach sound in terms of content organisation? Would it be a problem that, unlike the other options, we'd send users off the page to let them know that for charactersOver/UnderLimit and wordsOver/UnderLimit` they can pass 6 possible options, depending on their language needs?
@36degrees maybe there's another way I'm not aware to reduce duplication while documenting them on that same page, though?

We need to find a way to document how to pass different translations for different pluralization categories (zero, one, two, few, many or other) depending on the locale the Character Count is operating under, without being overly repetitive as this will apply to multiple localisable 'strings' (depending on whether the user is over or under the limit, and whether they are counting characters or words)

I don't think there's anything currently built in that would allow us to document the params in the YAML but only have them included in the Nunjucks macro options only once.
If we wanted to do the 'easiest thing' we could include the various pluralisable phrases in the YAML, document them as 'objects', but not to list the individual params in the YAML file. Instead we could put a link in the description to somewhere else (in the frontend docs?) where we can explain how they work in more detail.
Something like:
- name: charactersOverLimitText
  type: object
  required: false
  description: Override the phrases used when the user has entered a number of characters that exceeds the limit. See [Understanding pluralisation rules](https://frontend.design-system.service.gov.uk/localising-govuk-frontend#understanding-pluralisation-rules).
- name: charactersUnderLimitText
  type: object
  required: false
  description: Override the phrases used when the user has entered a number of characters that is under the limit. See [Understanding pluralisation rules](https://frontend.design-system.service.gov.uk/localising-govuk-frontend#understanding-pluralisation-rules).

There's lots of reasons why this might be confusing (it's inconsistent with how we document other options with known key/value pairs, for example) but it wouldn't avoid any code changes.

Do I remember correctly that, when we met to discuss this, we agreed to get started using Ollie's solution of linking to wherever the documentation about pluralisation lives?
If so, let's remove this issue from the milestone 😄 I'd be keen to keep it open, as we may want to work out how not to send people somewhere else (unless there's a wider issue for addressing the rendering of that Nunjucks table).

We're adding links between the options table and the pluralisation rules. The URLs will need to be double-checked once the documentation is added in a PR.

authors: 36degrees claireashworth romaricpascal

repo: alphagov/govuk-design-system


text:
Replace NodeListForEach helper with Array.from (and polyfill)

At the moment we use a helper internally to find each node in the element to enhance using a function called 'NodeListForEach', I think we could replace this with 'Array.from'.
NodeListForEach(document.querySelectorAll('*')).forEach(() => {})

vs
Array.from(document.querySelectorAll('*')).forEach(() => {})

if we remove entirely from the code base i guess it's a breaking change?

Yeah we'd have to do this as a deprecation, but I think the effort to for consumers to update will be small since it'd be a like for like swap.

Not sure there's a pressing reason to do this, unless we prioritise removing polyfills from GOV.UK Frontend...

authors: igloosi nickcolley

repo: alphagov/govuk-frontend


text:
Implement the Tudor crown in the Header component (v3.x)

Cherry pick the changes from #4278 onto the v3 support branch. See #4278 for a list of changes.

[!WARNING]
This PR should not be merged until we have approval to do so.

Merging in preparation for release w/c 15th January.


text:
[WIP][SPIKE]: Address component

Initial setup for a new address component.
Keen to see if there is interest for this component before continuing - any help or feedback is greatly appreciated.
Why?
Currently, the only way to render address fields is to render the text input component several times. I.e one text input for each address field.
Instead, it would be very useful to have a single component that:

Automatically renders address field text inputs, ensuring a consistent pattern.
Consumes an object of values that pre-populate all text input values.
Consumes an object of errors that pre-populate all text input error messages.
Has the ability to consume custom field IDs for each field.

For example, data wise, one service might have a "Line 1" field named as line1, whereas in another service, it could be e.g addressLine1.

Has the ability to render "line 1" and "line 2", with only "line 1" having a visible label. E.g "Building and street" could have 2 lines.

This should therefore handle the recommended address pattern with a single component, whilst also reducing lines of code in individual services.
Example usage
{% from "govuk/components/address/macro.njk" import govukAddress %}

{{ govukAddress({
  legend: {
    text: "What is your address?"
  },
  line1: {
    id: "line1"
  },
  line2: {
    id: "line2"
  },
  townOrCity: {
    id: "townOrCity"
  },
  county: {
    id: "county"
  },
  postcode: {
    id: "postcode"
  },
  values: {
    line1: "Line 1!",
    county: "London"
  },
  errorMessages: {
    line1: {
      text: "Address line 1 cannot contain special characters"
    },
    townOrCity: {
      text: "Enter town or city"
    },
    postcode: {
      text: "Enter postcode"
    }
  }
}) }}

Example screenshots
Rendering

Alternative rendering

Rendering with error messages and pre-populated values

TODO

Unit tests (having some trouble understanding how to test with the nunjucks test config, doesn't seem to render anything past the 1st DOM level).
Review examples.
Determine if any other updates are required.

Additional information
This component idea stemmed from UKEF - Export Insurance Policies, where we were rendering several address components. We ended up creating our own address component that handles the above functionality; Instead of having to render 5x text inputs and various conditions in individual forms.

Some random, disjointed, personal thoughts about this:
I think the main reason we don't have any singular component for this is because the format of addresses is too variable. Although the format used here works for most UK addresses, it isn't necessarily suitable for overseas addresses or those from other countries (including Ireland).
As such, what formats and validations that need carried out on addresses can be heavily dependent on the audience for the service. We might risk codifying one technique as being 'the correct way' in people's minds by making it a component, when really there is no single 'correct' choice.
Even within UK addresses there is some variation as to what might be the best way of gathering this information. 'County', for example, hasn't been needed for a long time now, and a team may want to omit it. Strictly speaking, we don't need a town or city either if we ask for the postcode.
Having a dedicated address component may also open a Pandora's box of why we don't also provide components for postcode lookup, card or bank account details, or other repeatable form design patterns.

Some random, disjointed, personal thoughts about this:
I think the main reason we don't have any singular component for this is because the format of addresses is too variable. Although the format used here works for most UK addresses, it isn't necessarily suitable for overseas addresses or those from other countries (including Ireland).
As such, what formats and validations that need carried out on addresses can be heavily dependent on the audience for the service. We might risk codifying one technique as being 'the correct way' in people's minds by making it a component, when really there is no single 'correct' choice.
Even within UK addresses there is some variation as to what might be the best way of gathering this information. 'County', for example, hasn't been needed for a long time now, and a team may want to omit it. Strictly speaking, we don't need a town or city either if we ask for the postcode.
Having a dedicated address component may also open a Pandora's box of why we don't also provide components for postcode lookup, card or bank account details, or other repeatable form design patterns.

Thank you, all understood and makes sense. What would your thoughts be on a UK Address component with all fields being optional?
For example, address fields could only render if they are passed to the component. The following example would only render 2x inputs:
{{ govukAddressUk({
  legend: {
    text: "What is your address?"
  },
  line1: {
    id: "line1"
  },
  townOrCity: {
    id: "townOrCity"
  },
  values: {
    line1: "Line 1!",
    townOrCity: "London"
  },
  errorMessages: {
    line1: {
      text: "Address line 1 cannot contain special characters"
    },
    townOrCity: {
      text: "Enter town or city"
    },
  }
}) }}

I appreciate there are many variants and this could potentially open a pandora's box, however this could allow for multiple configurations for a UK address - in theory, I imagine, all combinations. For example, if only "line 1" is desired, it would be supported in the component by only passing line1.

authors: querkmachine ttbarnes


text:
Add Google Tag Manager env variable for Whitehall

In advance of GA4 we're adding Tag Manager to whitehall: https://github.com/alphagov/whitehall/pull/8046
In keeping with Content Publisher the application code looks for an environment variable for the id - which this PR provides.
https://trello.com/c/EDrVRCsv/1515-set-up-ga4-property-and-gtm-container

You might wanna add the same env var (maybe with a different web property ID) on staging, to make it easier for you to test configuration changes.

Thanks @sengi 🙂 we'll add another Google Tag Manager ID if/when needed. I'm not sure what our workflow for testing GTM changes is yet, but for now I'm going to assume GTM's built in preview functionality is our performance analyst's preferred approach.

authors: dnkrj ollietreend sengi

repo: alphagov/govuk-helm-charts


text:
Remove Ben Hyland account

De-provisioning Ben's account as he has moved to Gaap.

Can we add a FIXME: to remove the absent user once the deletes have gone through please. Other than that Merge away.

Users are purged so we can just delete the file without ensuring it's absent: https://github.com/alphagov/govuk-puppet/blob/0db6b25636c74f970852000efd6d0f31bd3ebdaa/modules/users/manifests/init.pp#L38

This will leave the SSH key in the home directory.

:+1:

@deanwilson , @alexmuller , Think I should heed Aaron's words that we should have a leaver's ticket from "Finding Things".

authors: alexmuller deanwilson djsd123

repo: alphagov/govuk-puppet


text:
Add additional nginx config to route asset traffic

Mid-migration we serve assets both from Carrenza and AWS at the same
time.

For this we introduce an assets-carrenza and draft-assets-carrenza
proxy configuration

solo: @schmie

Had a bit of back and forth with a rebase and revert - sth went wrong with git - checked out again and files another pr


text:
Add missing CHANGELOG entry

This documents a change made between v29.0.1 and v29.1.0:
https://github.com/alphagov/govuk_content_models/compare/v29.0.1...v29.1.0
/cc @bradleywright

Thanks!

authors: benilovj bradleywright


text:
Upgrade dependencies to fix CVE-2021-29425 on commons-io

What problem does the pull request solve?
The current version ships with a commons-io library that is 3 years old that is affected by security CVE-2021-29425.  This then means that our OWASP checks in our project fail unless we explicitly override the transient dependency.
I updated all the dependencies to the latest versions by running:
mvn versions:use-latest-releases

I've opted for a patch version update.
Checklist

[x] I’ve used the pull request template
[ ] I’ve written unit tests for these changes
[ ] I’ve update the documentation (in DOCUMENTATION.md)
[x] I’ve update the changelog (in CHANGELOG.md)
[x] I’ve bumped the version number

[x] in src/main/resources/application.properties
[x] in pom.xml

Thank you @petergphillips  this will be deploy shortly in this PR https://github.com/alphagov/notifications-java-client/pull/198.

authors: petergphillips servingUpAces

repo: alphagov/notifications-java-client


text:
[#170423077] Convert gorouter {gorouter,app}_time metrics to floats

What
In routing-release 0.196.0, gorouter began logging two new metrics:
gorouter_time and app_time. These metrics tell operators how long a request
spent in the gorouter and the app, respectively. Previously, it was only
possible to see a response_time metric, which showed the time for the full
roundtrip.
We have been receiving the fields since we upgraded to routing-release 0.196.0,
but we haven't been correctly indexing them. This commit addresses that, by
converting the fields in to floats.
What you should know
I've applied the filter in the dev ELK stack and refreshed the fields. I think that, since we've been ingesting this field for a while, it already exists, and its type can't be (trivially) changed in the current index. The next time an index is created, it should have the right type. In prod, I think this is daily.
How to review

Code review

Who can review
Anyone

LGTM in the web-ui logstash filters, I'll have a check tomorrow if dev has been re-indexed correctly then re-apply

going to apply this to prod

authors: AP-Hunt tlwr

repo: alphagov/paas-cf


text:
PP-4512 Fix NPE when getting mapped status

ePDQ can respond with a parseable respnse with an unknown status.
Rather than pass nulls up the stack, I have made the status mapper
throw an error, which at the moment is caught and dealt with correctly by ChargeExpiryService. The error handling and passing can be
improved, but this commit ensures Expiry sweep works in all cases.

Yes, I did consider making it a checked exception, and maybe it should be, although it is worth reading Effective Java on this point - he makes quite a good case for using checked exceptions very rarely. I think a better thing to do would be to handle the IllegalArgumentException within EpdqPaymentProvider, and wrap it into one of the errors it throws. I would quite like to get this fix out then refactor if that's ok, as this is fairly important to fix.

And yes, we should definitely discuss in more detail over some 🍵
😃

repo: alphagov/pay-connector


text:
Update public_updated_at on publish

https://trello.com/c/BU5p5lG6/418-v2-publish-content-id-should-update-the-public-updated-at
Updates the public_updated_at timestamp on major updates.

Are we sure there are no apps that want to override this?
It may also be surprising public_updated_at can be set on minor/republish updates, and not in a major update.

I remember discussing this with @steventux and @danielroseman earlier this week / last week. I don't recall what the conclusion of that discussion was.

As discussed, we should allow the value to be supplied in a publish action for any update_type, but if not supplied we should use the current time for major change and the existing persisted value for minor/republish.

authors: danielroseman steventux tijmenb tuzz

repo: alphagov/publishing-api


text:
Republish all guides

We need to be able to republish all of our content. We will soon be changing frontend which requires us to republish all content to change the rendering_app.
It is not possible to republish old editions from the UI and we don't want to make our content designers finish all of their work at the same time to facilitate clicking the publish button. We therefore need a script that can republish the correct live edition.

Nice small and sweet PR.

authors: AndrewVos thehenster

repo: alphagov/service-manual-publisher


text:
Money question type

Adds money question type.
Required for possible MOJ fee remission smartanswers - see issue #128
Added specs for money question and money answer.
Refactored salary answer to make use of to_s() and humanize() logic in money answer.
Also ran successfully smart-answers repo tests against this version of smartdown.
Removed need to add new question types to long if/else statements in previous_question.rb and question_page.rb.
New Smartdown::Model::Element::Question.create_question_answer() method instantiates correct question/answer instances.

Adding some further specs. Not yet committed.

Hi Rob,
The overall change looks great, especially the refactoring on top of the Money question itself, much appreciated. The implementation is also :+1:, but there are a couple of v small changes that I think are worth making:

Could you add some testing around lib/smartdown/model/element/question.rb? It's an improvement on the big ol' switch statement, but is a little less intuitive/readable, and a spec will help illustrate it and prevent regressions.
Smartdown (generally) uses bracketed arguments for methods defs, could you do the same for any new methods? (eg, on Question).

Sorry those are picky points, but as Smartdown is becoming more mature, and getting outside contributions, its worth enforcing things more strictly.
I'm going to write up some of this in a CONTRIBUTIONS guide, so its more obviously documented for future contributors :)
With those changes in i'd be more than happy to merge this, it's a great contribution :+1:

Further spec work now completed.

Hi David,
Thanks for the feedback. I've made your recommended improvements. I added a spec for lib/smartdown/model/element/question.rb that explicitly tests question and answer get instantiated as expected. Agree the meta programming is little less intuitive/readable. Existing tests here and in the smart-answers repo implicity exercise the new implementation.
I've left the CHANGELOG version as '0.xx.x' - please edit before you release.
After the merge and release of smartdown, you can make money questions available in smart-answers with this PR: alphagov/smart-answers#1408
Hope this proves useful for other smart-answers!

Looks good to me. Thanks for making those changes :+1:
Our release process for gems is to update the CHANGELOG and version.rb separately on a PR, so the changelog will updated then. I'll do that shortly.

authors: dsingleton robmckinnon

repo: alphagov/smartdown


text:
Add a rake task to revert import of some sites

We occasionally configure sites and then later decide that they should not be
transitioned via the Transition tool. In these cases it's good to delete the
imported site so that the data reflects our decisions. An example of such a
site is the content planner application on alphagov.co.uk: this app is no
longer in Production before the move to publishing.service.gov.uk so we don't
need to redirect the old domain, but it has already been imported.
This rake task makes it easier to delete these sites and all associated data
which may have been created by the site import: hosts and links to extra
organisations. The site should be removed from the transition-config repo
before running the task, otherwise the site will be re-imported the next time
the orgs_sites_hosts import runs.
The task takes an array of site abbrs, eg:
bundle exec rake import:revert:sites[gds_alphagov_content-planner,another_site]

If any given site has any mappings or hits rows, it will not be deleted. The
presence of these is strongly indicative of us needing to keep the sites in
the database; if we really do want to delete a site which has mappings or hits
rows then that is a very special case and won't be automated.

A couple of minor points, otherwise :+1:

Merge when green :green_book:

authors: jamiecobbett jennyd

repo: alphagov/transition


text:
Exception: Failed to retrieve the i3 or sway IPC socket path (running default example)

Exception                                 Traceback (most recent call last)
 in
3 # Create the Connection object that can be used to send commands and subscribe
4 # to events.
----> 5 i3 = Connection()
6
7 # Print the name of the focused window
~/.local/lib/python3.6/site-packages/i3ipc/connection.py in init(self, socket_path, auto_reconnect)
66
67         if not socket_path:
---> 68             raise Exception('Failed to retrieve the i3 or sway IPC socket path')
69
70         if auto_reconnect:
Exception: Failed to retrieve the i3 or sway IPC socket path

This solves it:
connection.py
if not socket_path:
socket_path = str(subprocess.check_output("i3 --get-socketpath",shell=True).decode().strip())

Unfortunately I eat the error that would tell you why that failed. I need to add better logging.

I also need to add the logic to get it from the binary if the other methods fail.

I've added logging and the alternative socket path finding mechanism. This should be fixed.

authors: acrisci santiagodemierre


text:
clear form data is not working

if account data is loaded through search, the clear form button does not work

fixed in 3217ec5

repo: altonzheng/PHC


text:
Multiline rows have wrong colors

Rows that are multiline have the second line white instead of the correct color.

Looks like the bug is in github.com/olekukonko/tablewriter. Could be this or related issue: https://github.com/olekukonko/tablewriter/issues/90

repo: alufers/inpost-cli