Commit Graph

88 Commits

Author SHA1 Message Date
Robby Findler
42e64a0f23 fixed default auto text bug and added string constant for auto text
svn: r13810
2009-02-24 01:47:48 +00:00
Robby Findler
8cd0fe5e72 PR 10052
svn: r13489
2009-02-07 15:04:46 +00:00
Robby Findler
256182ecbd adjusted the automatic compilation to make it more disableable
svn: r12397
2008-11-11 23:56:54 +00:00
Eli Barzilay
518fc3b0a8 keep syntax properties at the outer module expression level
svn: r12122
2008-10-24 22:26:21 +00:00
Eli Barzilay
ec6d2a1f40 FIXEM
svn: r12120
2008-10-24 20:21:07 +00:00
Robby Findler
717895e087 makes the default name selection thing use .ss instead of .scm
svn: r11195
2008-08-12 00:05:40 +00:00
Eli Barzilay
a7248560da Protect against user code changing the namespace, plus tests. (PR9644)
svn: r11138
2008-08-08 08:56:00 +00:00
Eli Barzilay
372bbefdb3 * Added a `call-without-reset-highlighting' to "rep.ss"
* When the language does not have #%top-interaction binding, don't
  throw an error, just disable the repl (useful, for example, with
  setup/infotab as a langauge)
* To do that, used the above new method so that the original error
  highlighting is kept
* Updated tests, and added a test for using setup/infotab, verifying
  that no error is displayed.

svn: r11137
2008-08-08 08:25:17 +00:00
Eli Barzilay
3ae6db6f65 Another improvement + test
svn: r11116
2008-08-07 00:38:36 +00:00
Eli Barzilay
78170587c2 * Fixed a minor bug in the module language
* More test improvement, remove test-debugging `sleep'
* Add tests for new module language behavior with misc errors

svn: r11115
2008-08-06 21:16:51 +00:00
Eli Barzilay
ea64d1d488 better error message(?)
svn: r11102
2008-08-06 06:32:08 +00:00
Eli Barzilay
ceda363c12 Much better code now -- directly setting up the user's environment
instead of constructing syntax expressions to do so.  This is all done
with the new `front-end/finished-complete-program' hook.

svn: r11099
2008-08-06 04:44:02 +00:00
Eli Barzilay
ee2a6f7ceb Use front-end/interactions to perform the language require if there
was a syntax error in the module.  This means that things are a little
odd: we only try to require the language after the user hits enter.  A
solution might be for drscheme to always call the
front-end/interactions method immediately on an empty input port.

svn: r11079
2008-08-05 13:35:01 +00:00
Eli Barzilay
12390fb891 improvements
svn: r11078
2008-08-05 11:36:33 +00:00
Eli Barzilay
87cd09f376 * More convenient code for front-end/complete-program to send a
sequence of expressions and actions, and improved its code in
  general
* Comment about the hackiness of front-end/complete-program
* Improved strategy for having a working repl after a syntax error

svn: r11060
2008-08-04 09:07:42 +00:00
Eli Barzilay
629cbc1d92 possible fix for PR9628 and PR9615
svn: r10913
2008-07-25 14:23:34 +00:00
Eli Barzilay
b19301e100 warning when collection paths are empty
svn: r10712
2008-07-10 20:28:18 +00:00
Robby Findler
2f22ed7c41 renamed the variable bound to the collection-paths list-box object
svn: r10696
2008-07-09 11:33:38 +00:00
Eli Barzilay
4952fa6db9 simplified hopeless-exception raising
svn: r10615
2008-07-05 04:51:15 +00:00
Robby Findler
6117dc413f fixed race condition
svn: r10602
2008-07-04 19:33:14 +00:00
Eli Barzilay
3aa1a16fa8 when there is no rep (eg, only one scheme box) just raise the error
svn: r10570
2008-07-03 01:41:04 +00:00
Danny Yoo
cc362de329 Added defensive checks for rep; no rep available when exception occurs at Check Syntax.
svn: r10562
2008-07-02 18:20:58 +00:00
Danny Yoo
e4c0c9b3b9 Added defensive checks for rep; no rep available when exception occurs at Check Syntax.
svn: r10561
2008-07-02 18:15:46 +00:00
Eli Barzilay
b097856a72 use the module name resolver to check if the language is valid
svn: r10542
2008-07-01 19:04:00 +00:00
Eli Barzilay
bf2fe2f64c Added the auto-text feature to the module language
svn: r10541
2008-07-01 18:53:50 +00:00
Eli Barzilay
fb027536f4 a little more readable code layout
svn: r10513
2008-06-30 01:48:23 +00:00
Eli Barzilay
9a900b37aa Optional prefix message to exception, so we dont lose information from
exceptions.  For example, in (module foo scheme/lang ...) we should
still see the real error message.

svn: r10510
2008-06-29 22:54:51 +00:00
Eli Barzilay
e3371b98fd * Catch errors in reading the module text and raise them as hopeless
too.
* Use `error-display-handler' instead of `let/ec' hack
* Expand the module expression, and if there's an error, try a bare
  language-only module so the repl is still working (but no
  definitions, of course)

svn: r10508
2008-06-29 22:41:15 +00:00
Eli Barzilay
c3fae01528 show warning text, transform-module reorganization for hacking language
svn: r10505
2008-06-29 20:09:56 +00:00
Eli Barzilay
f4d5f5c085 * Moved (thread-cell-set! hopeless-repl #f) to a better place --
later, after we do some more checks
* Add a clarification comment re minor-hack needed.

svn: r10502
2008-06-29 05:07:44 +00:00
Eli Barzilay
32cb7bcdfc * Single function for syntax errors, used in all places for uniformity
* Improved some error messages and detection
* When this function is used, it also kills the repl.

svn: r10501
2008-06-29 05:00:08 +00:00
Eli Barzilay
b535037d2a use append-map
svn: r10491
2008-06-28 17:08:53 +00:00
Robby Findler
707315b1b4 restored Eli's syntax error improvements
svn: r10370
2008-06-19 06:19:16 +00:00
Robby Findler
c1217de228 fixed problem with completions
svn: r10337
2008-06-18 05:48:16 +00:00
Eli Barzilay
b93d242aa5 restore unmodified version
svn: r10336
2008-06-18 04:53:31 +00:00
Eli Barzilay
f4926472b8 remove changed code
svn: r10335
2008-06-18 04:50:58 +00:00
Eli Barzilay
e3fa49cdff keep the language repl if we get a syntax error
svn: r10319
2008-06-17 17:45:53 +00:00
Eli Barzilay
2c94de20aa hack: use a special value with exit to avoid popup message (no need for it now)
svn: r10317
2008-06-17 17:25:30 +00:00
Eli Barzilay
b6827d2d0b Now all module syntax errors kill the repl
svn: r10314
2008-06-17 16:06:35 +00:00
Eli Barzilay
8e4e964a65 Announce no interactions, kill repl on malformed module expression too
svn: r10313
2008-06-17 15:53:09 +00:00
Eli Barzilay
45bdf4e76d kill the running thread when there is no module (or bad module) so further interactions are disabled
svn: r10312
2008-06-17 15:38:13 +00:00
Eli Barzilay
819964baba Use "Module Language" for all error messages
svn: r10311
2008-06-17 15:26:42 +00:00
Eli Barzilay
6b940c07de simplified code by separating two steps instead of one
svn: r10298
2008-06-16 19:25:28 +00:00
Eli Barzilay
cb410d1f87 descriptive error message
svn: r10297
2008-06-16 19:16:19 +00:00
Eli Barzilay
e7b2ca7c60 Improved code that analyzes the module expression
svn: r10296
2008-06-16 18:56:23 +00:00
Eli Barzilay
559517497b minor
svn: r10295
2008-06-16 17:59:55 +00:00
Eli Barzilay
fbb652713b use a single printf
svn: r10294
2008-06-16 17:55:13 +00:00
Eli Barzilay
1386b63116 * Misc reformatting and improvements (using for loops now)
* Removed (unused) toplevel op/oprintf, and switch to scheme/unit
  (=> code outdented, but remember `-x -w' for svn diff/blame/etc)
* Remove unused `get-module-name-prefix'

svn: r10289
2008-06-16 15:49:07 +00:00
Eli Barzilay
922842d9d8 Change `bad module name' error message to use "syntax" instead of
"object", and make it use the syntax object so the error points at the
right place in the definitions window.

svn: r10287
2008-06-16 15:02:07 +00:00
Eli Barzilay
ba22d2a6e6 Replace remove-suffix' by path-replace-suffix'
svn: r10284
2008-06-16 14:08:59 +00:00