Hi Quian,
thanks for your reply, here is the output. Meanwhile I found the reason
for the error, which I could eliminate, as this feature is not required
for the computations right now. But may be crucial for other application.
I enhanced Character and String with greek letters and other useful
functions. Code string-enhanced.spad is included. Also symbol-jg.spad
with signatures like alpha: () -> Sybol
There I had to do a boot strapping process (forgot why) for signatur
greek?: () -> Boolean, which one had to compile first without code and
then with code. But exactly this process causes the error now.
Please compile symbol-jg and string-enhanced (2 times, first with code
of greek? commented out and then with its code). Then calling e.g.
alpha() reproduces the error.
I am curious to learn what is going wrong now. And, if this can be fixed
I would appreciate to include my enhancements to the distribution.
Thanks and regards
Johannes
(4) -> fnvwh : FileName :=
filename("/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS",
"VWH_2024_newspad", "csv")
>> System error:
invalid number of arguments: 2
(4) ->
(4) ->
(4) -> )set break break
(4) -> fnvwh : FileName :=
filename("/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS",
"VWH_2024_newspad", "csv")
debugger invoked on a SB-INT:SIMPLE-PROGRAM-ERROR in thread
#<THREAD "main thread" RUNNING {7006C65233}>:
invalid number of arguments: 2
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [REPLACE-FUNCTION] Call a different function with the same arguments
1: [CALL-FORM ] Call a different form
2: [ABORT ] Exit from the current thread.
(|make_full_CVEC| 1 34) [external]
source: (DEFUN |make_full_CVEC| (SINT) (|make_full_CVEC2| SINT #\ ))
0]
:backtrace
Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {7006C65233}>
0: (|make_full_CVEC| 1 34) [external]
1: (|LNAGG-;concat;ASA;3|
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv"
34 #1=#((|LinearAggregate&| #2=(|String|) (|Character|)) (#3=#<FUNCTION
|lookupComplete|> #1# #(|trim| 197 |sorted?| 203 |sort!| 208 |sort| 213
|rightTrim| 224 |reverse| 230 ...)) NIL 31 (#(T) #((|Join| (|mkCategory|
# # NIL NIL))) . #(1 6 8 0 9 1 6 8 0 10 2 6 ...)) NIL #4=#(#2#
(#<FUNCTION |lookupIncomplete|> #4# #(|uentries| 103 |ucodeToString| 108
|toInteger| 113 |toDecimalExpansion| 118 |string| 123 |qsetelt!| 128
...)) NIL 16382 (#(T |StringAggregate&| #(# # NIL 0 # NIL #4# #5=# # # #
# ...) T #1# |IndexedAggregate&| |Collection&| |OrderedSet&|
|HomogeneousAggregate&| T |SetCategory&| |Aggregate&| ...)
#((|StringCategory|) (|StringAggregate|) (|OneDimensionalArrayAggregate|
9) (|FiniteLinearAggregate| 9) (|LinearAggregate| 9) (|IndexedAggregate|
11 9) (|Collection| 9) (|OrderedSet|) (|HomogeneousAggregate| 9)
(|Comparable|) (|SetCategory|) (|Aggregate|) ...) . #(1 0 6 0 7 2 9 8 0
0 10 1 ...)) #6=#((|IndexedString| 1) (#3# #6# #(~= 97 |upperCase!| 103
|upperCase| 108 |trim| 113 |swap!| 125 |suffix?| 132 ...)) NIL 4194175
(#(|StringAggregate&| |OneDimensionalArrayAggregate&| T
|LinearAggregate&| |IndexedAggregate&| |Collection&| |OrderedSet&|
|HomogeneousAggregate&| T |Aggregate&| |EltableAggregate&| NIL ...) #(#
# # # # # # # # # # # ...) . #(2 19 0 18 18 20 1 19 0 18 22 1 ...)) NIL
1 (|NonNegativeInteger|) (|Character|) (#<FUNCTION
|ISTRING;new;NniC$;1|> . #6#) (#<FUNCTION |ISTRING;empty;$;2|> . #6#)
(|Boolean|) ...) (|List| 9) (#7=#<FUNCTION |newGoGet|> #4# 0 . |parts|)
(|Boolean|) #5# (#7# #4# 5 . ~=) (|Integer|) ...) #5# (|Integer|) (#7#
#1# 0 . |minIndex|) (#7# #1# 5 . |maxIndex|) (|List| 8) ...))
2: (|OUTFORM;outputForm;S$;13|
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv"
#1=#((|OutputForm|) (#<FUNCTION |lookupComplete|> #1# #(~= 153 |zag| 165
|vspace| 171 |vconcat| 176 |tensor| 187 |supersub| 193 ...)) NIL 0
(#(|SetCategory&| |BasicType&| T T) #((|SetCategory|) (|BasicType|)
(|ConvertibleTo| 43) (|CoercibleTo| 21)) . #(2 6 0 2 0 7 1 12 11 0 13 1
...)) NIL (|List| $$) (#<FUNCTION |newGoGet|> #1# 0 . |cons|)
#2=#((|SExpression|) (#<FUNCTION |lookupIncomplete|> #2# #()) NIL 0 (#(T
|SetCategory&| |BasicType&| T) #((|SExpressionCategory| 9 10 7 8)
(|SetCategory|) (|BasicType|) (|CoercibleTo| 14)) . #())
(|SExpressionOf| 9 10 7 8) (|List| 7) (|Integer|) (|DoubleFloat|)
(|String|) (|Symbol|) (|List| $) ...) (|Void|) (#<FUNCTION
|OUTFORM;print;$V;2|> . #1#) (|Boolean|) ...))
3: (|coerceByFunction| ((|FileName|) WRAPPED .
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv")
(|OutputForm|))
4: (|coerceIntTower| ((|FileName|) WRAPPED .
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv")
(|OutputForm|))
5: (|coerceInt1| ((|FileName|) WRAPPED .
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv")
(|OutputForm|))
6: (|coerceInt| ((|FileName|) WRAPPED .
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv")
(|OutputForm|))
7: (|coerceInt0| ((|FileName|) WRAPPED .
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv")
(|OutputForm|))
8: (|coerceInteractive| ((|FileName|) WRAPPED .
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv")
(|OutputForm|))
9: (|output|
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv"
(|FileName|))
10: (|recordAndPrint|
#P"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS/VWH_2024_newspad.csv"
(|FileName|))
11: (|processInteractive1| (LET (|:| |fnvwh| |FileName|) (|filename|
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS"
"VWH_2024_newspad" "csv")) (|Assign| (|listOf| (|Tagged| ((|id| #) .
|fnvwh|) ((|id| #) . |FileName|))) (|Application| ((|id| (|posn| # .
20)) . |filename|) (|Tuple| (|listOf| (# .
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS")
(# . "VWH_2024_newspad") (# . "csv"))))))
12: (|processInteractive| (LET (|:| |fnvwh| |FileName|) (|filename|
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS"
"VWH_2024_newspad" "csv")) (|Assign| (|listOf| (|Tagged| ((|id| #) .
|fnvwh|) ((|id| #) . |FileName|))) (|Application| ((|id| (|posn| # .
20)) . |filename|) (|Tuple| (|listOf| (# .
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS")
(# . "VWH_2024_newspad") (# . "csv"))))))
13: (|intInterpretPform| (|Assign| (|listOf| (|Tagged| ((|id| #) .
|fnvwh|) ((|id| #) . |FileName|))) (|Application| ((|id| (|posn| # .
20)) . |filename|) (|Tuple| (|listOf| (# .
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS")
(# . "VWH_2024_newspad") (# . "csv"))))))
14: (|phInterpret| ((|carrier| (|ok?| . T) (|ptreePremacro| .
#1=(|Assign| (|listOf| #) (|Application| # #))) (|ptree| . #1#) (|lines|
((# . 1) . "fnvwh : FileName :=
filename(\"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS\",
\"VWH_2024_newspad\", \"csv\")")) (|messages|) (|stepNumber| . 1))))
15: (|ncConversationPhase| #<FUNCTION |phInterpret|> (((|carrier| (|ok?|
. T) (|ptreePremacro| . #1=(|Assign| # #)) (|ptree| . #1#) (|lines| (# .
"fnvwh : FileName :=
filename(\"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS\",
\"VWH_2024_newspad\", \"csv\")")) (|messages|) (|stepNumber| . 1)))))
16: (|intloopSpadProcess,interp| ((|carrier| (|ok?| . T)
(|ptreePremacro| . #1=(|Assign| (|listOf| #) (|Application| # #)))
(|ptree| . #1#) (|lines| ((# . 1) . "fnvwh : FileName :=
filename(\"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS\",
\"VWH_2024_newspad\", \"csv\")")) (|messages|) (|stepNumber| . 1)))
(|Assign| (|listOf| (|Tagged| ((|id| #) . |fnvwh|) ((|id| #) .
|FileName|))) (|Application| ((|id| (|posn| # . 20)) . |filename|)
(|Tuple| (|listOf| (# .
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS")
(# . "VWH_2024_newspad") (# . "csv"))))) T)
17: (|intloopSpadProcess| 1 ((((0 #1="fnvwh : FileName :=
filename(\"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS\",
\"VWH_2024_newspad\", \"csv\")" 1 1 "strings") . 1) . #1#)) (|Assign|
(|listOf| (|Tagged| ((|id| #) . |fnvwh|) ((|id| #) . |FileName|)))
(|Application| ((|id| (|posn| # . 20)) . |filename|) (|Tuple| (|listOf|
(# .
"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS")
(# . "VWH_2024_newspad") (# . "csv"))))) T)
18: (|intloopProcess| 1 T (((((# . 1) . "fnvwh : FileName :=
filename(\"/Users/jgrabmeier/stadtrat-deggendorf/haushalt/hh-plan-2024/entwurfHaushaltFriCAS\",
\"VWH_2024_newspad\", \"csv\")")) (|Assign| (|listOf| (|Tagged| # #))
(|Application| (# . |filename|) (|Tuple| #)))) |nonnullstream|
#1=#<FUNCTION |next1|> #<FUNCTION |ncloopParse|> (|nonnullstream| #1#
#<FUNCTION |fakepile|> (|nullstream|))))
19: (|intloopReadConsole| #<unavailable argument> #<unavailable argument>)
20: (|SpadInterpretStream| 1 NIL T)
21: (|int_loop|)
22: (|ncTopLevel|)
23: (|runspad|)
24: (|spad|)
25: (FRICAS-RESTART)
26: ((LAMBDA NIL :IN FRICAS-LISP::SAVE-CORE-RESTART))
27: ((FLET SB-UNIX::BODY :IN SB-IMPL::START-LISP))
28: ((FLET "WITHOUT-INTERRUPTS-BODY-1" :IN SB-IMPL::START-LISP))
29: (SB-IMPL::START-LISP)
0]
Am 25.11.23 um 01:45 schrieb Qian Yun: