-
Notifications
You must be signed in to change notification settings - Fork 510
PSScriptAnalyzer not running when no settings file present #2489
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
PSScriptAnalyzer not running when no settings file present #2489
Comments
Looking into this, I've tried to reproduce the issue but I get the default experience. In the logs I have the following entry:
@bergmeister would you be able to provide more information about the repro steps for this issue? |
@rjmholt I tried to clean everything: did a 'git clean -dfx' on the the vs-code and PSES repo and made sure I had the latest changes on master. Using pwsh 7-rc2 (waiting for chocolatey to update to rc3...). Usually I also use the latest master version of pssa, I deleted that one and now use the out of box version of pssa as well. However, PSSA still does not work. OS is Windows 1909. Building using RTM version of code. NPM version is 6.3.14. I just build it the usual way by doing an |
Yeah I'm hoping some info will be in there. Rewriting the analysis service I added extra logging, so we should know what's going on there |
EditorServices.log In there is see (I set the choco git repo as an example root folder because it does not have a settings file):
Tomorrow, I can also try on a 2nd machine or would it be more useful if I give you my local build? Here is the vsix (which I just renamed to .zip so that Github allows me to upload it) |
Interesting. This also contains the line:
|
The repo in question is a 6 month old version of https://github.com/chocolatey/choco |
Is it possible you're starting PSES with a settings file present on the file system, but later removing it? |
I don't think so, I've even tried to re-open a new folder. Since I know how to build PSES, etc myself, I'll have a look at the new code that you guys recently added (which looks exciting and amazing overall btw) and attach the debugger |
I'm almost always on Windows, both in the office and at home. My daily driver in the office is Windows 10.0.19535 (right now, I'm sure I'll get another update in the week). I'm still not quite sure what's going on here, but if you're able to debug it you might be able to find the source of that error log (it's not one of our messages). If it's coming from a caught error, it might be somewhere where we need to include a stack trace and don't currently. |
Ok. Therefore, it escapes me how it works on your environements, you must have either a user or workspace setting defined. Let me know if that info helps, happy to do a screen share session as well in case you still cannot repro. |
I agree with that analysis; thanks for looking into that.
Yeah I'm not sure either. Very explicitly cleared my settings. Testing out a fix now. |
From #2484.
Currently under investigation
The text was updated successfully, but these errors were encountered: