googlearchive / chromedeveditor

Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. (NO LONGER IN ACTIVE DEVELOPMENT)
BSD 3-Clause "New" or "Revised" License
2.92k stars 410 forks source link

Chrome Dev Editor not workin. #4096

Open RoshanLakmal opened 6 years ago

RoshanLakmal commented 6 years ago

Chrome Dev Editor is not working in the latest Chrome update version. Version 64.0.3282.140(Official Build) (64-bit) both Windows as well as Mac.

bigriff commented 6 years ago

Stopped working in Chrome OS as well, 64.0.3282.190.

When you open the app, does it just show spin icon?

gio1135 commented 6 years ago

Yes

On Tue, Mar 13, 2018, 10:54 PM bigriff notifications@github.com wrote:

Stopped working in Chrome OS as well, 64.0.3282.190 .

When you open the app, does it just show spin icon?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/googlearchive/chromedeveditor/issues/4096#issuecomment-372912853, or mute the thread https://github.com/notifications/unsubscribe-auth/AKpcs6vAYLogNo1cnc_k9wt4FNGS7_Q7ks5teLCXgaJpZM4R4dei .

RoshanLakmal commented 6 years ago

I used a old chrome version and it works fine. I think the latest update some how crashed something.

rafi16jan commented 6 years ago

Chrome Dev Editor is my favorite Code Editor on Chrome OS. There are plenty of Javascript Apps that I've been develop with it. Sad it's not working anymore :(

RoshanLakmal commented 6 years ago

Is there anyway we can patch this issue ?

rafi16jan commented 6 years ago

I'm trying to get the log but I can't figure it where does it stored. Seems /var/log only shows android apps logs

nmcain commented 6 years ago

I have taken it upon myself to fix this issue because I love this app and do not want it to see the same fate as arc welder

gio1135 commented 6 years ago

@nmcain Yeah, ARC Welder was amazing when it came out. It's a shame that it's no longer with us.

rafi16jan commented 6 years ago

@nmcain do you find a fix though?

There's actually a good alternative called Quantum https://chrome.google.com/webstore/detail/quantum/hmnlklahndgbhdoclhdnoafhafbhmnkm

nmcain commented 6 years ago

I found a fix: I removed the code for the loading screen because the chrome update removed the function where the loader goes away when the page is done loading.

YaserAlOsh commented 6 years ago

@nmcain Nice, could you point to us where the loading screen code is? Thanks

RoshanLakmal commented 6 years ago

@nmcain Well done yes please tell us where we need to do the change?

nmcain commented 6 years ago

I assume it is in the spark.dart file, but is there any way to contact the original developers?

On Tue, Apr 3, 2018 at 12:43 AM, Roshan Lakmal Elvitigala < notifications@github.com> wrote:

@nmcain https://github.com/nmcain Well done yes please tell us where we need to do the change?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/googlearchive/chromedeveditor/issues/4096#issuecomment-378158502, or mute the thread https://github.com/notifications/unsubscribe-auth/AR0yHK0PzNHgYeNGT7IdIUYor3S7W2hdks5tkygkgaJpZM4R4dei .

darthwalsh commented 6 years ago

@rafi16jan Quantum looks cool, but it's ChromeOS only? I'd like to use the same IDE on all my development platforms...

darthwalsh commented 6 years ago

@nmcain Nice find! The Google Archive account says "All projects here are completely frozen, though feel free to fork and continue using them on your own."

Want to create a fork that removes the loading screen code?

ghost commented 6 years ago

I wonder if the code can be used to make a decent Flutter based IDE. This would run on all desktops, Chrome and even mobiles.

https://github.com/google/flutter-desktop-embedding

MyrmidonGit commented 6 years ago

I understand that this thread is almost two months old, but it's still open, and I don't see a definitive solution.

So.. I'm pretty naive when it comes to big projects like this.. I understand most code languages, and I'd love to be able to use Chrome Dev Editor. I've read through this thread a few times, as well as the spark.dart file as @nmcain mentioned, but I can't seem to find the correct portion of the code to delete or edit in order to remove the loading screen, which is what the majority of this thread seemed to accept as the solution. However @darthwalsh also mentioned it may be a good idea to create a fork that removes the loading screen code. If that exists, then a simple link to the fork would be great to see.

Best Regards - Richie

Noisytoot commented 6 years ago

I also have the issue.

The DevTools Log shows:

spark_polymer.html:363 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource: 'wasm-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-zszB8rWNmzzEpQZ4kDLMJXlSIzMDfBnWIaDamOW5/dk='), or a nonce ('nonce-...') is required to enable inline execution.

[Deprecation] /deep/ combinator is no longer supported in CSS dynamic profile.It is now effectively no-op, acting as if it were a descendant combinator. /deep/ combinator will be removed, and will be invalid at M65. You should remove it. See https://www.chromestatus.com/features/4964279606312960 for more details.
spark_polymer.html_bootstrap.dart.js:69258 Uncaught DOMException: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.
    at SparkSelector.dart.Element.createShadowRoot$0 (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:116085:79)
    at SparkSelector.dart.Polymer.shadowFromTemplate$1 (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:144836:21)
    at SparkSelector.dart.Polymer.parseDeclaration$1 (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:144807:23)
    at SparkSelector.dart.Polymer.parseDeclarations$1 (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:144799:16)
    at SparkSelector.dart.Polymer._makeElementReady$0 (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:144774:14)
    at SparkSelector.dart.Polymer.bindFinished$0 (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:144961:21)
    at Object._processBindings (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:188332:10)
    at Object._cloneAndBindInstance (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:188135:9)
    at Object._cloneAndBindInstance (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:188129:11)
    at TemplateBindExtension.createInstance$2 (chrome-extension://pnoffddplpippgcfjdhbmhkofpnaalpg/spark_polymer.html_bootstrap.dart.js:188655:21)
spark_polymer.html_bootstrap.dart.js:155107 UnknownJsTypeError
_handleUncaughtException @ spark_polymer.html_bootstrap.dart.js:155107
spark_polymer.html_bootstrap.dart.js:155112 TypeError: Cannot set property 'textContent' of null
    at KeyBindingManager._updateName$1 (spark_polymer.html_bootstrap.dart.js:160839)
    at SparkPolymer.initAceManager$0 (spark_polymer.html_bootstrap.dart.js:155232)
    at Spark_init___closure.dart.Spark_init___closure.call$1 (spark_polymer.html_bootstrap.dart.js:155864)
    at StaticClosure.dart._rootRunUnary (spark_polymer.html_bootstrap.dart.js:103971)
    at _CustomZone.dart._CustomZone.runUnary$2 (spark_polymer.html_bootstrap.dart.js:107323)
    at _Future__propagateToListeners_handleValueCallback.call$0 (spark_polymer.html_bootstrap.dart.js:104966)
    at Object._Future__propagateToListeners (spark_polymer.html_bootstrap.dart.js:104873)
    at _Future._completeWithValue$1 (spark_polymer.html_bootstrap.dart.js:104757)
    at _Future__asyncComplete_closure0.dart._Future__asyncComplete_closure0.call$0 (spark_polymer.html_bootstrap.dart.js:104952)
    at StaticClosure.dart._rootRun (spark_polymer.html_bootstrap.dart.js:103962)
_handleUncaughtException @ spark_polymer.html_bootstrap.dart.js:155112
The source list for Content Security Policy directive 'script-src' contains an invalid source: ''wasm-eval''. It will be ignored.
spark_polymer.html:1 The source list for Content Security Policy directive 'script-src' contains an invalid source: ''wasm-eval''. It will be ignored.
nightsky30 commented 6 years ago

I just found CDE and became interested in development for Chrome OS. Won't work in Chrome 67 on Linux either :(

darthwalsh commented 6 years ago

Chrome Dev Editor was cool while it worked, but there's a few other tools you can try now:

If you have a new Chromebook and want to try some new dev-channel features, the new Linux app feature would let you use linux tools for web development: https://www.xda-developers.com/apollo-lake-chromebooks-acer-asus-lenovo-dell-linux-app/

One other way to develop on a Chromebook is to use the Android app support to run Termux through a bash emulator: https://blog.lessonslearned.org/building-a-more-secure-development-chromebook/

nightsky30 commented 6 years ago

@darthwalsh Thank you for the suggestions. So the app is not for me, but for another person who has a chromebook. I have a normal PC running Linux. I just want to develop for their chromebook, but develop on my Linux box. I was looking at just doing Android app development because it seems that is where chomebooks are heading.

rafi16jan commented 6 years ago

@nightsky30 yeah you're better to develop Android Apps than Chrome Apps now, it will be deprecated in favor of Desktop PWA (but extensions still available). But if you're already know web development you should just start develop with PWA frameworks like Polymer, React, Vue, etc.. It works on every browser and OS or even you can put it on a WebView

nightsky30 commented 6 years ago

@rafi16jan cool, thank you. I'll try looking into PWAs instead.

nmcain commented 5 years ago

I have gotten it to run on windows with nw.js 0.25.4, which uses an older version of chromium from before the security update that broke CDE. It works completely. I will upload a google drive link ASAP. While I am at it, I will try to fix that transparent menu.

PS It works on crossover on Chrome OS

rafi16jan commented 5 years ago

@nmcain Android CrossOver or Linux CrossOver? And CrossOver only works on Intel based Chromebooks...

jakcharvat commented 5 years ago

@nmcain Hello. Could you please point me in the correct direction to where that to-be-deleted code is? I am on windows, so linux or chrome-os alternatives are not an option for me. Thanks

nmcain commented 5 years ago

Yeah it turns out it was not a code problem, it was the fact that it used inline scripts or something to violate the chrome security policy. But there were issues in the loading screen and the /deep/ combinator. Nw.js does run on windows, and I have packaged an installer for windows, If you want it I will put it here.

jakcharvat commented 5 years ago

Yes please @nmcain

nmcain commented 5 years ago

https://drive.google.com/file/d/1prWZ8kGsy8BytTzsbyyuGLyE_B7Yf-r0/view?usp=sharing

jakcharvat commented 5 years ago

Thank you!

ijo-amali commented 5 years ago

I'm on Chrome OS and I figured out a way to inspect an app. What code do I delete?

nmcain commented 5 years ago

No code really, I thought it was that issue, but it is actually the chrome security policy. On windows, I would recommend the Google drive Link I posted with an old build of nw.js

ijo-amali commented 5 years ago

Ah, I see. I guess there's no hope for Chrome OS users, then.

luis-fonseca commented 5 years ago

The application does not load. You have been in the charging screen for a long time.

Eric-art-coder commented 5 years ago

image always loading can auther fix it ?

nmcain commented 5 years ago

Unfortunately, no. It is no longer under development, you could fork it and attempt to fix all of the security issues yourself, but this has got to be the second most irritating code I have ever looked at.

nmcain commented 5 years ago

As soon as I finish my personal projects, (Or get bored), I will make an attempt to have it pass the content security policies.

Eric-art-coder commented 5 years ago

now i have to use Text editor my repo

CryogenDev commented 5 years ago

Hey guys, I may have found a fix. Maybe.

A Chrome extension needs to use the CSP compliant script. The CSP compliant scripts are automatically generated by pub build with the extension dart.precompiled. There is also an option 'csp: true' for the Polymer transformer which must be set when Polymer is used. There is also a transformer in the chrome.dart package which does this automatically on pub build.

nmcain commented 5 years ago

That might work! CSP has changed a lot since v64, though.