google caja not building - html-sanitizing

Where can I download the file html-css-sanitizer-minified.js? I'd rather download the file than build caja myself. Reason: I tried building caja and got the errors below. Any Clues?
Version.set:
[exec] Execute failed: java.io.IOException: Cannot run program "tools\svnve
rsion-nocolon": CreateProcess error=2, The system cannot find the file specified
Version.update:
build.info:
HtmlParser:
[javac] Compiling 55 source files to c:\google-caja\third_party\java\htmlpar
ser\lib
[javac] error: error reading c:\google-caja\third_party\java\jetty\lib\jetty
-util.jar; error in opening zip file
[javac] error: error reading c:\google-caja\third_party\java\jetty\lib\jetty
.jar; error in opening zip file
[javac] 2 errors
BUILD FAILED
Thank you

Caja doesn't build on Windows. You can get the latest version of the sanitizer here:
http://www.gstatic.com/caja/5030/html-sanitizer-minified.js

Related

Not able to run project

I have selected Location in Xcode preference also but getting the same error:
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Error: Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
at checkExecSyncError (child_process.js:601:13)
at Object.execFileSync (child_process.js:621:13)
at Object.runIOS [as func] (/Users/ranjith/Documents/Project/Login_React/node_modules/react-native/local-cli/runIOS/runIOS.js:76:17)
at Promise.resolve.then (/Users/ranjith/Documents/Project/Login_React/node_modules/react-native/local-cli/cliEntry.js:117:22)
at <anonymous>
Check Xcode Command Line Tools are configured Correctly go following path
Open Xcode > Preferences > Locations
Then Set the Command Line Tools
In my case, an Xcode update caused iPhoneOS-12.2.sdk to be no longer available; instead, the path contained iPhoneOS-12.4.sdk. But react-native run-ios complained of not being able to find 12.2.
Restarting the computer fixed the issue.
Do you have XCode and Command Line Tools installed?

Xcode 10 fatal error: lipo: can't open input file

I'm building a static library in objective-c, in Xcode 9 I could build without problem but I'm blocked in Xcode 10.
Initially I had these two problems that I resolved with the answers below
Xcode 10 Error: Multiple commands produce
Xcode 10: unable to attach DB error
Now I have this lipo error, and I already tried the solution of adding arm64 to the valid architecture and build only valid architecture
build settings pictures
** BUILD SUCCEEDED **
fatal error: lipo: can't open input file: /Users/Alex/Library/Developer/Xcode/DerivedData/myNewLibrary-gvpwgkkoffdnkybybgkafnqwepcx/Build/Products/Debug-iphoneos/arm64/myNewLibrary/myNewLibrary (No such file or directory)
Command PhaseScriptExecution failed with a nonzero exit code
Anyone have idea how to resolve ? thanks

Gradle build :app:mergeDebugResources file not found error

I installed a fresh copy of the newest Android Studio and then created a new "Basic Activity" project with the default settings. Now when I try to execute Gradle Build it will generate several "file not found" errors as follows:
16:49:27: Executing task 'build'...
Executing tasks: [build]
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceDebug
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\anim\abc_tooltip_exit.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\layout\design_navigation_item.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_btn_colored_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_action_bar_up_container.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_ab_share_pack_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_search_dropdown_item_icons_2line.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_000.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xxxhdpi-v4\abc_text_select_handle_right_mtrl_dark.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_dark.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color\abc_secondary_text_material_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_btn_default_mtrl_shape.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color\abc_primary_text_disable_only_material_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-ldrtl-xxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_screen_simple_overlay_action_mode.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color\abc_primary_text_material_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\abc_popup_menu_header_item_layout.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_ic_menu_cut_mtrl_alpha.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-ldrtl-xhdpi-v17\abc_spinner_mtrl_am_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-mdpi-v4\abc_text_select_handle_left_mtrl_dark.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xxhdpi-v4\abc_ic_star_black_36dp.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_edit_text_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\support-media-compat-27.1.0.aar\18f801487329cf88fc1bb34c25ff9eeb\res\layout\notification_template_lines_media.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-hdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\layout\select_dialog_multichoice_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\drawable-v21\avd_show_password.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_000.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_015.png: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\drawable\design_password_eye.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable\abc_list_selector_background_transition_holo_light.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\anim\abc_fade_in.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\color-v23\abc_btn_colored_borderless_text_material.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\design-27.1.0.aar\6a74caf0abf591df5d9a1f94023d971c\res\anim\design_snackbar_out.xml: error: file not found.
C:\Users\K?ytt?j?\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\adf488ceb29f037c73824725aff44f25\res\drawable-ldrtl-xxxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found.
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
9 actionable tasks: 8 executed, 1 up-to-date
16:49:32: Task execution finished 'build'.
Any idea why those files are missing ?
Could it be the path name because my username is "Käyttäjä" and for some reason the compiler cannot handle it ?
How to solve the situation ?
It looks like the files are in place for example:
Yes. It was the path name thing. What I did was I created a new Windows 10 user with no special characters in the name and now it works just fine. This sounds like a bug. Reported.

tensorflow-magenta bazel error running first test

I have installed the C++ protobuf library on Ubuntu 15.10. When I run the first magenta test within the magenta workspace directory I get this error (changed url to protobuf, cant post not enough reputation points. What a great problem reporting system this is):
root#ubuntu-VirtualBox:/home/ubuntu/magenta# bazel test magenta/...
..
ERROR: package contains errors: magenta.
ERROR: error loading package 'magenta': Encountered error while reading extension file 'protobuf.bzl': no such package '#protobuf//': Error cloning repository: protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack caused by protobuf: cannot open git-upload-pack.
INFO: Elapsed time: 2.305s
ERROR: Couldn't start the build. Unable to run tests.

Error 258 while creating Titanium android module

I am trying to create an android module with titanium.
I am getting the error below:
Buildfile: C:\Users\dhairya\workspace\titanium-testandroidmodule\build.xml
init:
[mkdir] Created dir: C:\Users\dhairya\workspace\titanium-testandroidmodule\build\classes
[mkdir] Created dir: C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated
[mkdir] Created dir: C:\Users\dhairya\workspace\titanium-testandroidmodule\dist
process.annotations:
[mkdir] Created dir: C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\json
[javac] Compiling 2 source files to C:\Users\dhairya\workspace\titanium-testandroidmodule\build\classes
[javac] Note: [KrollBindingGen] Running Kroll binding generator.
[javac] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/testandroidmodule.json
[javac] Note: [KrollBindingGen] Found binding for proxy Example
[javac] Note: [KrollBindingGen] Found binding for module Testandroidmodule
[javac] Note: [KrollBindingGen] Generating JSON: file:/C:/Users/dhairya/workspace/titanium-testandroidmodule/build/generated/json/org/appcelerator/titanium/bindings/testandroidmodule.json
[javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]'
[javac] Note: C:\Users\dhairya\workspace\titanium-testandroidmodule\src\com\test\testandroidmodule\ExampleProxy.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
generate.rhino.bindings:
[java] Generating C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\java\com\test\testandroidmodule\TestandroidmoduleModulePrototype.java
[java] Generating C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\java\com\test\testandroidmodule\ExampleProxyPrototype.java
[java] Generating C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\java\testandroidmoduleGeneratedBindings.java
generate.rhino.idswitch:
[echo] Generating IDs for C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\java\com\test\testandroidmodule\ExampleProxyPrototype.java
[echo] Generating IDs for C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\java\com\test\testandroidmodule\TestandroidmoduleModulePrototype.java
[echo] Generating IDs for C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\java\testandroidmoduleGeneratedBindings.java
generate.v8.bindings:
[java] Generating C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\jni\com.test.testandroidmodule.TestandroidmoduleModule.h
[java] Generating C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\jni\com.test.testandroidmodule.TestandroidmoduleModule.cpp
[java] Generating C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\jni\com.test.testandroidmodule.ExampleProxy.h
[java] Generating C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\jni\com.test.testandroidmodule.ExampleProxy.cpp
generate.bindings:
pre.compile:
ndk.build:
[copy] Copying 1 file to C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated
[copy] Copying 1 file to C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\jni
[exec] jni/Android.mk:24: warning: overriding commands for target `C:/Users/dhairya/workspace/titanium-testandroidmodule/build/generated/KrollGeneratedBindings.cpp'
[exec] jni/Android.mk:24: warning: ignoring old commands for target `C:/Users/dhairya/workspace/titanium-testandroidmodule/build/generated/KrollGeneratedBindings.cpp'
[exec] jni/Android.mk:27: warning: overriding commands for target `C:/Users/dhairya/workspace/titanium-testandroidmodule/build/generated/BootstrapJS.cpp'
[exec] jni/Android.mk:27: warning: ignoring old commands for target `C:/Users/dhairya/workspace/titanium-testandroidmodule/build/generated/BootstrapJS.cpp'
[exec] /usr/bin/sh: -c: line 1: syntax error: unexpected end of file
[exec] make: *** [C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated/obj/local/armeabi/objs/com.test.testandroidmodule/com.test.testandroidmodule.ExampleProxy.o] Error 258
BUILD FAILED
C:\Users\dhairya\AppData\Roaming\Titanium\mobilesdk\win32\2.0.1.GA2\module\android\build.xml:236: C:\Users\dhairya\workspace\titanium-testandroidmodule\build\generated\libs does not exist.
Total time: 3 seconds
Any idea what is the problem? I have just make a default android module using command:
titanium create --platform=android --type=module --name=testandroidmodule --id=com.test.testandroidmodule --android=C:\Android\android-sdk
Added the android-ndk path in the build.property file
This is the build.property file:
titanium.platform=C:\\Users\\dhairya\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\2.0.1.GA2\\android
android.platform=C:\\Android\\android-sdk\\platforms\\android-8
google.apis=C:\\Android\\android-sdk\\add-ons\\addon-google_apis-google_inc_-8
android.ndk=C:\\Android\\android-ndk\\android-ndk-r7b
removing C:\RhoStudio\devkit\bin; from path variable under System Variables solved the issue.
Titanium mobilesdk version: 2.0.1.GA2