Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
B Language Server
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
B Language Server
Commits
f66b015f
Commit
f66b015f
authored
2 years ago
by
sebastian
Browse files
Options
Downloads
Patches
Plain Diff
removed deprecated ProB exceptions
parent
d78cce31
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/b/language/server/proBMangement/prob/ProBKernel.kt
+1
-11
1 addition, 11 deletions
...kotlin/b/language/server/proBMangement/prob/ProBKernel.kt
with
1 addition
and
11 deletions
src/main/kotlin/b/language/server/proBMangement/prob/ProBKernel.kt
+
1
−
11
View file @
f66b015f
package
b.language.server.proBMangement.prob
import
b.language.server.communication.Communicator
import
b.language.server.communication.CommunicatorInterface
import
b.language.server.dataStorage.ProBSettings
import
com.google.inject.Inject
import
com.google.inject.Injector
import
de.prob.animator.ReusableAnimator
import
de.prob.animator.command.CheckWellDefinednessCommand
import
de.prob.animator.command.GetMachineOperationInfos
import
de.prob.animator.domainobjects.ErrorItem
import
de.prob.exception.ProBError
import
de.prob.scripting.ClassicalBFactory
import
de.prob.scripting.FactoryProvider
import
de.prob.scripting.ModelFactory
import
de.prob.scripting.ModelTranslationError
import
de.prob.statespace.AnimationSelector
import
de.prob.statespace.StateSpace
import
de.prob.statespace.Trace
import
kotlinx.coroutines.flow.flowViaChannel
import
org.eclipse.lsp4j.Diagnostic
import
org.eclipse.lsp4j.MessageType
import
java.io.IOException
...
...
@@ -29,7 +22,6 @@ import java.io.IOException
* @see ProBKernelManager
*/
class
ProBKernel
@Inject
constructor
(
private
val
injector
:
Injector
,
val
classicalBFactory
:
ClassicalBFactory
,
private
val
animationSelector
:
AnimationSelector
,
private
val
animator
:
ReusableAnimator
,
private
val
communicator
:
CommunicatorInterface
)
{
...
...
@@ -55,7 +47,7 @@ class ProBKernel @Inject constructor(private val injector : Injector,
val
problems
=
loadMachine
(
settings
,
path
,
factory
)
communicator
.
sendDebugMessage
(
"returning from kernel problems are $
{
problems
}
"
,
MessageType
.
Info
)
communicator
.
sendDebugMessage
(
"returning from kernel problems are $problems"
,
MessageType
.
Info
)
return
listOf
(
informationListener
.
getInformation
(),
problems
).
flatten
()
}
...
...
@@ -79,8 +71,6 @@ class ProBKernel @Inject constructor(private val injector : Injector,
factory
.
extract
(
path
).
loadIntoStateSpace
(
newStateSpace
)
}
catch
(
e
:
IOException
)
{
communicator
.
sendDebugMessage
(
"IOException ${e.message}"
,
MessageType
.
Info
)
}
catch
(
e
:
ModelTranslationError
)
{
communicator
.
sendDebugMessage
(
"ModelTranslationError ${e.message}"
,
MessageType
.
Info
)
}
catch
(
e
:
ProBError
){
errors
.
addAll
(
e
.
errors
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment