This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error - 14:45:46] Request textDocument/completion failed. | |
Message: Internal error. | |
Code: -32603 | |
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "scala.reflect.internal.Symbols$Symbol.pos()" because "owner" is null | |
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) | |
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) | |
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:708) | |
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) | |
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) | |
at scala.meta.internal.metals.CancelTokens$.$anonfun$future$1(CancelTokens.scala:40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023.01.26 17:37:50 ERROR text document: jar:file:///home/v.chelyshov/.cache/coursier/v1/https/nexus.tcsbank.ru/repository/mvn-maven-proxy/com/typesafe/akka/akka-http_2.13/10.2.4/akka-http_2.13-10.2.4-sources.jar!/akka/http/scaladsl/server/package.scalajava.nio.channels.ClosedChannelException | |
at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:150) | |
at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:349) | |
at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:52) | |
at jdk.nio.zipfs.ZipFileSystem.readFullyAt(ZipFileSystem.java:975) | |
at jdk.nio.zipfs.ZipFileSystem.readFullyAt(ZipFileSystem.java:968) | |
at jdk.nio.zipfs.ZipFileSystem$EntryInputStream.initDataPos(ZipFileSystem.java:1899) | |
at jdk.nio.zipfs.ZipFileSystem$EntryInputStream.read(ZipFileSystem.java:1837) | |
at jdk.nio.zipfs.ZipFileSystem$3.fill(ZipFileSystem.java:1784) | |
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "name" : "x", "age": 10 } | |
{ "name" : "y", "age": 20 } | |
{ "name" : "z", "age": 30 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Example extends MistFn { | |
// an arguments that extracts Map[String, String] | |
val mapArg = allArgs.andThen(params => { | |
val r = params.map({ | |
case (k, v: String) => Right((k,v)) | |
case (k, any) => Left(Failed.InvalidValue(s"$k key contains invalid value: $any")) | |
}).toSeq | |
if (r.exists(_.isLeft)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.collection.mutable | |
import scala.collection.mutable.ListBuffer | |
import scala.reflect.macros.whitebox.Context | |
import scala.language.experimental.macros | |
trait Dealised[A] { | |
def value: A | |
} | |
object Dealised { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.scalatest._ | |
class TestSpec extends FunSpec { | |
sys.props.get("key") match { | |
case Some(k) => println(s"ok: $k") | |
case None => sys.error("non forked") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.2.1.js" | |
integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE=" | |
crossorigin="anonymous"></script> | |
<script type="text/javascript"> | |
function startJob(f){ | |
$.ajax({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<---- - ищи вот это как комментарии к кускам логов | |
1 ----------- | |
запуск мастера: | |
dos65@holy-excalibur:~/projects/mist$ docker run --net=host hydrosphere/mist:0.13.1-1.5.2 mist | |
17-08-25 20:24:14 [mist-akka.actor.default-dispatcher-4] INFO akka.event.slf4j.Slf4jLogger:80 Slf4jLogger started | |
17-08-25 20:24:14 [mist-akka.actor.default-dispatcher-4] INFO Remoting:74 Starting remoting | |
17-08-25 20:24:14 [mist-akka.actor.default-dispatcher-4] INFO Remoting:74 Remoting started; listening on addresses :[akka.tcp://[email protected]:2551] <---- вот тут должен быть правильный публичный адрес мастера - не 0.0.0.0 | |
17-08-25 20:24:14 [mist-akka.actor.default-dispatcher-4] INFO Remoting:74 Remoting now listens on addresses: [akka.tcp://[email protected]:2551] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runWs() { | |
var socket = new WebSocket("ws://localhost:2004/v2/api/jobs/ws"); | |
socket.onopen = function() { | |
console.log("Connected!") | |
socket.send("HELLO!") | |
}; | |
socket.onmessage = function(event) { | |
console.log(event.data); | |
}; | |
socket.onclose = function(event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code_scheme name="scala"> | |
<XML> | |
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> | |
</XML> | |
<codeStyleSettings language="Scala"> | |
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> | |
</codeStyleSettings> | |
</code_scheme> |
NewerOlder