Coder Social home page Coder Social logo

Comments (2)

mxschmitt avatar mxschmitt commented on May 24, 2024

I'm unfortunately not able to reproduce. I tried version 18 and latest 20, probably related to 5818707.

Which Node.js version are you using on CI? Or are you reproducing it locally?

Could you set the $Env:DEBUG="pw:browser,pw:protocol" env var? This might yield more debug output when launching Electron with Playwright.

from playwright.

c3er avatar c3er commented on May 24, 2024

It appears to be actually a problem with space characters in the path, which would explain, why this didn't appear on my macOS.

Protocol of the last run:

D:\eigene dateien\devel\web\electron-playwright-issue [master ≡]> $Env:DEBUG="pw:browser,pw:protocol"
D:\eigene dateien\devel\web\electron-playwright-issue [master ≡]> npm test

> [email protected] test
> mocha --timeout 20000



  Sample integration test
  pw:browser <launching> D:\eigene dateien\devel\web\electron-playwright-issue\node_modules\electron\dist\electron.exe --inspect=0 --remote-debugging-port=0 D:\eigene dateien\devel\web\electron-playwright-issue\app\main.js +0ms
  pw:browser <launched> pid=29208 +6ms
  pw:browser [pid=29208][err] Der Befehl "D:\eigene" ist entweder falsch geschrieben oder +2ms
  pw:browser [pid=29208][err] konnte nicht gefunden werden. +0ms
    1) "before all" hook for "opens a window"
  pw:browser [pid=29208] <process did exit: exitCode=1, signal=null> +3ms
  pw:browser [pid=29208] starting temporary directories cleanup +0ms
    2) "after all" hook for "opens a window"


  0 passing (21ms)
  2 failing

  1) Sample integration test
       "before all" hook for "opens a window":
     electron.launch: Process failed to launch!
      at async startApp (test\integration.spec.js:10:17)
      at async Context.<anonymous> (test\integration.spec.js:26:39)

  2) Sample integration test
       "after all" hook for "opens a window":
     TypeError: Cannot read properties of null (reading 'close')
      at Context.<anonymous> (test\integration.spec.js:28:33)
      at process.processImmediate (node:internal/timers:478:21)
      at process.callbackTrampoline (node:internal/async_hooks:130:17)



  pw:browser [pid=29208] finished temporary directories cleanup

The same project runs on a path without space characters just fine.

So, the regression is at handling space characters in the project's path.

from playwright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.