Skip to content

Commit 6d7b0d3

Browse files
committed
Bug fixes in FindNuGetAPI and OpenProject
1 parent a7b48df commit 6d7b0d3

File tree

214 files changed

+3850
-366
lines changed

Some content is hidden

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

214 files changed

+3850
-366
lines changed

APLSource/Cider/FindNuGetAPI.aplf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
⍝ Tries to find a NuGet ns somewhere, and returns a ref to the first hit, otherwise ''
33
ref←''
44
list←'#.NuGet' '⎕SE.Dyalog.Nuget' '⎕SE.NuGet'
5-
bool←9=⎕NC list
5+
bool←9=⎕NC list
66
:If ∨/bool
77
ref←⍎⊃bool/list
88
:EndIf

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 als History
3-
r←'0.36.0+581'
3+
r←'0.36.0+587'

APLSource/Cider_uc.dyalog

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
rnewList[;1]~oldList[;1]
230230
231231

232-
rUpdateCider dummy;allVersions;thisVersion;ind;noOf;targetFolder;tempFolder;res;q
232+
rUpdateCider dummy;allVersions;thisVersion;ind;noOf;targetFolder;tempFolder;res;q;folder
233233
allVersions,⎕SE.Tatin.ListVersions'[Tatin]aplteam-Cider'
234234
thisVersion'aplteam-Cider-',{¯1+'+'}P.Version
235235
indallVersionsthisVersion
@@ -244,11 +244,17 @@
244244
tempFolderP.##.F.GetTempSubDir'Cider'
245245
res⎕SE.Tatin.InstallPackages('[tatin]aplteam-Cider')tempFolder
246246
targetFolder⎕NPARTS ##.SourceFile
247-
{}P.##.F.RmDir targetFolder
247+
{}P.##.F.RmDirByForce targetFolder
248248
3 ⎕MKDIR targetFolder
249249
targetFolder ⎕NMOVE1tempFolder,'/*'
250250
r'Cider was successfully updated to version ',{1/2+\='-'}res
251-
{}P.##.F.RmDir tempFolder
251+
{}P.##.F.RmDirByForce tempFolder
252+
:If folderP.##.F.IsDir P.GetMyUCMDsFolder,'/Cider'
253+
q'RemoveCiderFromMyUCMDs@There is a folder Cider/ in ',P.GetMyUCMDsFolder,'/',⎕UCS 13
254+
q,'Shall this folder be removed?'
255+
:AndIf 1 P.##.C.YesOrNo q
256+
{}P.##.F.RmDirByForce folder
257+
:EndIf
252258
:Else
253259
r'Cancelled by user'
254260
:EndIf
@@ -399,7 +405,7 @@
399405
:Else
400406
pathArgs._1
401407
:EndIf
402-
:If ']['¯1path
408+
:If ']['2¯1path
403409
:AndIf '*'=¯1path~'[]'
404410
bool~aliasDefs[;2]{[;2]}P.ListOpenProjects 0
405411
boolbool\(¯1path~'[]'){(⎕C()[2]).=⎕C }boolaliasDefs[;1]

apl-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
source: "APLSource/Cider/",
2020
tags: "project-management",
2121
userCommandScript: "APLSource/Cider_UC.dyalog",
22-
version: "0.36.0+581",
22+
version: "0.36.0+587",
2323
}

tatin-packages/apl-buildlist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ packageID: [ "aplteam-GitHubAPIv3-0.7.0", "aplteam-FilesAndDirs-5.5.0", "aplteam-CommTools-1.7.0", "aplteam-APLTreeUtils2-1.2.0", "aplteam-APLGit2-0.15.3", "dyalog-HttpCommand-5.2.0", "aplteam-OS-3.1.1", ], principal: [ 1, 1, 1, 1, 1, 0, 0, ], url: [ "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", ],}
1+
{ packageID: [ "aplteam-FilesAndDirs-5.5.1", "aplteam-CommTools-1.7.0", "aplteam-APLTreeUtils2-1.2.0", "aplteam-APLGit2-0.15.3", "dyalog-HttpCommand-5.2.0", "aplteam-OS-3.1.1", "aplteam-GitHubAPIv3-0.7.0", ], principal: [ 1, 1, 1, 1, 0, 0, 0, ], url: [ "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", "https://tatin.dev/", ],}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
aplteam-APLTreeUtils2-1.2.0
2-
aplteam-FilesAndDirs-5.5.0
2+
aplteam-FilesAndDirs-5.5.1
33
aplteam-CommTools-1.7.0
4-
aplteam-APLGit2-0.15.3
4+
aplteam-APLGit2-0.15.3
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
(
2+
'## Overview'
3+
''
4+
'This package provides functions that are useful for dealing with files and directories. '
5+
'They aim to be platform-independent.\\'
6+
'Note that error codes and messages may differ between operating systems for the same'
7+
'type of problem.\\'
8+
''
9+
'## Characters to avoid in file names and paths'
10+
'Windows filenames cannot contain any of these characters: `\/:*?"<>|`.'
11+
'If you want platform-independent code, now or in the future,'
12+
'avoid using them even in Mac OS or Linux filenames.\\'
13+
''
14+
'## Separators in file paths'
15+
'Dyalog tried to ease the pain by converting any `\` character into `/` on Windows.'
16+
'The idea of sticking always with the `/` as separator because it works anyway is'
17+
'attractive, but it creates new poblems: when you use third-party software such as a .NET'
18+
'assembly or an EXE like 7zip.exe on Windows, then you **must** use `\` as a separator.'
19+
'Even setting the `Directory` property of a `FileBox` object will fail with `/` as the separator.\\'
20+
'For platform independence it is essential that filenames and directory names are _normalized_.'
21+
'This means using the correct separator for the current operating system.'
22+
'Otherwise you could create a directory or file with a backslash in its name, which is disastrous'
23+
'on Linux or Mac OS.\\'
24+
'The `FilesAndDirs` functions protect you from this problem by normalizing your file paths.'
25+
'Use cover functions like `MkDir`, `NNAMES` and `NCREATE` etc. instead of the built-in system '
26+
'functions to overcome the problem.\\'
27+
'`⎕NCOPY` and `⎕NMOVE` (introduced in 17.0) are exceptions, but you can use the native function'
28+
'with the `ExecNfunction` operator.'
29+
'The `CurrentSep` method returns the correct separator for the current operating system.\\'
30+
'The `NormalizePath` method normalizes a file path for the current operating system.\\'
31+
'If you have a particular reason for using `/` under Windows or `\` under Linux'
32+
'or Mac OS then you can use the `EnforceBackslash` or `EnforceSlash` functions.\\'
33+
''
34+
'## Misc'
35+
'This class supports Windows, Mac OS and Linux but neither the Raspberry Pi nor AIX.'
36+
''
37+
'Kai Jaeger'
38+
''
39+
'Homepage: <http://github.com/aplteam/FilesAndDirs>'
40+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AddTrailingSep←{⍺←⊢ ⋄ ⍺ ##.AddTrailingSep ⍵}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cd←{##.Cd ⍵}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CheckPath←{⍺←⊢ ⋄ 1:shy←⍺ ##.CheckPath ⍵}

0 commit comments

Comments
 (0)