forked from CharlesSkelton/studio
-
Notifications
You must be signed in to change notification settings - Fork 12
update error hints #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gyorokpeter
wants to merge
2
commits into
finos:main
Choose a base branch
from
gyorokpeter:gh-145
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
update error hints #146
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,38 +12,49 @@ public static String lookup(String s) { | |
|
|
||
|
|
||
| static { | ||
| map.put("access","attempt to read files above directory, run system commands or failed usr/pwd"); | ||
| map.put("access","attempt to read files above directory or run system commands in -u 1 mode, or failed usr/pwd"); | ||
| map.put("assign","attempt to assign a value to a reserved word"); | ||
| map.put("conn","too many incoming connections (1022 max)"); | ||
| map.put("badmsg","failure in IPC validation"); | ||
| map.put("badtail","incomplete transaction at end of log file, get good (count;length) with -11!(-2;`:file)"); | ||
| map.put("cast","value not in enumeration"); | ||
| //map.put("close handle.*","handle was closed by the remote while a msg was expected"); //this would require regex matching | ||
| //map.put("conn","too many incoming connections (1022 max)"); //this is a server-side error, shouldn't happen during a client query | ||
| map.put("domain","out of domain"); | ||
| map.put("glim","`g# limit, kdb+ currently limited to 99 concurrent `g#'s "); | ||
| map.put("from","badly formed select query"); | ||
| //map.put("glim","`g# limit, kdb+ currently limited to 99 concurrent `g#'s "); //obsolete | ||
| map.put("insert","trying to insert a record with an existing key into a keyed table"); | ||
| map.put("length","incompatible lengths, e.g. 1 2 3 4 + 1 2 3"); | ||
| map.put("limit","tried to generate a list longer than 2,000,000,000"); | ||
| map.put("limit","trying to generate a list longer than 2^40-1, or serialized object is > 1TB, or too many constants in a function"); | ||
| map.put("loop","dependency loop"); | ||
| map.put("mismatch","columns that can't be aligned for R,R or K,K "); | ||
| map.put("Mlim","more than 999 nested columns in splayed tables"); | ||
| map.put("Mlim","more than 65530 nested columns in splayed tables"); | ||
| map.put("noamend","can't change global state inside an amend"); | ||
| map.put("nosocket","trying use sockets in a thread other than the main thread"); | ||
| map.put("noupdate","trying to update state while blocked with -b cmd line arg or reval, or in a thread other than the main thread"); | ||
| map.put("nyi","not yet implemented - suggests the\noperation you are tying to do makes sense\nbut it has not yet been implemented"); | ||
| map.put("os","operating system error"); | ||
| map.put("pl","peach can't handle parallel lambda's (2.3 only)"); | ||
| map.put("par","unsupported operation on a partitioned table"); | ||
| map.put("parse","invalid syntax, bad IPC header or bad binary data in file"); | ||
| //map.put("pl","peach can't handle parallel lambda's (2.3 only)"); //obsolete | ||
| map.put("Q7","nyi op on file nested array"); | ||
| map.put("rank","invalid rank or valence"); | ||
| map.put("rank","invalid rank"); | ||
| map.put("splay","nyi op on splayed table"); | ||
| map.put("stack","ran out of stack space"); | ||
| map.put("stop","user interrupt(ctrl-c) or time limit (-T)"); | ||
| map.put("stop","user interrupt (ctrl-c) or time limit (-T)"); | ||
| map.put("stype","invalid type used to signal"); | ||
| map.put("type","wrong type, e.g `a+1"); | ||
| map.put("type","wrong type, e.g `a+1, or trying to serialize a nested object which has > 2 billion elements"); | ||
| map.put("value","no value"); | ||
| map.put("vd1","attempted multithread update"); | ||
| map.put("wsfull","malloc failed. ran out of swap (or addressability on 32bit). or hit -w limit."); | ||
| map.put("branch","a branch(if;do;while;$[.;.;.]) more than 255 byte codes away"); | ||
| //map.put("wsfull","malloc failed. ran out of swap (or addressability on 32bit). or hit -w limit."); //this is an untrappable error | ||
|
|
||
| map.put("branch","a branch(if;do;while;$[.;.;.]) too many byte codes away"); //the exact number is useless info to an end user | ||
| map.put("char","invalid character"); | ||
| map.put("constants","too many constants (max 96)"); | ||
| map.put("globals","too many global variables (32 max)"); | ||
| map.put("locals","too many local variables (24 max)"); | ||
| map.put("params","too many parameters (8 max)"); | ||
| //map.put("constants","too many constants (max 96)"); //obsolete in 3.6 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't hurt to leave it in. Someone out there is still running 2.8...
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my comment on the issue regarding versions. |
||
| map.put("globals","too many global variables (max 110)"); | ||
| map.put("locals","too many local variables (max 110)"); | ||
| map.put("params","too many parameters (max 8)"); | ||
| map.put("u-fail","cannot apply `u# to data (not unique values), e.g `u#1 1"); | ||
| map.put("s-fail","cannot apply `s# to data (not ascending values) , e.g `s#2 1"); | ||
| map.put("noamend","can't change global state inside an amend"); | ||
| map.put("elim","more than 57 distinct enumerations"); | ||
| //map.put("elim","more than 57 distinct enumerations"); //obsolete in 3.6 | ||
| } | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems harmless to leave in. Tail of legacy is long...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment on the issue. For this particular one, the limit actually changed between versions, and I wanted to put in the latest value of the limit but turns out there is none.