Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProB 2 Jupyter Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
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
ProB 2 Jupyter Kernel
Commits
943a058d
Commit
943a058d
authored
5 years ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Add B parser version to :version output
parent
5632fafe
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
notebooks/tests/version.ipynb
+7
-6
7 additions, 6 deletions
notebooks/tests/version.ipynb
src/main/java/de/prob2/jupyter/commands/VersionCommand.java
+6
-1
6 additions, 1 deletion
src/main/java/de/prob2/jupyter/commands/VersionCommand.java
with
14 additions
and
7 deletions
CHANGELOG.md
+
1
−
0
View file @
943a058d
...
...
@@ -3,6 +3,7 @@
## [(next version)](./README.md#for-developers)
*
Added support for Java 14.
*
Added B parser version information to
`:version`
output.
*
Updated ProB 2 to version 3.11.0.
*
Fixed a parse error when a line comment is used on the last line of an expression while any
`:let`
variables are defined.
*
Fixed detection of B machines in cells without
`::load`
. Previously only single-line machines were recognized.
...
...
This diff is collapsed.
Click to expand it.
notebooks/tests/version.ipynb
+
7
−
6
View file @
943a058d
...
...
@@ -12,11 +12,11 @@
":version\n",
"```\n",
"\n",
"Display version info about the ProB 2 Jupyter kernel
, ProB 2,
and
the
underlying
ProB CLI
."
"Display version info about the ProB 2 Jupyter kernel and
its
underlying
components
."
],
"text/plain": [
":version\n",
"Display version info about the ProB 2 Jupyter kernel
, ProB 2,
and
the
underlying
ProB CLI
."
"Display version info about the ProB 2 Jupyter kernel and
its
underlying
components
."
]
},
"execution_count": 1,
...
...
@@ -36,11 +36,12 @@
{
"data": {
"text/plain": [
"ProB 2 Jupyter kernel: 1.0.1-SNAPSHOT (2b75217bf8bef7737632efee1ebb1ddbd8cfefe6)\n",
"ProB 2: 3.10.0 (0ee5d5eea6894b2899690565dfc3d9042098ce89)\n",
"ProB 2 Jupyter kernel: 1.1.1-SNAPSHOT (e5188664ec88fa6c381b5fec7b46ab44deaf9eb7)\n",
"ProB 2: 4.0.0-SNAPSHOT (489d93856139812923fae9b8e4c1297e9576b460)\n",
"ProB B parser: 2.9.26-SNAPSHOT (d2cd9ca3dba77bfff8c6eed9799794af899b3230)\n",
"ProB CLI:\n",
"\t1.
9.3-final (64afef0148d6ce70f2af5082e69269c950078133
)\n",
"\tLast changed:
Wed Feb
1
9
1
1:16:13
2020 +0
1
00\n",
"\t1.
10.0-nightly (907db892e8fdc604be6a15cea637d74da98bf1cb
)\n",
"\tLast changed:
Tue May
1
2
1
9:06:34
2020 +0
2
00\n",
"\tProlog: SICStus 4.5.1 (x86_64-darwin-17.7.0): Tue Apr 2 15:34:32 CEST 2019"
]
},
...
...
%% Cell type:code id: tags:
```
prob
:help :version
```
%% Output
```
:version
```
Display version info about the ProB 2 Jupyter kernel
, ProB 2,
and
the
underlying
ProB CLI
.
Display version info about the ProB 2 Jupyter kernel and
its
underlying
components
.
:version
Display version info about the ProB 2 Jupyter kernel
, ProB 2,
and
the
underlying
ProB CLI
.
Display version info about the ProB 2 Jupyter kernel and
its
underlying
components
.
%% Cell type:code id: tags:
```
prob
:version
```
%% Output
ProB 2 Jupyter kernel: 1.0.1-SNAPSHOT (2b75217bf8bef7737632efee1ebb1ddbd8cfefe6)
ProB 2: 3.10.0 (0ee5d5eea6894b2899690565dfc3d9042098ce89)
ProB 2 Jupyter kernel: 1.1.1-SNAPSHOT (e5188664ec88fa6c381b5fec7b46ab44deaf9eb7)
ProB 2: 4.0.0-SNAPSHOT (489d93856139812923fae9b8e4c1297e9576b460)
ProB B parser: 2.9.26-SNAPSHOT (d2cd9ca3dba77bfff8c6eed9799794af899b3230)
ProB CLI:
1.
9.3-final (64afef0148d6ce70f2af5082e69269c950078133
)
Last changed:
Wed Feb
1
9
1
1:16:13
2020 +0
1
00
1.
10.0-nightly (907db892e8fdc604be6a15cea637d74da98bf1cb
)
Last changed:
Tue May
1
2
1
9:06:34
2020 +0
2
00
Prolog: SICStus 4.5.1 (x86_64-darwin-17.7.0): Tue Apr 2 15:34:32 CEST 2019
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/prob2/jupyter/commands/VersionCommand.java
+
6
−
1
View file @
943a058d
...
...
@@ -2,6 +2,7 @@ package de.prob2.jupyter.commands;
import
com.google.inject.Inject
;
import
de.be4.classicalb.core.parser.BParser
;
import
de.prob.Main
;
import
de.prob.animator.command.GetVersionCommand
;
import
de.prob.statespace.AnimationSelector
;
...
...
@@ -36,7 +37,7 @@ public final class VersionCommand implements Command {
@Override
public
@NotNull
String
getShortHelp
()
{
return
"Display version info about the ProB 2 Jupyter kernel
, ProB 2,
and
the
underlying
ProB CLI
."
;
return
"Display version info about the ProB 2 Jupyter kernel and
its
underlying
components
."
;
}
@Override
...
...
@@ -54,6 +55,10 @@ public final class VersionCommand implements Command {
sb
.
append
(
Main
.
getVersion
());
sb
.
append
(
" ("
);
sb
.
append
(
Main
.
getGitSha
());
sb
.
append
(
")\nProB B parser: "
);
sb
.
append
(
BParser
.
getVersion
());
sb
.
append
(
" ("
);
sb
.
append
(
BParser
.
getGitSha
());
sb
.
append
(
")\nProB CLI:"
);
final
GetVersionCommand
cmd
=
new
GetVersionCommand
();
this
.
animationSelector
.
getCurrentTrace
().
getStateSpace
().
execute
(
cmd
);
...
...
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