How to make Dartium stop at a breakpoint? - dart

dI am trying to get back into Dart programming after a year of break. When I last used Dart I use the DartEditor, which has since been deprecated. Now, I am trying to use WebStorm, and Dartium to run the standard dart project templates.
When I build the Uber Simple Web Application, I can get Webstorm to start the Dartium browser and display the page, but I cannot get it to stop at a breakpoint. When I build the Polymer Web Application, WebStorm starts the Dartium browser, but never displays the page - the request is made but nothing happens!
I can open the projects with a standard browser without an issue.
I have installed the JetBrains IDE Support plugin.
Dartium version: 45.0.2454.104
Webstorm version: 2016.1.1 bld 145.597
Dart version: 1.16.0

There is currently an issue in WebStorm that breaks showing applications in Dartium related to caching. The pub serve window in WebStorm should show on which port your application is served. if you open the URL in Dartium using this port
http://localhost:thePort/index.html
then it should work.
An update containing a fix for this issue was announced for this week.

WebStorm 2016.1.2 and IntelliJ IDEA 2016.1.2 official releases are published now, all known problems regarding SDK 1.16 are fixed there.

Related

ASP.NET OmniSharp server is not running on Ubuntu Mono

After setting up VS Code, I'm trying to run an ASP.NET 5 project using Visual studio code's command palette on Ubuntu Linux 14.4.
The DNVM installed is for Mono. Following the steps given on VS code's official docs, the project is created with Yeoman scaffolder.
Whenever trying to start the project, I get the following error:
OmniSharp server is not running.
I found some posts when trying to solve this but most seems to be addressing either Console project or are given for OS x:
For a Console App
This is for debugging not running
The output of mono --version shows that it is >3.12:
My dnvm is already the latest
I can run the project by using dnx web command from Terminal.
However, my simple question:
How do I run ASP.NET 5 on Ubuntu using VS Code?
Side question : Not sure by when the debugging will be supported. Any rumours about the extension will be appreciated.
This seems to be a bug with OmniSharp and not specifically with VSCode

Visual Studio iOS deployment fails because "The edge module has not been pre-compiled"

I am trying to deploy a HTML/CSS/JS Apache Cordova application from a windows machine to a Mac. I believe they are communicating properly through the remotebuild agent but when I attempt to build a blank project to deploy on the Mac this error is thrown at the very beginning of the build:
MDAVSCLI : error : The edge module has not been pre-compiled for node.js version v4.1.1. You must build a custom version of edge.node. Please refer to https://github.com/tjanczuk/edge for building instructions.
I have followed the link and have searched for the solution as to how to fix this error but the link does not seem to apply to what I am doing at all. I am not using any node.js functions in my code so I am confused as to why this error is occuring. I am only trying to build a nearly blank HTML page and I still get the error regardless of how simple I make the page.
How can I go about fixing this solution? what is the best way to get rid of this error or to as the error suggests pre-compile edge to work with node.js version 4.1.1?
There is an issue with Cordova 5.3.1 and Node v4.
https://github.com/Microsoft/cordova-docs/blob/master/articles/known-issues/known-issues-ios.md#building-for-ios-hangs-when-nodejs-v40-is-installed
I fixed by uninstalling Node v4.1.1 and installing Node v0.12.7
https://nodejs.org/en/download/releases/
#Dustin,
you have a misconception about how Cordova works. You say you want to deploy to a Mac, but I think you mean iOS. If so, you should read:
What's needed for iOS Development?
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/bf1Hgkel3W4
I Quote
The short and sweet of it is as follows:
You need OS X + Xcode
You need several iDevices
You need $99/year for Apple Developer program (which you've already indicated is not a problem)
All of the above = cost-of-doing-business.
If you read the entire thread (especially the part from Kerri Shotz), you will get more information and more options.
Best of Luck
After losing a fair bit of hope and following a lot of posts, blogs and bug work-arounds with no luck I decided to click on the 'Run Dependency Checker' button in Visual Studio - Tools -> Options -> Tools For Apache Cordova -> Cordov Tools. This checker told me that Joyent Node.js wast installed. I did have node.js and npm set up on the latest version, im not sure what the difference is.
I went through the process of modifying the VS installation (change or remove a program) and sure enough Joyent Node.js wasnt checked. I cheked it and it went through the process of installing.
My VS installation now looks like the below and my project is building without:
MDAVSCLI : error : The edge module has not been pre-compiled for node.js version v4.1.1

How to reinstall Dart Editor

I've been trying Dart x64 for a month (under Windows 8).
Unfortunately, I've removed the "\Users\$user\AppData\Roaming\Pub\" folder. After that any Dart/Polymer project (including shipped samples like sunflower) stops showing anything in a browser without any error or exception.
I deleted the \dart folder, and some other dart folders that I'd found (\Users\$user\Application Data\Pub\, \Users\$user\.dartium\, \Users\$user\DartEditor\).
Then I'd reinstalled the Dart x64 (unpack zip-file), but problem still remains.
Then I'd removed Dart x64 and installed Dart ia32. In this case projects build with errors (can't find files from standard package), but work well in the Dartium browser.
I'd like to completely remove Dart and reinstall the new one. Can anyone help me start from scratch with Dart?
UPDATE:
I've deleted following Dart artifacts:
C:\Users\$user\dart\
C:\Users\$user\DartEditor\
"C:\Users\$user\Application Data.stagehand"
"C:\Users\$user\Application Data\Pub\"
C:\Users\$user.dartium\
C:\Users\$user\AppData\Local.dartServer\
But got the problem, described in the How to make Dart Editor find referenced packages thread.
So question still actual.

Dart editor run error "could not start pub serve or connect to pub" on it's sample web application project

I just installed Dart Editor and created a simple web application and when I click on run it shows this error and nothing happens.
"could not start pub serve or connect to pub"
How is the configuration of dart editor for Windows7 sp1 64bit?
What am I supposed to do to run the sample project?
It is a common problem
http://dartbug.com/20771 (mentions that an internet connection is necessary)
http://dartbug.com/19659
http://dartbug.com/19847
http://dartbug.com/19656 (it was mentioned that reinstall Dart helped)
Nothing contains a good solution.
For weird problems it's always worth to try pub cache repair on the command line.

web_components in dartium

I had some trouble to display my project in FF cause of shadow_dom. I read that the shadow_dom package is deprecated so I followed the steps in http://pub.dartlang.org/packages/web_components and added web_components to my project.
Now I can build and run my project in FF. However when I include packages/web_components/platform.js and run my project in dartium it displays without css whereever I use shadow_dom. I also get the following error :
ShadowDOMPolyfill polyfill was loaded in Dartium. This will not work.
This indicates that Dartium's Chrome version is not compatible with
this version of web_components.
How to solve this ?

Resources