[plt-scheme] Reporting syntax-error to a DrScheme tool
At Wed, 01 Mar 2006 13:09:49 +0100, Jens Axel Søgaard wrote:
> I solved the puzzle by looking at Shriram's Algol60 tool.
FWIW, I believe Matthew implemented that ...
> To make things easy I copied the approach, which used a cfg-parser
> in stead of the normal parser-tool parser. While doing this I think
> I have found a bug - I am just not sure who to blame.
>
> I used an
>
> (require (lib "cfg-parser" "algol60"))
>
> to reuse Shriram's cfg-parser. After installing my tool the
> I get the following error when starting DrScheme:
>
> Error invoking tool: #<path:c:\...\algol60>
>
> standard-module-name-resolver: module previously loaded with suffix
> #"", cannot load with suffix #".ss":
> #<path:c:\programmer\plt\collects\algol60\cfg-parser.ss>
>
> Sure enough in the language selection dialog the Algol60! language
> is now missing, while my Stylesheet language works fine.
I believe you should have written:
(require (lib "cfg-parser.ss" "algol60"))
If the algol60 tool had been loaded before your tool, the reverse would
have happened (your tool would have failed).
Robby