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

(in-package :foo) not honored #175

Open
snunez1 opened this issue Oct 27, 2023 · 2 comments
Open

(in-package :foo) not honored #175

snunez1 opened this issue Oct 27, 2023 · 2 comments

Comments

@snunez1
Copy link

snunez1 commented Oct 27, 2023

If I execute the in-package function from the REPL the output suggests that the function successfully ran, however the package change never happens.

Also, it would be nice, once this is working, to change the REPL prompt to the new package name.

@JoelHobson
Copy link

I'm running into this as well, is there a workaround?

@JoelHobson
Copy link

Possibly important: Running (in-package ...) in the repl does not appear to change the value of *package* (which isn't surprising, but I thought it was worth pointing out).

I've found a solution for my needs though: To change the active package in the REPL, you can click on the name of the currently active package (the text that says "cl-user" in the attached screenshot).
image

This will open a dropdown at the top of VSCode allowing you to select a new package:
image

Find the package you want and click it, and the REPL prompt will move into that package.

Unless I missed it, I don't see this functionality documented in the readme, I figured it out by looking at the extension source. As someone attempting to learn CL, not knowing I could do this was a bit of a roadblock for me.

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

2 participants