Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Could not find module ‘GHC.IO.Unsafe’ when assembling #24

Open
a9032676 opened this issue Jun 1, 2019 · 5 comments
Open

Comments

@a9032676
Copy link

a9032676 commented Jun 1, 2019

Hi developers, i'm plan to compile this plugin with ./gradlew :plugin:assemble but got some errors below:

Starting a Gradle Daemon (subsequent builds will be faster)
Building bytestring-0.10.8.2 (lib)...
Building library for bytestring-0.10.8.2..
etlas: Failed to build bytestring-0.10.8.2 (which is required by text-1.2.2.2
and stringsearch-0.3.6.6). See the build log above for details.

FAILURE: Build failed with an exception.

* What went wrong:
Nonzero (1) exit code for command [/home/a9032676/.gradle/caches/etlas/1.3.0.0/etlas, --select-eta=0.7.2b1, deps] with workingDir /home/a9032676/src-install/intellij-eta/build/eta-freeze
Process Standard Output:
In order, the following will be built (use -v for more details):
 - bytestring-0.10.8.2 (lib) (requires build)
 - stringsearch-0.3.6.6 (lib:stringsearch) (requires build)
 - binary-0.8.5.1 (lib) (requires build)
 - text-1.2.2.2 (lib) (requires build)
Found patch in eta-hackage for bytestring-0.10.8.2
Configuring bytestring-0.10.8.2 (lib)...
Building bytestring-0.10.8.2 (lib)...

Failed to build bytestring-0.10.8.2.
Build log (
/home/a9032676/.etlas/logs/eta-0.7.2.1/bytestring-0.10.8.2-cd3c10d7f6a67a1e095807ab63d22ad8aaa2d023f20e9ba1c94e4f9a073b5333.log
):
Configuring library for bytestring-0.10.8.2..
Preprocessing library for bytestring-0.10.8.2..
Building library for bytestring-0.10.8.2..

Data/ByteString/Internal.hs:131:8: error:
    Could not find module ‘GHC.IO.Unsafe’
    Use -v to see a list of the files searched for.
    |
131 | import GHC.IO.Unsafe            (unsafePerformIO)
    |        ^^^^^^^^^^^^^
Process Standard Error:
etlas: Failed to build bytestring-0.10.8.2 (which is required by text-1.2.2.2
and stringsearch-0.3.6.6). See the build log above for details.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 9s

I'm also make sure my eta-init is build successful via gradle method, and intellij-eta clone is latest.

My environment is:

  • System: Ubuntu 18.04
  • Java:
    openjdk version "1.8.0_212"
    OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
    OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
  • Stack:
    Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1
  • GHC:
    The Glorious Glasgow Haskell Compilation System, version 8.4.4

Could anyone can help me to solving this? Thanks!

@timbess
Copy link

timbess commented Jun 28, 2019

Running into the same error here. Did you ever figure it out?

@krzykrucz
Copy link

@a9032676 ?

@jneira
Copy link

jneira commented Nov 22, 2019

Could you share your build.gradle config?, specifically what version of eta is picking the build (maybe it is showed in the logs), cause that module is present since eta version 0.8.6b1 (the last one without is 0.8.0b2)

The stack and ghc version is not relevant cause eta doesn't use them at runtime.

@a9032676
Copy link
Author

a9032676 commented Nov 29, 2019

@jneira Sorry about the late reply and my build.grade is:

plugins {
  id 'com.typelead.eta' version '0.6.0' apply false
  id 'org.jetbrains.intellij' version '0.3.1' apply false
  id "org.jetbrains.kotlin.jvm" version "1.2.50" apply false
}

apply plugin: 'eta-base'

eta {
  version = '0.8.6b2'
  etlasVersion = '1.5.1.0'
  preInstallDependencies = true
}


group 'com.typelead'
version = file('version.txt').text.trim()

ext {
  javaVersion = '1.8'
}


subprojects {

  apply plugin: 'java'

  repositories {
    mavenCentral()
  }

  sourceCompatibility = 1.8
}

[project(':jps-shared'), project(':plugin')].each { p ->
  p.apply plugin: 'org.jetbrains.intellij'
  p.intellij {
    version = '2018.1.5'
    pluginName = 'IntelliJ-Eta'
    // Makes it easy to support multiple intellij versions.
    // If we want to set this to true, we should find a way to cross build
    // against multiple intellij versions.
    updateSinceUntilBuild = false
    // 'properties' and 'Groovy' are needed due to the 'gradle' dependency
    plugins = ['properties', 'Groovy', 'gradle']
  }
}

@gkm2164
Copy link

gkm2164 commented May 5, 2020

Any update here? I'm seeing same error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants