当前位置:网站首页>Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous

Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous

2022-07-07 23:41:00 github-3rr0r

scala metals plug-in unit (VS Code)、sbt and coursier In other countries

stay Chisel During the learning process, I found that the learning efficiency was limited by the network speed , foreign maven Source number KB/S The speed of is really affecting the efficiency , So it took time to test and get the relevant source replacement method , Respectively for VS Code Medium scala metals plug-in unit 、sbt and courier.

  1. VS Code in scala metals Plug in source change

    Add a custom warehouse directly in the settings :

    https://maven.aliyun.com/repository/central
    
  2. sbt Source change ( Very important )

    cd  ~
    mkdir  .sbt
    cd  .sbt
    

    establish repositories file :

    [repositories]
    local
    aliyun: https://maven.aliyun.com/repository/central/
    sbt-plugin-repo: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
    

    Modify the configuration file :

    sudo vi /usr/share/sbt/conf/sbtopts
    

    Add at the end of the file :

    -Dsbt.override.build.repos=true
    
  3. coursier Source change ( In the build Chisel-bootcamp Local Notebook When using )

    export COURSIER_REPOSITORIES="https://maven.aliyun.com/repository/public|https://maven.scijava.org/content/repositories/public"
    

    The following is used to replace the corresponding part of the installation steps :

    ./coursier bootstrap -i user -I user:sh.almond:scala-kernel-api_$SCALA_VERSION:$ALMOND_VERSION     sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION     --sources --default=true     -o almond
    
原网站

版权声明
本文为[github-3rr0r]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130555354219.html