Skip to content

Loading java sourcemap breaks code mirror syntax highlight #2851

Closed
electron-archive/brightray
#146

Description

@kyrisu

I'm packaging GWT app into Electron container, but when I want to debug it and load the sourcemaps I get:

[1437:0921/143457:ERROR:CONSOLE(25)] "Empty response arrived for script 'chrome-devtools://devtools/bundled/cm_modes_module.js'", source: chrome-devtools://devtools/bundled/inspector.js (25)
[1437:0921/143457:ERROR:CONSOLE(0)] "Uncaught (in promise) Could not instantiate: WebInspector.DefaultCodeMirrorMimeMode", source: chrome-devtools://devtools/bundled/inspector.html?can_dock=true&toolbarColor=rgba(223,223,223,1)&textColor=rgba(0,0,0,1)&experiments=true (0)

Which efectively disables the syntax highlight. Everything works ok in the recent version of chrome.

Any tips how I could troubleshoot are greatly appreciated

Activity

  1. zcbenz commented on Sep 21, 2015

    @zcbenz
    Contributor

    Can you provide a small demo app that uses source maps?

  2. kyrisu commented on Sep 21, 2015

    @kyrisu
    Author

    Do you have access to tomcat server?

    If yes - I can provide sample GWT project (and electron project) with instructions how to run codeserver (which is providing java sourcemaps).

  3. zcbenz commented on Sep 21, 2015

    @zcbenz
    Contributor

    No, I'll probably try to setup a simple app when I have time in future.

  4. ducky427 commented on Sep 21, 2015

    @ducky427

    I can also reproduce this issue using ClojureScript. I can probably create a simple app for this.

  5. ducky427 commented on Sep 21, 2015

    @ducky427

    I've got an app folder here. To reproduce using Electron v0.33.0 on OS X:

    1. Launch the app using Electron through terminal. I did: Electron.app/Contents/MacOS/Electron app.
    2. Open DevTools using the Debug Menu [if not already open].
    3. Goto Sources tab and open file:// .... js/p/out/cljs/core.cljs.

    I noticed the error in the terminal.

    Hope this helps.

    Edit: Just for reference, ClojureScript code highligting works in Chrome 45. More info here

  6. ducky427 commented on Sep 26, 2015

    @ducky427

    Could it be that some files are missing from atom/libchromiumcontent's create-dist script? I found that the CodeMirror files are in vendor/chromium/src/third_party/WebKit/Source/devtools/front-end/cm_modes folder of libchromiumcontent repo.

  7. added a commit that references this issue on Oct 1, 2015
  8. ducky427 commented on Oct 2, 2015

    @ducky427

    Thanks a lot. Electron v0.33.4 does fix this for me.

    Reallly grateful for this project. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions