Commit Graph

99 Commits

Author SHA1 Message Date
Matthew Flatt
4c8b0b8b13 change DrScheme module language to use namespace-require (like mzscheme/mred)
svn: r15963
2009-09-10 19:39:31 +00:00
Robby Findler
83728f04fe automatic compilation in drscheme now avoids the installed planet files
svn: r15928
2009-09-09 02:35:09 +00:00
Robby Findler
77a94fac04 changed defaults back to including errortrace
svn: r15769
2009-08-17 15:55:11 +00:00
Robby Findler
4c9dcdc36d moved some of the module language compiler setup code into the compiler/cm library so others can use it outside of DrScheme
svn: r15730
2009-08-13 21:09:15 +00:00
Robby Findler
485785176a drscheme now saves its compiled files in its own directory
svn: r15714
2009-08-12 19:44:14 +00:00
Robby Findler
a6624f11e2 better job of checking module language setting invariants when reading from the prefs file
svn: r15649
2009-07-31 16:00:15 +00:00
Robby Findler
b5b32d1d8e added automatic compilation to the module language, plus various other tweaks (contract library enhancement, bug fixes here and there)
svn: r15635
2009-07-30 05:17:40 +00:00
Matthew Flatt
fa6423e658 fix Create Executable to include -U and -- flags automatically
svn: r15229
2009-06-22 12:23:41 +00:00
Eli Barzilay
f51c6bbe64 Fix the leaking of internal drscheme filenames in error messages when
debugging is disabled:
* got rid of the `stacktrace-runtime-name' hack in "rep.ss", replace
  it by a more reliable capture of the context, and later cut the
  stack according to that specific context.
* the cutting is done if possible, no need for the "ACK!" error
  message if no cutting point is found.
* rename `with-stacktrace-name' -> `with-stack-checkpoint'
* add this to "module-language.ss" too, to avoid including it in error
  messages.

svn: r14777
2009-05-12 02:12:49 +00:00
Matthew Flatt
8c9bcd50c2 on second thought, PR 10185 demonstrates why the variant of dynamic-require (and namespace-attach-module) that doesn't make the phase availble is difficult to reason about; changing dynamic-require and namespace-attach-module, instead of DrScheme
svn: r14454
2009-04-08 02:11:21 +00:00
Matthew Flatt
a472a4452c fix DrScheme REPL, whose old use of dynamic-require is no longer enough to instantiate compile-time support (PR 10185)
svn: r14453
2009-04-08 01:56:37 +00:00
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