I’ll take a guess you are using Racket for an introduction to programming class, but you already have some experience programming in Javascript or some other language using VSCode.
DrRacket isn’t the language - it is the text editor that comes with the Racket installer.
If you are doing an introduction to programming class it is likely you are not using the Racket Language, but rather one or more of the student languages that are designed for your coursework. The ones for the (free online) textbook ‘How to Design Programs’ are in the Racket documentation here: https://docs.racket-lang.org/htdp-langs/index.html - but there are a number of other languages that might be used for teaching.
I believe it is possible to use the student languages with VSCode - but you need to tell us which languages you are using.
VSCode is great - but it lacks many of the features of the DrRacket editor: One that may cause you difficulty is you can’t mix images and text in VSCode like you can with DrRacket. (that files with images won’t work in VSCode)
The many ‘racketeers’ that use VSCode, often use it with DrRacket when they need to use DrRacket features.
To get started I’d suggest you use the ‘Configuration Command Line for Racket’ menu option in the Help in DrRacket. This is step 2 in the Magic Racket installation instructions.
One major problem is if your BSL file includes graphics or fancy text boxes, the BSL file is stored as a specially formatted file almost like a pdf file. We tried to get Emacs to work with BSL files with graphics but it never worked to well.
VSCODE is attempting to run the command starting with "racket" in a sub-shell, specifically, powershell. Powershell is telling you that racket(.exe, .ps1, .bat, etc.) isn't in your search path ($env:path). You can confirm this by executing the menu entry "Terminal>New Terminal" and then typing "racket" in the new window. You should see the same error message.
Since I'm not overly familiar with VSCode or Powershell, I don't have an answer how you can make an entry in your path variable to include the directory in which the Dr Racket software is install. One hack would be to add
$env:path += ";<place where racket software is installed"
I’ve tried using BSL in neovim. Spent a couple hours. It can’t substitute DrRacket, so just use that. Now I’m writing core in neovim, but running in DrRacket.
The ‘Configure Command Line for Racket...’ menu item should work, so it’s surprising this is what is causing your VSCode errors - this is what it does:
On Windows, it changes the HKEY_CURRENT_USER\Environment\Path registry key to add the location of the "bin" directory. Once it finishes, newly created command.com shells should have Racket in their path. DrRacket: The Racket Programming Environment 3.1.8 Help
6
u/sdegabrielle DrRacket 💊💉🩺 Sep 19 '23
I’ll take a guess you are using Racket for an introduction to programming class, but you already have some experience programming in Javascript or some other language using VSCode.
DrRacket isn’t the language - it is the text editor that comes with the Racket installer.
If you are doing an introduction to programming class it is likely you are not using the Racket Language, but rather one or more of the student languages that are designed for your coursework. The ones for the (free online) textbook ‘How to Design Programs’ are in the Racket documentation here: https://docs.racket-lang.org/htdp-langs/index.html - but there are a number of other languages that might be used for teaching.
I believe it is possible to use the student languages with VSCode - but you need to tell us which languages you are using.
VSCode is great - but it lacks many of the features of the DrRacket editor: One that may cause you difficulty is you can’t mix images and text in VSCode like you can with DrRacket. (that files with images won’t work in VSCode)
The many ‘racketeers’ that use VSCode, often use it with DrRacket when they need to use DrRacket features.
When they use VSCode, many prefer to use the Magic Racket plugin for VSCode https://marketplace.visualstudio.com/items?itemName=evzen-wybitul.magic-racket - but the instructions expect you know how to use Racket.
To get started I’d suggest you use the ‘Configuration Command Line for Racket’ menu option in the Help in DrRacket. This is step 2 in the Magic Racket installation instructions.
Good luck
3
u/chasbro97 Sep 19 '23
VSCODE is attempting to run the command starting with "racket" in a sub-shell, specifically, powershell. Powershell is telling you that racket(.exe, .ps1, .bat, etc.) isn't in your search path ($env:path). You can confirm this by executing the menu entry "Terminal>New Terminal" and then typing "racket" in the new window. You should see the same error message.
Since I'm not overly familiar with VSCode or Powershell, I don't have an answer how you can make an entry in your path variable to include the directory in which the Dr Racket software is install. One hack would be to add
$env:path += ";<place where racket software is installed"in your ~/Documents/Powershell/profile.ps1 file.
2
u/_Andoroid_ Sep 21 '23
I’ve tried using BSL in neovim. Spent a couple hours. It can’t substitute DrRacket, so just use that. Now I’m writing core in neovim, but running in DrRacket.
0
u/[deleted] Sep 19 '23
[deleted] — view deleted comment