当前位置:网站首页>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.
VS Code in scala metals Plug in source change
Add a custom warehouse directly in the settings :
https://maven.aliyun.com/repository/central
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
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
边栏推荐
猜你喜欢
随机推荐
MP4文件格式解析之结合实例分析
数据库面试题+解析
Mobile heterogeneous computing technology - GPU OpenCL programming (basic)
Right click the idea file to create new. There is no solution to create new servlet
[experiment sharing] log in to Cisco devices through the console port
【LeetCode】20、有效的括号
Download AWS toolkit pycharm
Get started with mongodb
Windows set redis to start automatically
激光slam学习(2D/3D、偏实践)
P2141 [noip2014 popularization group] abacus mental arithmetic test
ESP at installation esp8266 and esp32 versions
Summary of common methods of object class (September 14, 2020)
codeforces每日5题(均1500)-第八天
C # exchange number, judge to pass the exam
【leetcode】day1
C - Fibonacci sequence again
P5594 [xr-4] simulation match
USB (XVII) 2022-04-15
ping报错:未知的名称或服务