{"record":{"id":"80ce5242d908b067","repo":"quasarframework/quasar","slug":"cannot-determine-path-to-ide-executable","errorCode":null,"errorMessage":"Cannot determine path to IDE executable","messagePattern":"Cannot determine path to IDE executable","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app-vite/lib/utils/open-ide.js","lineNumber":84,"sourceCode":"function runLinux(mode, bin, target, appPaths) {\n  if (target === 'android') {\n    const studioPath = getLinuxPath(bin)\n    if (studioPath) {\n      const folder =\n        mode === 'cordova'\n          ? appPaths.resolve.cordova('platforms/android')\n          : appPaths.resolve.capacitor('android')\n\n      return open(folder, {\n        app: { name: studioPath },\n        wait: false\n      })\n    }\n  } else if (target === 'ios') {\n    fatal('iOS target not supported on Linux')\n  }\n\n  warn('Cannot determine path to IDE executable')\n  console.log(\n    ' Please set quasar.config file > bin > linuxAndroidStudio with the escaped path to your studio.sh'\n  )\n  console.log(\" Example: '/usr/local/android-studio/bin/studio.sh'\")\n  process.exit(1)\n}\n\nfunction getWindowsPath(bin) {\n  if (bin.windowsAndroidStudio && fs.existsSync(bin.windowsAndroidStudio)) {\n    return bin.windowsAndroidStudio\n  }\n\n  const studioPath = String.raw`C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe`\n  if (fs.existsSync(studioPath)) {\n    return studioPath\n  }\n\n  try {","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/app-vite/lib/utils/open-ide.js#L66-L102","documentation":"On Linux, when launching an IDE for a Capacitor target, runLinux cannot find the Android Studio executable because quasar.config > bin > linuxAndroidStudio is not set (or points to a non-existent path). The tool warns, prints instructions, and exits with code 1 since it cannot open the IDE.","triggerScenarios":"Running a command that opens the IDE for android target on Linux (via openIDE -> runLinux) while quasar.config has no bin.linuxAndroidStudio value, or the configured studio.sh path does not exist.","commonSituations":"Fresh project on Linux where Android Studio was installed via snap/flatpak so studio.sh lives in a nonstandard path; team config never sets the bin section; switching machines with different install locations.","solutions":["Set quasar.config > bin > linuxAndroidStudio to the absolute path of studio.sh.","Verify the file exists and is executable (e.g. ls -l /path/to/studio.sh).","Re-run the command; if it still fails, locate studio.sh with 'which studio.sh' or inside the android-studio install directory."],"exampleFix":"// before (quasar.config)\nbin: {}\n// after\nbin: { linuxAndroidStudio: '/usr/local/android-studio/bin/studio.sh' }","handlingStrategy":"validation","validationCode":"import { existsSync } from 'node:fs';\nconst p = cfg.bin?.linuxAndroidStudio;\nif (!p || !existsSync(p)) throw new Error(`linuxAndroidStudio not set or missing: ${p}`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always set quasar.config > bin > linuxAndroidStudio on Linux dev machines.","Check the studio.sh path with ls -l before relying on IDE-open commands.","Document per-machine paths in local (untracked) config or a setup script."],"tags":["android","ide","configuration"],"backgroundTag":"ide-executable-path-missing","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}