Ant debug info not displayed in Processing for Android - ant

Processing works find, and I can build for Android and run it on my device. However if the code has some compile-time errors in it, like referencing a variable that doesn't exist, Processing tells me this:
BUILD FAILED
C:\Program Files\Android\android-sdk\tools\ant\build.xml:679: The following error occurred while executing this line:
C:\Program Files\Android\android-sdk\tools\ant\build.xml:692: Compile failed; see the compiler error output for details.
There is no info on the location of the error, which is very annoying.
The only workaround I have come up with is to manually build ANT through the console. In the console, errors are displayed as expected...
I have updated Processing to the latest build 2.03b, and I have downloaded the last version of ANT.

I have experienced a similar error due to a typo. Unfortunately, I do not know a solution to this but may be able to suggest another (better, easier?) workaround. If you export the project within Processing and open it in another IDE, such as Eclipse, you will see verbose errors and warnings. I spent a whole weekend before doing this and finding my typo as soon as I opened the project with Eclipse. Contrary to what the Processing for Android wiki makes Eclipse sound like, using Eclipse is pretty easy (I am not a programmer and have only run the "Hello Android" programs in Eclipse). Perhaps a more verbose error output will be included in future versions of Processing. Hope this helps!

Related

compileKotlinIos FAILED - Could not find stdlib

I am trying to compile kotlin multiplatform, which contains iOS target.
I tried different examples over github, but most of them are outdated and don't work, probably because of incompatibility with current tools. Thing, that seems most reasonable is creating Mobile Android/iOS | Gradle or Mobile Shared Library | Gradle project using IntelliJ Idea.
When I create brand new project, I am still getting same error:
> Task :app:compileKotlinIos FAILED
e: Could not find "stdlib" in [~/git/iosandroidtest, ~/.konan/klib, ~/.konan/kotlin-native-macos-1.3.61/klib/common, ~/.konan/kotlin-native-macos-1.3.61/klib/platform/ios_x64].
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileKotlinIos'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
I am using kotlin 1.3.61, xcode 11.3. Any ideas?
Edit:
I pushed empty project (without any changes from me) to github:
https://github.com/hovi/iostest
I think you just ran into a bug with partial archive download.
Per the author there, "I got a snapshot of the .konan directory. It's interesting as it looks like part of the runtime download is there, but some parts are missing. Specifically in this case the common folder in klib, but also the licenses folder.
I was able to repro this locally by killing the build process while the archive is being extracted. For reference, see NativeCompilerDownloader. It looks to see if the folder is there. If not, it'll download and extract. If yes, the build process assumes everything is OK. ... Their local build will certainly be broken from then on until they clean and rebuild ~.konan." I suggest you report your issue there as well. (btw - tried your project in IJ and AS (as well as creating new lib project in IJ), didn't have any issues. Somehow your bad luck with an interrupted download (:))
Link to GitHub issue

Fortify unable to load build session with ID when scanning iOS project

When scanning iOS project using Fortify, we are facing "unable to load build session with ID" issue.
What I did was, I opened the project by pointing to the folder of the source code. Then this error happened.
I am facing the same error while building a project written in C++. I am using VS 2017 and Fortify is throwing this error while running Analyze solution on .sln file.
Maybe this is occurring because of trying to translate and run -show-build-warnings in one command.
-show-build-warnings is a separate step, and will only work after translation, so try your command without that switch.
If it completes successfully, then you can run from VS dev cmdprompt sourceanalyzer -b -show-build-warnings to check for warnings.
You can check 'not show warning as errors' and reduce warning level to W3 and then build the solution in debug mode.
I resolved this by first doing the equivalent of a "make clean". If there are already executables there, sourceanalyzer make -s will no op and Fortify will not be able to work with them.

Pub error: Pub build failed, [255] Wrong script snapshot version

I have started getting this issue now after going through a lot of "chaos" with performing a system restore (I'm on Win8.1) while trying to get a certain game working again. Now that that mess is over and done with, I have been left with a few apps and such removed and needing to be reinstalled, including the JDK which I have already reinstalled. Since I have a project I need to work on I opened up DartEditor again and when I tried to do pub build I get this error:
Pub build failed, [255] Wrong script snapshot version, expected
'f6711525cff9f7d0d08595166664b767' found '836a274342f7f88d6b5a9bb59b2649a9'
Googling led me to this old issue but that's labelled as fixed...what could be going wrong here?
Ok, so deleting the dart directory (the one with the editor executable, relevant .jar files and all that other stuff) and downloading it anew did resolve my issue. I'm curious though as to whether anyone knows what might have caused the issue, and/or what other things I might have been able to do to resolve it.

Xcode 6 build failing with missing Info.plist file

I've got a project that I've been working on for a number of years, and everything was going really well making some changes this afternoon, until…
Xcode has stopped compiling the application. It's an ObjC application for the iPad. I get a Shell Script Invocation Error:
Source is /Users/andrew/Developer/SalesIQ/SalesIQ/SalesIQ/SalesIQ-Info.plist
Build is /Users/andrew/Library/Developer/Xcode/DerivedData/SalesIQ-cflsbctuolgqvpbqmuzvrkuopvkl/Build/Products/Debug-iphonesimulator/SalesIQ.app/Info.plist
missing file /Users/andrew/Library/Developer/Xcode/DerivedData/SalesIQ-cflsbctuolgqvpbqmuzvrkuopvkl/Build/Products/Debug-iphonesimulator/SalesIQ.app/Info.plist
Command /bin/sh failed with exit code 1
I've even tried checking out an earlier version of the application and I still get the same error, which confuses me.
Can anyone nudge me in the right direction?
Edit: I should note that I've done a clean and build. I've rebooted. I've tried Xcode 6.0 and the 6.1 beta, and no matter what I do this error is still there.
The missing file warning is misleading. For some unknown reason, a custom script that was run during the build was failing. I deleted the Run Script task, then added it back in, and it's all good.
Weird…

Cannot find referenced source: package:web_ui/web_ui.dart

I have a project that uses Dart and the web_ui package. I just upgraded Dart to libv2, specifically:
Dart Editor version 0.3.1_r17594
Dart SDK version 0.3.1.3_r17594
I just updated web_ui to 0.3.0+2.
Now, I'm getting these errors:
Cannot find referenced source: package:web_ui/web_ui.dart
no such type "WebComponent"
"ChatWindowComponent" has no method named "dispatch"
When I run my build.dart, it completes successfully, but it doesn't create an out directory. Nor does it give any error messages.
What's going on? Why can't it find package:web_ui/web_ui.dart? I can clearly see that pub has set stuff up correctly.
It's a known issue. See http://code.google.com/p/dart/issues/detail?id=7822. The issue was closed today. I tried out a continuous build of Dart Editor, but that lead to different errors--I'll save that for another question.
When I run my build.dart, it completes successfully, but it doesn't create an out directory. Nor does it give any error messages.
I run the editor with 'automatically run pub' disabled. Creating a new web ui projects yields a few errors, after installing pub the errors are gone, but the timestamps of the files are to old now.
I changed the file that was to build and the out directory appeared immediately.

Resources