Changed sbtserver to just work off of the address variable

This commit is contained in:
Ty Coghlan
2018-09-01 20:59:36 -04:00
parent 8e3bf10592
commit 3d016f1697
15 changed files with 18 additions and 59 deletions

View File

@@ -5,21 +5,15 @@ Before:
call ale#assert#SetUpLinterTest('scala', 'sbtserver')
After:
call ale#assert#TearDownLinterTest()
Execute(should set sbtserver for sbt project with active.json):
Execute(should set sbtserver for sbt project with build.sbt):
call ale#test#SetFilename('../scala_fixtures/valid_sbt_project/Main.scala')
AssertLSPLanguage 'scala'
AssertLSPOptions {}
AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../scala_fixtures/valid_sbt_project')
AssertLSPAddress '127.0.0.1:5211'
Execute(should not set sbtserver for sbt project without active.json):
call ale#test#SetFilename('../scala_fixtures/no_active_sbt_project/Main.scala')
AssertLSPLanguage 'scala'
AssertLSPOptions {}
AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../scala_fixtures/no_active_sbt_project')
AssertLSPAddress ''
AssertLSPAddress '127.0.0.1:4273'
Execute(should not set sbtserver for sbt project without build.sbt):
call ale#test#SetFilename('../scala_fixtures/invalid_sbt_project/Main.scala')
AssertLSPLanguage 'scala'
AssertLSPOptions {}
AssertLSPProject ''
AssertLSPAddress ''
AssertLSPAddress '127.0.0.1:4273'

View File

@@ -1,5 +0,0 @@
object HelloAle {
def main(args: Array[String]): Int = {
println("Hello, ale!")
}
}

View File

@@ -1 +0,0 @@
sbt.version=1.2.1

View File

@@ -1 +0,0 @@
{"uri":"tcp://127.0.0.1:5211"}

View File

@@ -1,5 +0,0 @@
object HelloAle {
def main(args: Array[String]): Int = {
println("Hello, ale!")
}
}

View File

@@ -1,3 +0,0 @@
name := "ale-scala-valid"
version := "1.0"
scalaVersion := "2.12.6"

View File

@@ -1 +0,0 @@
sbt.version=1.2.1

View File

@@ -1,5 +0,0 @@
object HelloAle {
def main(args: Array[String]): Int = {
println("Hello, ale!")
}
}

View File

@@ -1,3 +0,0 @@
name := "ale-scala-valid"
version := "1.0"
scalaVersion := "2.12.6"

View File

@@ -1 +0,0 @@
sbt.version=1.2.1

View File

@@ -1 +0,0 @@
{"uri":"tcp://127.0.0.1:5211"}