Proplem with Visual studio 2015 and Ripple - visual-studio-cordova

When I run the application with Visual Studio and ripple, and I click link for other pages from Cordova project( to localhost) comes an error. Ripple notificates: "Instead of the page you'll see an AW, snap!" Chromes DeveloperTools tells: "was disconnected from the page.'
Links for some website works good. Before links worked well.
What could be the problem?

We found what appears to be a bug in Chromium and filed this to track it:
https://code.google.com/p/chromium/issues/detail?id=585260
We are making a change to Ripple to work around the issue. Please keep an eye on our VS TACO blog for more information; we'll make an announcement when the change goes live with instructions on how to update Ripple. You can find our blog here:
http://microsoft.github.io/vstacoblog/
We're sorry for any inconvenience this has caused you and hope to have a fix, both in our tools and in Chrome, shortly.
(Disclosure: I work on the Tools for Apache Cordova in Visual Studio)

I followed instructions from http://microsoft.github.io/vstacoblog/2016/02/12/update-to-ripple.html
and it's working :
-In Visual Studio, click Tools -> Options
-Find the Tools for Apache Cordova
-Click the “Clear Cordova Cache” button
-Rebuild your project

Please make sure that you have VS2015 TACO tools update 5. let me know if you have any issues afterwards. It works great for me with the latest update.

Luck did not last a long time. Chrome updated himself(Versio 48.0.2564.103 m) and Ripple does not again working. In new Chromes is bug with Visual Studio 2015 and Ripple.

This is a new issue we're investigating on the VS TACO team, too. I'll update this answer with any workarounds/next steps as we keep researching.
For now, the workaround is as suggested by #PeteQoo - you need to revert your version of Chrome to version 46.

Related

Xamarin forms Android project TargetFrameworkVersion Error after update to Xamarin Forms 5

I just updated to Xamarin Forms 5 and now I cannot compile my project. I get the error message
The $(TargetFrameworkVersion) (v9.0) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (10.0). You need to increase the $(TargetFrameworkVersion)
However, as you can see from the screen shot below, my Target Framework Version IS 10. What am I missing??
That's actually very easy.
First, go to the Android project and right-click it.
Properties>Application>Compile using Android version(Target version).
Change that to Android 10.0
Then go to the Android Manifest option below the application option.
Change the Target Android version to 10 as well.
This should solve it.
Goodluck
Revert in case of queries
One of my students was using Visual Studio 2019 for Mac and had a similar error.
I shared this link with him. After reading the ideas above, he figured out his solution.
Below is what he told me.
Hi Harlan, thanks! That link helped me find the answer!
FYI: first I downloaded the Android 10.0 SDK.
Then I right clicked on my Android project, went to "General" and
updated "Compile using Android version: (Target Framework)" to Android
10.0 (Q).
Then I went to the AndroidManifest and updated the Target Android
version to 10.0. Then boom, no more build errors! I guess it didn't
like 9.0!
I had been pulling my hair out trying to fix this, thanks again for
the link!

Visual Studio 2015 reinstall: ugly CSS editor, no color picker. Why?

I was forced to reinstall VS 2015 update 3.
Before reisntall I have this CSS/LESS editor, as I like and working with. this one have color picker & more:
After the upgrade, I see this one, with far-away autocomplete and no color picker:
Why I am seeing this? how to fix it?
Open With did not show a CSS editor in the list.
Update: found the problem. I was uninstalled AspNet5.ENU.RC1_Update1_KB3137909.exe (ASP.NET 5 RC1).
After this successful uninstall, I could open VS install, and see the Web Tools was unchecked. After the Unchecked, I can Reinstall them again without restart.
ref:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/e6724bba-8d10-46f4-bb50-3d703f258a79/vs-2015-microsoft-web-developer-tools-missing?forum=visualstudiogeneral

Visual Studio Apache Cordova - IOS build rotation issue

I'm a starter in writing app code in Visual Studio 2013 Community Apache Cordova and have managed to connect VS2013 with my Mac. Once I have gone through the process of building the app in VS and on my Mac and installing in on my iPhone, I open it up and it won't rotate. It doesn't rotate for a number of basic apps that I've written nor does it rotate if I build the default new project "Hello, your application is ready!" app.
I have done some research and tried changing the config.xml "Orientation" preference to "both", through the code window and also in the designer window but that doesn't change anything. I've also noticed that adding in a "BackgroundColor" preference doesn't work either.
Does anyone know if I may have configured something incorrectly or perhaps need to add something to my code?
All the HTML, JS and CSS that I've written seems to work okay (with the exception of trying to link URLs to the Safari Browser but that's another issue).
I have noticed the same issues. I tried finding some settings to fix that in the config.xml, but was not successful. I have resolved myself to just opening the iOS project in XCode and changing a few things:
Device Orientation: no matter the config.xml setting, its always only Portrait. I click-check the other 3 orientations.
Team: I have multiple developer profiles, and I need to choose correct one here.
Bundle Identifier. I screwed up one project, and have different case for iOS and Android. I leave the VS one as the Android one, so I can build completely correct for Android. Since I know I have to go to XCode for iOS anyway, I change the bundle identifier here.
You can find the project using Finder at ~/remote-builds/builds/9999/cordovaApp/platforms/ios/*.xcodeproj, where 9999 is the build number, though not necessarily the latest, largest number, but the latest datetime of the folder.
You can also refer to Greg's answer in this related post as an alternative solution.

Visual Studio 2013 Update 4 and Apache Cordova CTP3 Breaking/Stopping on Javascript lines with no breakpoints

I am running Visual Studio 2013 Update 4 with Tools for Apache Cordova CTP3 installed. After creating a brand new Apache Cordova project, and then debugging it, it breaks/pauses/stops on seemingly random lines of javascript files where there are no breakpoints. Meaning, it stops on lines as if there was a breakpoint there, but there really isn't. I'm using RIPPLE debugging only. I don't use a device or emulator AT ALL.
At one point, I had installed Visual Studio 2015 CTP5, and an associated update to the Android Emulator that was recommended. I since have uninstalled them.
This is a bug that appeared since a recent update to Chrome, and it is being worked on. You can run your app on Ripple by hitting F5 through the debugger breaks (hardly satisfactory), or Ctrl+F5 to start your app without debugging in Ripple. To debug, the better option is to run on on an emulator. The VS Emulator for Android on VS 2015 Preview has been working well for me. In VS 2013, GenyMotion is probably the best option for Android.
I have having the same problem as discussed here but noone seems able to help
https://social.msdn.microsoft.com/Forums/vstudio/en-US/10b9a01c-4afa-443e-83d5-fa4cd92493c0/visual-studio-cordova-templateangularjstodo-example-project-debug-issue?forum=vsdebug&prof=required
I fixed it by doing: Tools > Options > Tools for Apache Cordova > Cordova Tools.
Then click on the button 'Clear Cordova Cache'. Give it a few minutes..
Another thing I noticed, is that I might have had CTP3.0 vs CTP3.1. Be sure to take a real close look at https://support.microsoft.com/en-us/kb/3014133?wa=wsignin1.0

Xcode cannot run using the selected device

This is the message while trying to run under XCode 4 (it used to work under XCode 3):
No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.
I have profiles for my device for this app... where should I be looking to correct this?
The problem is that your iOS Deployment Target in Project-> Build Settings is different from the current version of iOS on your real device.
You're asking where to find it:
In XCode 4 there is a new button - look for the big
"Organizer button"
which is at the TOP RIGHT.
Physically connect your device and then click Devices. It seems that the new "Organizer button" is one of the "most-missed" things in the transition to XCode4.
Note, the questioner is asking: "WHERE should I be looking to correct this?"
I was having extra trouble because of my Enterprise License, but still updated the iPads. I didn't have to change anything in the Build Settings to lower. But the main thing that I had a problem with was in the Organizer I needed to hit "Use for Development" button.
Kind of an old post, and may not be the best way or a rookie thing to miss but wanted to help anyone out.
My problem similar to those above were related to having the deployment target set too high for the version installed on the phone. Would be nice if it gave a more useful error message. I spent hours messing with my provisioning profile trying to fix it, when the real problem was the older version of the software on the phone.
I had the same problem. The reason was simply, that my ipad had not been update to version 4.3.
This just happened to me for iOS5 with xcode 4.2.
The answer is to go into organiser, select your device, and press the "Develop with this device" button (or similar wording).
Then go back and build, and it should work..
I received this error while having an iPad properly connected.
Some info:
Ipad iOS version: 4.2.1
XCode 4.2
XCode project created with "iOS Application / Empty Application" template.
The problem was that I had to specify the "iOS Deployment Target" to 4.2 in more than one place!
That is, both in the "Build Settings" and in the "Summary".
Very odd, and definitely another XCode4 annoyance.
I got this error in Organizer - "Could not support development.". I tried rebooting the iOS device and it worked for me :)
Check that the Executable File (also known as CFBundleExecutable) in the Info.plist file is set to ${EXECUTABLE_NAME} as opposed to any hardcoded value. This will ensure that even if you change your project name or target name or scheme name, that it still works.
you need to install the proper version of iOS.in my case it is iOS 4.0 - 4.1 Device Debugging Support
GOTO --> XCode Preferences -> Downloads --> Component
there are all updates available for your iOS click Install.
This is works for me.
It looks like this error can also come about if the "Product Name" in your target's build settings does not match the value of "CFBundleExecutable" in your info.plist
It looks like to me this is the general error Apple gives if the executable is not installed correctly on the device. When the debugger tries to attach it looks for the executable name and if it's not there they give this error. Touch one to debug.
Go to build option and select valid compiler.
Chose your right iOS Deployment version

Resources