You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A call to "RequestGetSourceErrors" works to trigger an actual helpful error, e.g.: {"tag":"RequestGetSourceErrors","contents":[]} {"tag":"ResponseGetSourceErrors","contents":[{"errorSpan":{"tag":"TextSpan","contents":"<<server died>>"},"errorKind":"KindServerDied","errorMsg":"/Users/lukexi/.stack/snapshots/x86_64-osx/lts-2.17/7.8.4/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not a ghc-pkg db file, wrong file magic number)"}]}
It would be great to find a way to trigger the error immediately on startup.
(I'll create a separate issue on ide-backend for the particular error in the example, which can be solved by making sure the project is using the same snapshot that ide-backend was built against — do we need a separate version of ide-backend-server for each package db?)
The text was updated successfully, but these errors were encountered:
lukexi
changed the title
Improve stack-ide error reporting
Improve error reporting
Jul 20, 2015
I've added more detailed progress reporting for recompilation, including better reporting of failure cases and server restarts: fpco/ide-backend@702082d
Hi Michael,
Yep, that's looking awesome. I can send the logs to the Sublime console and that'll be super helpful for debugging failures. It also reports startup failure right away as I hoped : ). Thanks a bunch!
As seen in #31, stack-ide fails to report configuration errors at startup, and instead responds with
(without compiling anything)
A call to "RequestGetSourceErrors" works to trigger an actual helpful error, e.g.:
{"tag":"RequestGetSourceErrors","contents":[]} {"tag":"ResponseGetSourceErrors","contents":[{"errorSpan":{"tag":"TextSpan","contents":"<<server died>>"},"errorKind":"KindServerDied","errorMsg":"/Users/lukexi/.stack/snapshots/x86_64-osx/lts-2.17/7.8.4/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not a ghc-pkg db file, wrong file magic number)"}]}
It would be great to find a way to trigger the error immediately on startup.
(I'll create a separate issue on
ide-backend
for the particular error in the example, which can be solved by making sure the project is using the same snapshot that ide-backend was built against — do we need a separate version ofide-backend-server
for each package db?)The text was updated successfully, but these errors were encountered: