You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that your paths are in a different format (you have a Windows path in your settings, but not in the which output) - are you using WSL or something?
Could you also try clicking the trashcan icon against the affected terminal and re-create it to see if that makes a difference? I think VS Code tries to reuse terminal sessions but I don't know what it persists for them.
Solution is disable addSdkToTerminalPath first then disabled Flutter / Dart plugin then enable again.
hmm, that's odd. That sounds like it could be a VS Code issue - I don't think it's intended to require that.
Would you mind filing an issue describing this at https://github.com/microsoft/vscode and CCing me so we can see if it's something they can fix (or, if it's intended, it can be clarified how we should handle this)?
Turns out I can repro this now. I'm not sure what I did wrong earlier - although I note that after restarting VS Code I do need to click the trashcan to delete the terminal before any PATH change takes effect (so there's definitely some additional caching going on beyond this).
Activity
DanTup commentedon May 16, 2023
I don't seem to be able to reproduce this. The code in the extension is definitely wrapped with a check for this setting:
Dart-Code/src/extension/extension.ts
Lines 197 to 203 in 557630c
I notice that your paths are in a different format (you have a Windows path in your settings, but not in the
whichoutput) - are you using WSL or something?Could you also try clicking the trashcan icon against the affected terminal and re-create it to see if that makes a difference? I think VS Code tries to reuse terminal sessions but I don't know what it persists for them.
quyenvsp commentedon May 16, 2023
Hi,
Thank so much for your quick response. I found a solution but these are more info maybe helpful other.
I current using windows 11 + fvm (with alias flutter = fvm flutter) + git bash for windows.
It is git bash, but I used Three dot > Clear terminal for clear data so it look like that.
Yeah I tried on two computer but same error.
Solution is disable
addSdkToTerminalPathfirst then disabled Flutter / Dart plugin then enable again. It working now but I will keep tracking it more.DanTup commentedon May 16, 2023
hmm, that's odd. That sounds like it could be a VS Code issue - I don't think it's intended to require that.Would you mind filing an issue describing this at https://github.com/microsoft/vscode and CCing me so we can see if it's something they can fix (or, if it's intended, it can be clarified how we should handle this)?Thanks!
DanTup commentedon May 16, 2023
Oh, apparently this is intended - there's a "persistent" flag on it. I will fix this (and figure out why I'm not seeing the same behaviour).
DanTup commentedon May 16, 2023
Turns out I can repro this now. I'm not sure what I did wrong earlier - although I note that after restarting VS Code I do need to click the trashcan to delete the terminal before any
PATHchange takes effect (so there's definitely some additional caching going on beyond this).DanTup commentedon May 16, 2023
Fixed by d011b9a.