Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
K
Kawa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kashell
Kawa
Commits
945037c9
Commit
945037c9
authored
Oct 09, 2020
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Shell.java (run): Inlining to shorten REPL stack traces.
parent
69350947
Pipeline
#200743422
failed with stage
in 5 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
kawa/ChangeLog
kawa/ChangeLog
+4
-0
kawa/Shell.java
kawa/Shell.java
+16
-5
No files found.
kawa/ChangeLog
View file @
945037c9
2020-10-09 Per Bothner <per@bothner.com>
* Shell.java (run): Inlining to shorten REPL stack traces.
2020-06-30 Per Bothner <per@bothner.com>
* lang/BindDecls.java: Fix match for nested literal.
...
...
kawa/Shell.java
View file @
945037c9
...
...
@@ -180,8 +180,9 @@ public class Shell
else
perr
=
null
;
// Non-interactive.
Throwable
ex
=
run
(
language
,
env
,
inp
,
OutPort
.
outDefault
(),
perr
,
messages
);
Throwable
ex
=
run
(
language
,
env
,
inp
,
getOutputConsumer
(
OutPort
.
outDefault
()),
perr
,
null
,
messages
);
if
(
ex
==
null
)
return
true
;
printError
(
ex
,
messages
,
OutPort
.
errDefault
());
...
...
@@ -282,12 +283,22 @@ public class Shell
sawError
=
false
;
if
(
comp
==
null
)
// ??? end-of-file
break
;
ModuleExp
mexp
=
comp
.
getModule
();
if
(
sawError
)
{
comp
.
lexical
.
pop
(
comp
.
mainLambda
);
comp
.
lexical
.
pop
(
mexp
);
continue
;
}
if
(!
ModuleExp
.
evalModule
(
env
,
ctx
,
comp
,
url
,
perr
))
throw
new
SyntaxException
(
messages
);
// Inline ModuleExp.evalModule for shorter stack trace
Object
inst
=
ModuleExp
.
evalModule1
(
env
,
comp
,
url
,
perr
);
if
(
perr
!=
null
)
perr
.
flush
();
if
(
inst
==
null
)
{
comp
.
pop
(
mexp
);
throw
new
SyntaxException
(
messages
);
}
ModuleExp
.
evalModule2
(
env
,
ctx
,
language
,
mexp
,
inst
);
if
(
out
instanceof
Writer
)
((
Writer
)
out
).
flush
();
if
(
inp
.
eofSeen
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment