-
Notifications
You must be signed in to change notification settings - Fork 243
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
Add support for concurrent dev instances for separate projects #758
Comments
I was just asking Dax about this. I think it's fixed with the new multiplexer update to |
@jayair I get an error about ssm:GetParameter when scrolling down to the 'dashboard' item (which is my Nextjs resource name), or when I press enter when this item is highlighted. if I use the 'mode=basic' option then I can run things by having Note that I am still having to use the GODEBUG switch on my Macbook M1 to get around the issue with the Pulumi intel binaries. Tested with 0.1.51 |
this should work in v |
what is your |
Same thing in 0.1.76. @thdxr dev script is I tried running with I checked the Role and indeed there is no I tried adding the SSM permissions to the Nodejs instance:
And when run with the multiplexer, I got this: Whilst I can use the current version with |
@dmeehan1968 Dashboard is your next.js app right? For its dev script, can you remove the sst part of it and leave it as |
@jayair Yes, that's it, I didn't realise that the dev script needed to be |
@jayair Note that I'm getting a slew of what looks like environment output when it runs the dev command: These are my npm scripts:
I run in Jetbrains PHPStorm IDE and the new multiplexor seems to interfere with the 'run' window in which the process is launched. I can highlight text but not Cmd-C copy it, and I can't scroll the output produced by the nextjs process, as the mouse/trackpad scroll in the window is being highjacked by the multiplexor (if that's what you call it) nav items on the left, so it just flips between SST, Functions and Dashboard (yes, the name of my project). The up/down arrow keys do the same thing. I can resize the panel in which the process is running which reveals more but its not ideal if I have console output server side for debug purposes. Of course that might be a Jetbrains shortcoming, but maybe there is an alternative implementation for this new mode that would play more nicely? I don't really want to have a completely separate terminal window for the sst/next server as the IDE has good 'run'/'restart' keyboard shortcuts that make starting/restarting the server as necessary very straightforward. Also the run settings can be saved as part of the project (and yes, I appreciate I could just use npm scripts to do similar). Ctrl-U does scroll the output backwards, but Ctrl-D interferes with an IDE shortcut (debug the process) |
The environment output I noticed as well. Might be a bug in a recent release. We might have to play around with Jetbrains more for the multiplexer. |
If there is a
sst dev
instance running, then attempting to invoke another for a different project gives an errorIt's not clear why there would be this restriction. I certainly appreciate that concurrent instances for the same project wouldn't make sense.
The text was updated successfully, but these errors were encountered: