[Hackage] #709: cabal doesn't handle error conditions from getAppUserDataDirectory

#709: cabal doesn't handle error conditions from getAppUserDataDirectory ----------------------------+----------------------------------------------- Reporter: creswick | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.2 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: 6.12.1 Platform: Windows | ----------------------------+----------------------------------------------- Distribution.Simple.InstallDirs.defaultInstallDirs fails if getAppUserDataDirectory fails, and it does so with a very uninformative error: {{{ # On Cabal 1.8.0.2: cabal.exe: illegal operation }}} This is a slight regression from the HP 2009 version: {{{ # On Cabal 1.6.0.3: cabal.exe: System.Directory.getAppUserDataDirectory: unsupported operation (unsupported operation) }}} This happens on Windows Vista, in cygwin, when the user doesn't have a windows user directory (eg: c:\users\username ). -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/709 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#709: cabal doesn't handle error conditions from getAppUserDataDirectory ----------------------------+----------------------------------------------- Reporter: creswick | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.2 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: 6.12.1 Platform: Windows | ----------------------------+----------------------------------------------- Comment(by creswick): This can be recreated with a windows vista system that has cygwin and a cygwin ssh server running: * Add a new windows user (say 'testUser'), but do not log in with that user. * ssh to the host as testUser * attempt to run cabal with some sort of command line parameters (eg: `cabal --help`) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/709#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#709: cabal doesn't handle error conditions from getAppUserDataDirectory ----------------------------+----------------------------------------------- Reporter: creswick | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.2 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: 6.12.1 Platform: Windows | ----------------------------+----------------------------------------------- Comment(by duncan): I suppose we could improve the error message but I don't see that we can make anything work if getAppUserDataDirectory fails. It means we cannot read the config file. The error message issue could do with some work. We should make sure the topHandler is not throwing useful information away. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/709#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#709: cabal doesn't handle error conditions from getAppUserDataDirectory ----------------------------+----------------------------------------------- Reporter: creswick | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.2 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: 6.12.1 Platform: Windows | ----------------------------+----------------------------------------------- Comment(by elga): * [http://www.releve-identite-operateur.fr/rio-simyo.html simyo] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/709#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage