Форум программистов, компьютерный форум, киберфорум
Наши страницы

Scala

Войти
Регистрация
Восстановить пароль
 
lamaundercover
3 / 3 / 1
Регистрация: 15.08.2016
Сообщений: 149
#1

Версия scala, jdk, sbt для того, чтобы работал scalatest - Scala

30.11.2017, 10:33. Просмотров 182. Ответов 1

Как узнать, какую версию scala jdk sbt ставить, чтобы работал scalatest?

Зависимости не подтаскиваются.
Возможно, дело в несомвестимости версии, стоят idea 2017.2.6, java 1.8.0_151, sbt 1.0.3, skala 2.12.4

http://search.maven.org/#search%7Cga%7C1%7Cscalatest

Вот лог ошибок:
XML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from C:\Users\Admin\.sbt\1.0\plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from C:\Users\Admin\IdeaProjects\test2\project
[info] Loading settings from build.sbt ...
[info] Set current project to test2 (in build file:/C:/Users/Admin/IdeaProjects/test2/)
[info] sbt server started at 127.0.0.1:4191
sbt:test2>
[info] Defining */*:sbtStructureOptions, */*:sbtStructureOutputFile, *:shellPrompt
[info] The new values will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to test2 (in build file:/C:/Users/Admin/IdeaProjects/test2/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks from C:/Users/Admin/.IntelliJIdea2017.2/config/plugins/Scala/launcher/sbt-structure-1.0.jar
[info] Reapplying settings...
[info] Set current project to test2 (in build file:/C:/Users/Admin/IdeaProjects/test2/)
[info] Updating {file:/C:/Users/Admin/IdeaProjects/test2/}test2...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scalatest#scalatest_2.13.0-M2;3.0.4: Resolution failed several times for dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4 {compile=[default(compile)]}::
[warn]  sbt-releases-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[warn]  sbt-plugins-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[warn]  maven-central: unable to get resource for org/scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo1.maven.org/maven2/org/scalatest/scalatest_2.13.0-M2/3.0.4/scalatest_2.13.0-M2-3.0.4.pom: java.net.SocketException: Permission denied: connect
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]      org.scalatest:scalatest_2.13.0-M2:3.0.4 (C:\Users\Admin\IdeaProjects\test2\build.sbt#L7-8)
[warn]        +- default:test2_2.12:0.1
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4: Resolution failed several times for dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4 {compile=[default(compile)]}::
[error]     sbt-releases-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     sbt-plugins-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     maven-central: unable to get resource for org/scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo1.maven.org/maven2/org/scalatest/scalatest_2.13.0-M2/3.0.4/scalatest_2.13.0-M2-3.0.4.pom: java.net.SocketException: Permission denied: connect
[error]
[error]     at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:331)
[error]     at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:205)
[error]     at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:243)
[error]     at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error]     at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error]     at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error]     at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error]     at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error]     at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error]     at xsbt.boot.Using$.withResource(Using.scala:10)
[error]     at xsbt.boot.Using$.apply(Using.scala:9)
[error]     at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error]     at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error]     at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error]     at xsbt.boot.Locks$.apply(Locks.scala:28)
[error]     at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error]     at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error]     at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error]     at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:242)
[error]     at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:190)
[error]     at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error]     at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error]     at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:38)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:91)
[error]     at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:104)
[error]     at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:104)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:87)
[error]     at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error]     at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:118)
[error]     at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2356)
[error]     at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error]     at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error]     at sbt.std.Transform$$anon$4.work(System.scala:64)
[error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error]     at sbt.Execute.work(Execute.scala:266)
[error]     at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]     at java.lang.Thread.run(Thread.java:748)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4: Resolution failed several times for dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4 {compile=[default(compile)]}::
[error]     sbt-releases-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     sbt-plugins-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     maven-central: unable to get resource for org/scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo1.maven.org/maven2/org/scalatest/scalatest_2.13.0-M2/3.0.4/scalatest_2.13.0-M2-3.0.4.pom: java.net.SocketException: Permission denied: connect
[error]
[error]     at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:331)
[error]     at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:205)
[error]     at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:243)
[error]     at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error]     at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error]     at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error]     at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error]     at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error]     at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error]     at xsbt.boot.Using$.withResource(Using.scala:10)
[error]     at xsbt.boot.Using$.apply(Using.scala:9)
[error]     at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error]     at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error]     at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error]     at xsbt.boot.Locks$.apply(Locks.scala:28)
[error]     at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error]     at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error]     at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error]     at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:242)
[error]     at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:190)
[error]     at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error]     at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error]     at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:38)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:91)
[error]     at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:104)
[error]     at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:104)
[error]     at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:87)
[error]     at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error]     at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:118)
[error]     at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2356)
[error]     at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error]     at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error]     at sbt.std.Transform$$anon$4.work(System.scala:64)
[error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error]     at sbt.Execute.work(Execute.scala:266)
[error]     at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]     at java.lang.Thread.run(Thread.java:748)
[error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4: Resolution failed several times for dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4 {compile=[default(compile)]}::
[error]     sbt-releases-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     sbt-plugins-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     maven-central: unable to get resource for org/scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo1.maven.org/maven2/org/scalatest/scalatest_2.13.0-M2/3.0.4/scalatest_2.13.0-M2-3.0.4.pom: java.net.SocketException: Permission denied: connect
[error] (*:ssExtractDependencies) sbt.librarymanagement.ResolveException: unresolved dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4: Resolution failed several times for dependency: org.scalatest#scalatest_2.13.0-M2;3.0.4 {compile=[default(compile)]}::
[error]     sbt-releases-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     sbt-plugins-repo: unable to get resource for org.scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalatest/scalatest_2.13.0-M2/3.0.4/ivys/ivy.xml: java.net.SocketException: Permission denied: connect
[error]     maven-central: unable to get resource for org/scalatest#scalatest_2.13.0-M2;3.0.4: res=http://repo1.maven.org/maven2/org/scalatest/scalatest_2.13.0-M2/3.0.4/scalatest_2.13.0-M2-3.0.4.pom: java.net.SocketException: Permission denied: connect
[error] Total time: 1 s, completed 30.11.2017 1:31:44
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
Similar
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
30.11.2017, 10:33
Здравствуйте! Я подобрал для вас темы с ответами на вопрос Версия scala, jdk, sbt для того, чтобы работал scalatest (Scala):

В чем разница между scala и sbt? - Scala
Здравствуйте! В разница между scala и sbt? Никак не могу въехать. Заранее спс!

Что нужно для того, чтобы работал Webkit - C++ Qt
написал код, скомпилировал, собрал все нужные dll и exe в одну папку, добавил папку platforms с qwindows.dll но не работает webkit ,не...

LibGDX и версия JDK - Графика и игры
Здавствуйте, недавно начал изучать фреймворк LibGDX. Хотелось бы узнать, поддерживает ли он версии Java 7/8. После герерации проекта, я...

Как сделать чтобы switch работал для char?? - C++ Builder
Задача: вводим комманду в консоли (чаровский массив\строку слово кароче) далее по введённой комманде вызывается функция или если нету...

Как переделать код чтобы он работал для .xlsx файлов - Java
Есть код, который извлекает информацию из .xls файлов с помощью ExcelExtractor : package main; import java.io.FileInputStream; ...

Написать хук для NotePad, чтобы работал в фоновом режиме - C#
Собственно вопрос в теме. Нужно написать хук для NotePad, чтобы работал в фоновом режиме. Подскажите с чего начать?

1
lamaundercover
3 / 3 / 1
Регистрация: 15.08.2016
Сообщений: 149
31.12.2017, 23:07  [ТС] #2
Пофиксил понижением версии Sbt
0
MoreAnswers
Эксперт
37091 / 29110 / 5898
Регистрация: 17.06.2006
Сообщений: 43,301
31.12.2017, 23:07
Привет! Вот еще темы с ответами:

Рассчитать шаг так чтобы он работал для всех функций - Free Pascal
Здравствуйте! у меня возникла проблема с построением граффиков по функциям... программу написал по примеру, но никак не могу понять каким...

Что изменить в коде для создания HTML-страницы и конвертирования изображений, чтобы он работал в Linux? - CMD/BAT
Что нужно изменить в коде bat - ника что бы он работал на Linux? Помогите пожалуйста. @echo off ECHO Downloaded file %0 pause ...

Что нужно для того чтобы собрать приложение для iOS и выложить в App Store? - Программирование
Всем привет! Делаю приложение на PhoneGap. И столкнулся с проблемой. Установил виртуальную машину iMac, на ней сделал билд. Но это...

Выбрать использование JDK, а не JRE. Ошибка Target is not a JDK root. System library was not found - Java SE
Window--Preferences---Java-->Installed JREs--->Add--->Next--->Directory Выбираю директорию C:\Program Files\Java\jdk-9.0.1 однако...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
2
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.