Skip to content

Commit 7d5cad2

Browse files
committed
Merge branch 'dev'
2 parents 05036cf + 1260e0a commit 7d5cad2

File tree

289 files changed

+2809
-2035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+2809
-2035
lines changed

APLSource/Cider/CheckForGit.aplf

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
11
{r}←CheckForGit(path config parms);status;dmx;gitStatus;ind
22
⍝ Checks whether the project is managed by Git, and if so offers some help, unless parms.batch=1
33
r←⍬
4+
→(~F.Exists(AddSlash path),'.git')/0
45
gitStatus←GetGlobalGitStatus
56
:If gitStatus≠0
6-
:AndIf F.Exists(AddSlash path),'.git'
7-
:If gitStatus=3
8-
ind←'Report Git status?'C.Select'Nope!' 'Yes, in ⎕ED' 'Yes, in the session'
7+
:If gitStatus=3 ⍝ We need to ask the user
8+
ind←'Report Git status (if anything is to report) ?'C.Select'Nope!' 'Yes, in ⎕ED' 'Yes, in the session'
99
→(1=ind)/0
10+
gitStatus←(2 3⍳ind)⊃1 2
1011
:EndIf
11-
:Trap 0
12-
status←G.Status path
12+
:EndIf
13+
:Trap 0
14+
status←G.Status path
15+
:Else
16+
dmx←⎕DMX
17+
:If 127=dmx.EN
18+
(1 parms.batch)p'The project appears to be managed by Git but Git is not installed?!'
19+
:ElseIf 128=dmx.EN
20+
(1 parms.batch)p'The project appears to be managed by Git but user.email and/or user.name are not defined'
21+
:ElseIf 0<≢dmx.Message
22+
(1 parms.batch)p'The Git status of the project could not be determined due to an error:'
23+
(1 parms.batch)p dmx.Message,'; rc=',⍕dmx.EN
24+
:ElseIf 0<≢dmx.DM
25+
(1 parms.batch)p'The Git status of the project could not be determined due to an error:'
26+
(1 parms.batch)p(⊃dmx.DM),'; rc=',⍕dmx.EN
27+
:Else
28+
(1 parms.batch)p'The Git status of the project could not be determined due to an error'
29+
:Return
30+
:EndIf
31+
:Return
32+
:EndTrap
33+
:If ∧/∨/¨'nothing to commit' 'working tree clean'⍷¨⊂∊status
34+
:AndIf ~∨/∨/¨'on branch main' 'on branch master'⍷¨⊂⎕C∊status
35+
status←(↓(,[0.5]'Git status report')⍪'='),status
36+
p status
37+
:ElseIf 0=parms.batch
38+
status←(↓(,[0.5]'Git status report')⍪'='),status
39+
:If gitStatus=1
40+
{{}(#.⎕NS'').(⎕ED⍠('ReadOnly' 1)&{'GIT_Status_Report'}GIT_Status_Report←⍵)}⍪status
1341
:Else
14-
dmx←⎕DMX
15-
:If 127=dmx.EN
16-
(1 parms.batch)p'The project appears to be managed by Git but Git is not installed?!'
17-
:Return
18-
:ElseIf 128=dmx.EN
19-
(1 parms.batch)p'The project appears to be managed by Git but user.email and/or user.name are not defined'
20-
:Return
21-
:ElseIf 0<≢dmx.Message
22-
(1 parms.batch)p'The Git status of the project could not be determined due to an error:'
23-
(1 parms.batch)p dmx.Message,'; rc=',⍕dmx.EN
24-
:Return
25-
:Else
26-
(1 parms.batch)p'The Git status of the project could not be determined due to an error'
27-
:Return
28-
:EndIf
29-
:EndTrap
30-
:If ∧/∨/¨'nothing to commit' 'working tree clean'⍷¨⊂∊status
31-
:AndIf ~∨/∨/¨'on branch main' 'on branch master'⍷¨⊂⎕C∊status
32-
(1 parms.batch)p'Git: ',(1⊃status),', ',⊃{⍺,', ',⍵}/1↓status
33-
:ElseIf 0=parms.batch
34-
status←(↓(,[0.5]'Git status report')⍪'='),status
35-
:If gitStatus=1
36-
{{}(#.⎕NS'').(⎕ED⍠('ReadOnly' 1)&{'GIT_Status_Report'}GIT_Status_Report←⍵)}⍪status
37-
:Else
38-
⎕←↑status
39-
:EndIf
42+
⎕←↑status
4043
:EndIf
4144
:EndIf

APLSource/Cider/History.apla

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
(
2+
'* 0.43.2 ⋄ 2024-10-13'
3+
' * Git status report improved'
4+
' * Bug fixes:'
5+
' * When the user set the global config parm `ReportGitStatus` to 3 things went south'
6+
' * If a project was opened that is not managed by Git an error was reported (wrongly)'
7+
' * New version of the <APLGit2> package installed which fixes a bug when . was specified as folder'
8+
' * `ListTatinDependencies` crashed when a folder was specified with the -full flag'
9+
' * Bug fix in `CheckForGit`'
210
'* 0.43.1 ⋄ 2024-10-04'
311
' * Package updated (NuGet, APLGit2, Tester2)'
412
' * Bug fixes'

APLSource/Cider/UC/ListTatinDependencies.aplf

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,16 @@
4343
:EndIf
4444
:Else
4545
list←F.ListDirs path
46-
r←0 2⍴''
46+
r←''
4747
:For path2 :In list
4848
buildFilename←path2,'/apl-buildlist.json'
4949
:If ⎕NEXISTS buildFilename
5050
:If 0<≢buff←P_.ListTatinDependenciesFull path2
51-
buff←⊃,/CR,¨(buff[;1]⍴¨' '),¨buff[;2]
52-
:If 2=⍴⍴buff
53-
r⍪←buff
54-
:Else
55-
r,←buff
56-
:EndIf
51+
r,←⊃,/CR,¨(buff[;1]⍴¨' '),¨buff[;2]
5752
:EndIf
5853
:EndIf
5954
:EndFor
55+
r←1↓r
6056
:EndIf
6157
:EndIf
6258
:Else

APLSource/Cider/UC/SelectFromAliases.aplf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
:If 0<≢data
88
data[;1]←{'[',⍵,']'}¨data[;1]
99
caption←'Select project to be opened',({0=≢⍵:⍵ ⋄ ' ',⍵,' '}caption),':'
10-
:AndIf ⍬≢row←'Select project to be opened:'SelectOneItem↓⎕FMT data
10+
:AndIf ⍬≢row←'SelecProject@Select project to be opened:'P.##.CommTools.Select↓⎕FMT data
1111
r←row⊃data[;2]
1212
:EndIf

APLSource/Cider/UC/SelectOneItem.aplf

Lines changed: 0 additions & 35 deletions
This file was deleted.

APLSource/Cider/Version.aplf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
r←Version
22
⍝ See also `History`
3-
r←'0.43.1+671'
3+
r←'0.43.2+671'

APLSource/ToDo.apla

Lines changed: 0 additions & 3 deletions
This file was deleted.

apl-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
tags: "project-management",
2222
tatin_version: "0.103.0",
2323
userCommandScript: "APLSource/Cider_UC.dyalog",
24-
version: "0.43.1+813",
24+
version: "0.43.2+825",
2525
}

cider.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
LINK: {
2222
fastLoad: 1,
2323
forceFilenames: 1,
24-
watch: "ns",
2524
},
2625
SYSVARS: {
2726
io: 1,

docs/Cider-API-Reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ The name of the namespace the project is injected into. If this is empty it is g
444444

445445
#### ignoreUserExec
446446

447-
This flag is ignored in case Cider's own global config file defines not function on `ExecuteAfterProjectOpen`, but if there is a fully qualified function name defined then this flag can be used to prevent the function from execution with a particular call of `OpenProject`.
447+
This flag is ignored in case Cider's own global config file does not define a function on `ExecuteAfterProjectOpen`, but if there is a fully qualified function name defined, then this flag can be used to prevent the function from being executed at the end of opening a project.
448448

449449

450450
#### importFlag
@@ -564,5 +564,6 @@ This can be just `1.2.3`, but it may be something like `1.2.3-beta-1+113`
564564

565565

566566

567+
567568

568569

0 commit comments

Comments
 (0)