Skip to content
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

Cannot run wl files in VSCode #29

Open
PetrarcaBruto opened this issue Jan 16, 2023 · 2 comments
Open

Cannot run wl files in VSCode #29

PetrarcaBruto opened this issue Jan 16, 2023 · 2 comments

Comments

@PetrarcaBruto
Copy link

Hi,
I will appreciate your help for running wl code from VS Code. I do the following sequence:

1- I verified that I can run the Wolfram Engine from the Wolframscript.
2- I installed this package from the VS Code market place
3- I had to change the VS code kernel directory (that still points to 13.1) to be 13.2.
4-I created a one line wl file containing the code:
Range[3]
Note that the wl file gets interactive syntax Wolfram language highlighting, syntax checking, and documentation.
5- Run the file without debugging (Ctrl+F5) and I get a Visual Studio Code dialog box with the message:
"You don't have an extension for debugging Wolfram. Should we find a Wolfram extension in the Marketplace?"
With a button: "Find Wolfram extension"
6- Clicking on the button generates a: "@category:debuggers Wolfram" which results in "No extension found"

Note: Because I cannot execute Wolfram code I don't know how/where to execute
LSPServer placelet you mention in the setup documentation. If I run those installation lines of code in Wolframscript they execute ok but I still get the same error inside VSCode.
Could you please guide me. What am I doing wrong?

Another question: Not sure if the functionality in this repository is supposed to allow the execution of notebooks in VS code.

Thanks,
Petrarca

@userrand
Copy link

userrand commented Feb 6, 2023

I also had a problem with the wolfram kernel path using version 13.2 (It worked with version 13.1 on another Linux distribution then I changed both the Linux distribution and the updated to 13.2 so I do not really know what caused the problem).

As far as I can tell from my previous time using this extension, it does not offer a debugger. There is another VScode extension that claims that it does but I had trouble getting it to work.

I used this extension for package development. To debug I just save the package on VScode (I might have enabled something that allows it to update the installation too but I do not know/remember) and then call Needs on a Mathematica notebook each time (I often use a separate notebook that has only that command so that I can just evaluate it directly without having to search for the command in the current notebook or having to retype the Needs command).

@asukaminato0721
Copy link

try this addon:

https://github.com/asukaminato0721/mmaplayer

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants