cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.06k stars 3.19k forks source link

Cannot develop Cypress 10 on windows with glob chars in path #22242

Closed lmiller1990 closed 1 year ago

lmiller1990 commented 2 years ago

Current behavior

I put Cypress in ~\code\f]oo(bar )\cypress10 and opened it (using Cypress monorepo, cd packages/launchpad && yarn cypress:open.

I think this is only a problem for development, not actual production users.

lachl@DESKTOP-VE281I6 MINGW64 ~/code/f]oo(bar )/cypress10/packages/launchpad (develop)
$ DEBUG=cypress:* yarn cypress:open
yarn run v1.22.18
$ cross-env TZ=America/New_York gulp open --project .
[03:45:25] Working directory changed to ~\code\f]oo(bar )\cypress10
  cypress:ts registering ts-node on directory undefined +0ms
[03:45:26] Using gulpfile ~\code\f]oo(bar )\cypress10\gulpfile.js
[03:45:26] Starting 'open'...
[03:45:26] Finished 'open' after 34 ms
[cy:open:dev:5036]: 2022-06-10T07:45:27.104Z cypress:cli:cli cli starts with arguments ["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\cli\\bin\\cypress","open","--project",".","--dev"]
[cy:open:dev:5036]: 2022-06-10T07:45:27.105Z cypress:cli NODE_OPTIONS is not set
[cy:open:dev:5036]: 2022-06-10T07:45:27.105Z cypress:cli:cli program parsing arguments
[cy:open:dev:5036]: 2022-06-10T07:45:27.106Z cypress:cli:cli opening Cypress
[cy:open:dev:5036]: 2022-06-10T07:45:27.345Z cypress:cli parsed cli options { dev: true, project: '.' }
[cy:open:dev:5036]: 2022-06-10T07:45:27.346Z cypress:cli opening from options {"dev":true,"project":"."}
[cy:open:dev:5036]: 2022-06-10T07:45:27.346Z cypress:cli command line arguments ["--project","."]
[cy:open:dev:5036]: 2022-06-10T07:45:27.347Z cypress:cli needs to start own Xvfb? false
[cy:open:dev:5036]: 2022-06-10T07:45:27.348Z cypress:cli spawning, should retry on display problem? false
[cy:open:dev:5036]: 2022-06-10T07:45:27.356Z cypress:cli in dev mode the args became [ '--project', '.', '--cwd', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--userNodePath', 'C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion', '16.14.2' ]
[cy:open:dev:5036]: 2022-06-10T07:45:27.362Z cypress:cli spawn args [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js', '--', '--project', '.', '--cwd', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--userNodePath', 'C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion', '16.14.2' ] { detached: false, stdio: 'inherit', windowsHide: false }
[cy:open:dev:5036]: 2022-06-10T07:45:27.362Z cypress:cli spawning Cypress with executable: node
[cy:open:dev:5036]:   cypress:ts registering ts-node on directory undefined +0ms
[cy:open:dev:5036]:   cypress:server environment error Cannot read properties of undefined (reading 'commandLine') +0ms
[cy:open:dev:5036]:   cypress:ts registering ts-node on directory C:\Users\lachl\code\f]oo(bar )\cypress10\packages\config +362ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\cache +0ms
[cy:open:dev:5036]:   cypress:server:cypress starting cypress with argv [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js', '--', '--project', '.', '--cwd', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--userNodePath', 'C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion', '16.14.2' ] +0ms
[cy:open:dev:5036]:   cypress:server:args argv array: [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js', '--project', '.', '--cwd', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--userNodePath', 'C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion', '16.14.2' ] +0ms
[cy:open:dev:5036]:   cypress:server:args parsed argv options { options: { _: [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js' ], project: '.', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2' } } +2ms
[cy:open:dev:5036]:   cypress:server:args argv parsed: { _: [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js' ], project: '.', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', invokedFromCli: true } +5ms
[cy:open:dev:5036]:   cypress:server:util:proxy found proxy environment variables {} +0ms
[cy:open:dev:5036]:   cypress:server:util:proxy HTTP_PROXY is falsy, disabling HTTP_PROXY +2ms
[cy:open:dev:5036]:   cypress:server:util:proxy setting default NO_PROXY of `` +0ms
[cy:open:dev:5036]:   cypress:server:util:proxy <-loopback> not found, adding localhost to NO_PROXY +0ms
[cy:open:dev:5036]:   cypress:server:util:proxy normalized proxy environment variables { NO_PROXY: '127.0.0.1,::1,localhost' } +0ms
[cy:open:dev:5036]:   cypress:server:args options { _: [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js' ], project: '.', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', invokedFromCli: true, config: {} } +3ms
[cy:open:dev:5036]:   cypress:server:args argv options: { _: [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js' ], project: '.', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', invokedFromCli: true, config: {}, projectRoot: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad' } +0ms
[cy:open:dev:5036]:   cypress:server:cypress from argv [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js', '--project', '.', '--cwd', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--userNodePath', 'C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion', '16.14.2' ] got options { _: [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js' ], project: '.', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', invokedFromCli: true, config: {}, projectRoot: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad' } +14ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging +37ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging +0ms
[cy:open:dev:5036]:   cypress:server:appdata symlink folder from C:\Users\lachl\AppData\Roaming\Cypress\cy to C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server\.cy +1ms
[cy:open:dev:5036]:   cypress:server:cypress starting in mode interactive with options { _: [ 'C:\\Program Files\\nodejs\\node.exe', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\scripts\\start.js' ], project: '.', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', invokedFromCli: true, config: {}, projectRoot: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad' } +17ms
[cy:open:dev:5036]:   cypress:server:cypress starting Electron +1ms
[cy:open:dev:5036]:   cypress:server:cypress electron open arguments [ '--config={}', '--cwd=C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--project=.', '--userNodePath=C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion=16.14.2' ] +51ms
[cy:open:dev:5036]:   cypress:electron opening C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server +0ms
[cy:open:dev:5036]:   cypress:electron appPath C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server +0ms
[cy:open:dev:5036]:   cypress:electron dest path C:\Users\lachl\code\f]oo(bar )\cypress10\packages\electron\dist\Cypress\resources\app +0ms
[cy:open:dev:5036]:   cypress:electron appPath exists C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server +1ms
[cy:open:dev:5036]:   cypress:electron making symlink from C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server to C:\Users\lachl\code\f]oo(bar )\cypress10\packages\electron\dist\Cypress\resources\app of type junction +1ms
[cy:open:dev:5036]:   cypress:electron spawning C:\Users\lachl\code\f]oo(bar )\cypress10\packages\electron\dist\Cypress\Cypress.exe with args [
[cy:open:dev:5036]:   '--config={}',
[cy:open:dev:5036]:   '--cwd=C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad',
[cy:open:dev:5036]:   '--project=.',
[cy:open:dev:5036]:   '--userNodePath=C:\\Program Files\\nodejs\\node.exe',
[cy:open:dev:5036]:   '--userNodeVersion=16.14.2'
[cy:open:dev:5036]: ] +2ms
[cy:open:dev:5036]:
[cy:open:dev:5036]:   cypress:ts registering ts-node on directory undefined +0ms
[cy:open:dev:5036]:   cypress:ts registering ts-node on directory C:\Users\lachl\code\f]oo(bar )\cypress10\packages\config +2s
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\cache +0ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\browsers +122ms
[cy:open:dev:5036]:   cypress:server:cypress starting cypress with argv [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe', '--config={}', '--cwd=C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--project=.', '--userNodePath=C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion=16.14.2', '--enable-logging' ] +0ms
[cy:open:dev:5036]:   cypress:server:args argv array: [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe', '--config={}', '--cwd=C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--project=.', '--userNodePath=C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion=16.14.2', '--enable-logging' ] +0ms
[cy:open:dev:5036]:   cypress:server:args parsed argv options { options: { _: [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe' ], config: '{}', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', project: '.', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', 'enable-logging': true } } +2ms
[cy:open:dev:5036]:   cypress:server:args argv parsed: { _: [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe' ], config: {}, cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', project: '.', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', 'enable-logging': true, invokedFromCli: true } +3ms
[cy:open:dev:5036]:   cypress:server:util:proxy found proxy environment variables { NO_PROXY: '127.0.0.1,::1,localhost', no_proxy: '127.0.0.1,::1,localhost' } +0ms
[cy:open:dev:5036]:   cypress:server:util:proxy overriding uppercase env var with lowercase { name: 'NO_PROXY' } +0ms
[cy:open:dev:5036]:   cypress:server:util:proxy HTTP_PROXY is falsy, disabling HTTP_PROXY +1ms
[cy:open:dev:5036]:   cypress:server:util:proxy <-loopback> not found, adding localhost to NO_PROXY +0ms
[cy:open:dev:5036]:   cypress:server:util:proxy normalized proxy environment variables { NO_PROXY: '127.0.0.1,::1,localhost,127.0.0.1,::1,localhost' } +0ms
[cy:open:dev:5036]:   cypress:server:args options { _: [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe' ], config: {}, cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', project: '.', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', 'enable-logging': true, invokedFromCli: true } +2ms
[cy:open:dev:5036]:   cypress:server:args argv options: { _: [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe' ], config: {}, cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', project: '.', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', 'enable-logging': true, invokedFromCli: true, projectRoot: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad' } +0ms
[cy:open:dev:5036]:   cypress:server:cypress from argv [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe', '--config={}', '--cwd=C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--project=.', '--userNodePath=C:\\Program Files\\nodejs\\node.exe', '--userNodeVersion=16.14.2', '--enable-logging' ] got options { _: [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe' ], config: {}, cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', project: '.', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', 'enable-logging': true, invokedFromCli: true, projectRoot: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad' } +11ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging +96ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging +0ms
[cy:open:dev:5036]:   cypress:server:appdata symlink folder from C:\Users\lachl\AppData\Roaming\Cypress\cy to C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server\.cy +1ms
[cy:open:dev:5036]:   cypress:server:cypress starting in mode interactive with options { _: [ 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\electron\\dist\\Cypress\\Cypress.exe' ], config: {}, cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', project: '.', userNodePath: 'C:\\Program Files\\nodejs\\node.exe', userNodeVersion: '16.14.2', 'enable-logging': true, invokedFromCli: true, projectRoot: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad' } +65ms
[cy:open:dev:5036]:   cypress:server:cypress running Electron currently +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudProjectBySlug +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudProjectsBySlugs +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudViewer +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.versions +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for CurrentProject.cloudProject +1ms
[cy:open:dev:5036]:   cypress:server:browsers:utils getBrowsers +0ms
[cy:open:dev:5036]:   cypress:launcher:detect detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ], minSupportedVersion: 64 }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, binary: [ 'chromium-browser', 'chromium' ], minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'beta', displayName: 'Chrome Beta', versionRegex: /Google Chrome (\S+) beta/m, binary: 'google-chrome-beta', minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, binary: 'google-chrome-canary', minSupportedVersion: 64 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, binary: 'firefox', minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, binary: [ 'firefox-developer-edition', 'firefox' ], minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, binary: [ 'firefox-nightly', 'firefox-trunk' ], minSupportedVersion: 86 }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, binary: [ 'edge', 'microsoft-edge' ], minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, binary: 'edge-canary', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, binary: 'edge-beta', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, binary: [ 'edge-dev', 'microsoft-edge-dev' ], minSupportedVersion: 79 } ] +0ms
[cy:open:dev:5036]:   cypress:data-context:sources:GitDataSource config: { isRunMode: false, projectRoot: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', onError: [Function (anonymous)], onBranchChange: [Function: onBranchChange], onGitInfoChange: [Function: onGitInfoChange] } +0ms
[cy:open:dev:5036]:   cypress:scaffold-config:detect Detected cypress.config.ts - using TS +0ms
[cy:open:dev:5036]:   cypress:lifecycle:ProjectConfigIpc fork child process { CHILD_PROCESS_FILE_PATH: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\server\\lib\\plugins\\child\\require_async_child.js', configProcessArgs: [ '--projectRoot', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', '--file', 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad\\cypress.config.ts' ], childOptions: { stdio: 'pipe', cwd: 'C:\\Users\\lachl\\code\\f]oo(bar )\\cypress10\\packages\\launchpad', execPath: 'C:\\Program Files\\nodejs\\node.exe' } } +0ms
[cy:open:dev:5036]:   cypress:lifecycle:ProjectConfigIpc trigger the load of the file +8ms
[cy:open:dev:5036]:   cypress:server:util:editors get user editor +0ms
[cy:open:dev:5036]:   cypress:server:saved_state making saved state from C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server +0ms
[cy:open:dev:5036]:   cypress:server:saved_state missing project path, looking for project here +0ms
[cy:open:dev:5036]: GraphQL server is running at http://localhost:4444/__launchpad/graphql
[cy:open:dev:5036]:   cypress:server:saved_state making saved state from C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server +29ms
[cy:open:dev:5036]:   cypress:server:saved_state for project path C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launchpad +1ms
[cy:open:dev:5036]:   cypress:server:saved_state state path for project C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launchpad +1ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\launchpad-763642bd38d4b3147fa08ebd90067e5f\state.json +2s
[cy:open:dev:5036]:   cypress:server:saved_state full state path C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\launchpad-763642bd38d4b3147fa08ebd90067e5f\state.json +1ms
[cy:open:dev:5036]:   cypress:server:saved_state making new state file around C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\launchpad-763642bd38d4b3147fa08ebd90067e5f\state.json +0ms
[cy:open:dev:5036]:   cypress:server:saved_state state path for global mode +6ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\__global__\state.json +6ms
[cy:open:dev:5036]:   cypress:server:saved_state full state path C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\__global__\state.json +0ms
[cy:open:dev:5036]:   cypress:server:saved_state making new state file around C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\__global__\state.json +0ms
[cy:open:dev:5036]:   cypress:launcher:windows got version string for chrome: { exePath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe', version: '102.0.5005.63' } +0ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Google\\chrome-win32\\chrome.exe', exePaths: [], err: Error: Browser not installed: chromium at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +4ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Google\\Chrome Beta\\Application\\chrome.exe', exePaths: [], err: Error: Browser not installed: chrome at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +8ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe', exePaths: [], err: Error: Browser not installed: chrome at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:107:20 { notInstalled: true } } +0ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Users\\lachl\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe', exePaths: [], err: Error: Browser not installed: chrome at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +4ms
[cy:open:dev:5036]:   cypress:server:windows creating electron window with options { backgroundColor: 'white', width: 1200, height: 800, minWidth: 597, minHeight: 400, x: null, y: null, type: 'INDEX', devTools: false, trackState: { width: 'appWidth', height: 'appHeight', x: 'appX', y: 'appY', devTools: 'isAppDevToolsOpen' }, onBlur: [Function: onBlur], onFocus: [Function: onFocus], onClose: [Function: onClose], show: true, webPreferences: { contextIsolation: true, partition: null, webSecurity: false, nodeIntegration: false, backgroundThrottling: false }, url: 'http://localhost:4444/__launchpad/index.html', frame: true, contextMenu: false, recordFrameRate: null, onCrashed: [Function: onCrashed], onNewWindow: [Function: onNewWindow] } +0ms
[cy:open:dev:5036]: node:internal/modules/cjs/loader:936
[cy:open:dev:5036]:   throw err;
[cy:open:dev:5036]:   ^
[cy:open:dev:5036]:
[cy:open:dev:5036]: Error: Cannot find module 'C:\Users\lachl\code\f]oo(bar'
[cy:open:dev:5036]: Require stack:
[cy:open:dev:5036]: - internal/preload
[cy:open:dev:5036]:     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
[cy:open:dev:5036]:     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
[cy:open:dev:5036]:     at Module.require (node:internal/modules/cjs/loader:1005:19)
[cy:open:dev:5036]:     at Module._preloadModules (node:internal/modules/cjs/loader:1280:12)
[cy:open:dev:5036]:     at loadPreloadModules (node:internal/bootstrap/pre_execution:476:5)
[cy:open:dev:5036]:     at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:77:3)
[cy:open:dev:5036]:     at node:internal/main/run_main_module:7:1 {
[cy:open:dev:5036]:   code: 'MODULE_NOT_FOUND',
[cy:open:dev:5036]:   requireStack: [ 'internal/preload' ]
[cy:open:dev:5036]: }
[cy:open:dev:5036]:   cypress:launcher:windows got version string for firefox: { exePath: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe', version: '101.0' } +72ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Users\\lachl\\AppData\\Local\\Firefox Developer Edition\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +12ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Firefox Developer Edition\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:107:20 { notInstalled: true } } +0ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Firefox Developer Edition\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:107:20 { notInstalled: true } } +0ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Users\\lachl\\AppData\\Local\\Firefox Nightly\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +221ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Firefox Nightly\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:107:20 { notInstalled: true } } +0ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Firefox Nightly\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:107:20 { notInstalled: true } } +0ms
[cy:open:dev:5036]:   cypress:launcher:windows got version string for edge: { exePath: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe', version: '102.0.1245.33' } +2ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Users\\lachl\\AppData\\Local\\Microsoft\\Edge SxS\\Application\\msedge.exe', exePaths: [], err: Error: Browser not installed: edge at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +1ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Microsoft\\Edge Beta\\Application\\msedge.exe', exePaths: [], err: Error: Browser not installed: edge at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +2ms
[cy:open:dev:5036]:   cypress:launcher:windows error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe', exePaths: [], err: Error: Browser not installed: edge at notInstalledErr (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\errors.ts:5:17) at tryNextExePath (C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:85:48) at C:\Users\lachl\code\f]oo(bar )\cypress10\packages\launcher\lib\windows\index.ts:92:24 { notInstalled: true } } +1ms
[cy:open:dev:5036]:   cypress:server:browsers:utils found browsers { browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '102.0.5005.63', path: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe', minSupportedVersion: 64, majorVersion: 102 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '101.0', path: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe', minSupportedVersion: 86, majorVersion: 101 }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', version: '102.0.1245.33', path: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe', minSupportedVersion: 79, majorVersion: 102 } ] } +394ms
[cy:open:dev:5036]:   cypress:server:browsers:utils adding Electron browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.75', path: '', majorVersion: 100, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } +0ms
[cy:open:dev:5036]:   cypress:data-context:sources:GitDataSource On current branch develop +834ms
[cy:open:dev:5036]:   cypress:server:util:editors user has the following editors: [ { id: 'code', binary: 'code', name: 'Visual Studio Code' } ] +1s
[cy:open:dev:5036]:   cypress:server:saved_state making saved state from C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server +1s
[cy:open:dev:5036]:   cypress:server:saved_state missing project path, looking for project here +0ms
[cy:open:dev:5036]:   cypress:server:saved_state state path for global mode +1ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\__global__\state.json +1s
[cy:open:dev:5036]:   cypress:server:saved_state full state path C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\__global__\state.json +0ms
[cy:open:dev:5036]:   cypress:server:util:editors saved preferred editor: undefined +6ms
[cy:open:dev:5036]:   cypress:server:util:editors return available editors: [ { id: 'computer', name: 'File Explorer', binary: 'computer' }, { id: 'code', name: 'Visual Studio Code', binary: 'code' } ] +0ms
[cy:open:dev:5036]:   cypress:server:saved_state making saved state from C:\Users\lachl\code\f]oo(bar )\cypress10\packages\server +5ms
[cy:open:dev:5036]:   cypress:server:saved_state missing project path, looking for project here +0ms
[cy:open:dev:5036]:   cypress:server:saved_state state path for global mode +1ms
[cy:open:dev:5036]:   cypress:server:appdata path: C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\__global__\state.json +6ms
[cy:open:dev:5036]:   cypress:server:saved_state full state path C:\Users\lachl\AppData\Roaming\Cypress\cy\staging\projects\__global__\state.json +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Racing execution for Query.versions +2s
[cy:open:dev:5036]:   cypress:network:agent addRequest called { isHttps: true, href: 'https://registry.npmjs.org/cypress' } +0ms
[cy:open:dev:5036]:   cypress:network:connect beginning getAddress { hostname: 'registry.npmjs.org', port: 80 } +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Racing execution for Query.cloudViewer +15ms
[cy:open:dev:5036]:   cypress:graphql:remoteSchemaWrapped executing: {"operationName":"HeaderBar_HeaderBarQuery_cloudViewer","requestPolicy":"cache-first"} +0ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Racing Query.cloudViewer resolved immediately +8ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Query.versions did not resolve immediately +1ms
[cy:open:dev:5036]:   cypress:network:connect got addresses { hostname: 'registry.npmjs.org', port: 80, addresses: [ { address: '104.16.20.35', family: 4 }, { address: '104.16.23.35', family: 4 }, { address: '104.16.16.35', family: 4 }, { address: '104.16.18.35', family: 4 }, { address: '104.16.22.35', family: 4 }, { address: '104.16.26.35', family: 4 }, { address: '104.16.21.35', family: 4 }, { address: '104.16.17.35', family: 4 }, { address: '104.16.25.35', family: 4 }, { address: '104.16.24.35', family: 4 }, { address: '104.16.19.35', family: 4 }, { address: '104.16.27.35', family: 4 }, { address: '2606:4700::6810:1023', family: 6 }, { address: '2606:4700::6810:1323', family: 6 }, { address: '2606:4700::6810:1123', family: 6 }, { address: '2606:4700::6810:1423', family: 6 }, { address: '2606:4700::6810:1623', family: 6 }, { address: '2606:4700::6810:1523', family: 6 }, { address: '2606:4700::6810:1b23', family: 6 }, { address: '2606:4700::6810:1823', family: 6 }, { address: '2606:4700::6810:1723', family: 6 }, { address: '2606:4700::6810:1223', family: 6 }, { address: '2606:4700::6810:1a23', family: 6 }, { address: '2606:4700::6810:1923', family: 6 } ] } +31ms
[cy:open:dev:5036]:   cypress:network:agent got family { family: 6, href: 'https://registry.npmjs.org/cypress' } +44ms
[cy:open:dev:5036]:   cypress:network:agent addRequest called { isHttps: true, href: 'https://download.cypress.io/desktop.json' } +106ms
[cy:open:dev:5036]:   cypress:network:connect beginning getAddress { hostname: 'download.cypress.io', port: 80 } +119ms
[cy:open:dev:5036]:   cypress:network:connect got addresses { hostname: 'download.cypress.io', port: 80, addresses: [ { address: '104.26.7.176', family: 4 }, { address: '172.67.69.12', family: 4 }, { address: '104.26.6.176', family: 4 }, { address: '2606:4700:20::681a:6b0', family: 6 }, { address: '2606:4700:20::681a:7b0', family: 6 }, { address: '2606:4700:20::ac43:450c', family: 6 } ] } +1ms
[cy:open:dev:5036]:   cypress:network:agent got family { family: 4, href: 'https://download.cypress.io/desktop.json' } +10ms
[cy:open:dev:5036]:   cypress:data-context:sources:VersionsDataSource NPM release dates received { modified: '2022-06-06T20:05:59.035Z' } +0ms
[cy:open:dev:5036]:   cypress:data-context:sources:VersionsDataSource retrieving latest version information with headers: { 'Content-Type': 'application/json', 'x-cypress-version': '10.0.3', 'x-os-name': 'win32', 'x-arch': 'x64', 'x-initial-launch': 'true', 'x-machine-id': '4fa427a5a49d83a6b4f04550e47e8025d09af94efb19f44118242a16d20adfdd' } +1s
[cy:open:dev:5036]:   cypress:data-context:sources:VersionsDataSource latest version information: { name: 'Cypress', version: '10.0.3', packages: { mac: { url: 'https://cdn.cypress.io/desktop/10.0.3/darwin-x64/cypress.zip' }, linux64: { url: 'https://cdn.cypress.io/desktop/10.0.3/linux-x64/cypress.zip' }, darwin: { url: 'https://cdn.cypress.io/desktop/10.0.3/darwin-x64/cypress.zip' }, linux: { url: 'https://cdn.cypress.io/desktop/10.0.3/linux-x64/cypress.zip' }, 'darwin-x64': { url: 'https://cdn.cypress.io/desktop/10.0.3/darwin-x64/cypress.zip' }, 'linux-x64': { url: 'https://cdn.cypress.io/desktop/10.0.3/linux-x64/cypress.zip' }, 'win32-x64': { url: 'https://cdn.cypress.io/desktop/10.0.3/win32-x64/cypress.zip' } } } +2ms
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Racing Query.versions eventually resolved with { latest: { id: '10.0.3', version: '10.0.3', released: '2022-06-06T20:04:39.125Z' }, current: { id: '10.0.3', version: '10.0.3', released: '2022-06-06T20:04:39.125Z' } } HeaderBar_HeaderBarQuery +1s
[cy:open:dev:5036]:   cypress:graphql:nexusDeferIfNotLoadedPlugin Resolving versions for pushFragment with {"latest":{"id":"10.0.3","version":"10.0.3","released":"2022-06-06T20:04:39.125Z"},"current":{"id":"10.0.3","version":"10.0.3","released":"2022-06-06T20:04:39.125Z"}} +1ms
[cy:open:dev:5036]:   cypress:data-context:sources:GraphQLDataSource pushFragment value {"data":{"versions":{"current":{"id":"10.0.3","version":"10.0.3","released":"2022-06-06T20:04:39.125Z","__typename":"Version"},"latest":{"id":"10.0.3","version":"10.0.3","released":"2022-06-06T20:04:39.125Z","__typename":"Version"},"__typename":"VersionData"}}}

Desired behavior

It should just open and work.

Test code to reproduce

  1. make directory named f]oo(bar )
  2. clone cypress monorepo in there
  3. yarn
  4. cd packages/launchpad
  5. yarn cypress:open

Cypress Version

10.0.3

Other

Only impacts local development, obvious work around is stick your repo in a folder without weird characters.

mjhenkes commented 2 years ago

@lmiller1990, does this fix https://github.com/cypress-io/cypress/pull/22222 help or is this another glob we need to fix?

lmiller1990 commented 2 years ago

This is still an issue, but only for local development in the monrepo (not for users consuming Cypress from npm, from what I ca tell) and only in paths with glob-like characters, so it's very low priority - anyone who wants to develop Cypress on windows can likely just move their project to a directory without [, etc.

marktnoonan commented 2 years ago

@lmiller1990 do you think could be related to https://github.com/cypress-io/cypress/issues/22242 which seems to also be about Windows paths, specifically paths with spaces?

lmiller1990 commented 2 years ago

This is #22242 @marktnoonan.

Probably something related to glob somewhere, but this is pretty low priority - it only impacts local dev, I think we should remove it from firewatch.

marktnoonan commented 2 years ago

@lmiller1990 oops, I grabbed the wrong issue number: https://github.com/cypress-io/cypress/issues/22297

This ticket (#22242) is already out of firewatch and has been routed 👍

github-actions[bot] commented 1 year ago

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

cypress-app-bot commented 1 year ago

This issue has been closed due to inactivity.