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

Debugging editorconfig #2017

Closed
ffMathy opened this issue Nov 18, 2020 · 6 comments
Closed

Debugging editorconfig #2017

ffMathy opened this issue Nov 18, 2020 · 6 comments

Comments

@ffMathy
Copy link

ffMathy commented Nov 18, 2020

My Editorconfig file is not working.

How can I debug Omnisharp?

There's nothing in the logs showing what path it's looking for etc.

@filipw
Copy link
Member

filipw commented Nov 18, 2020

I think we would need more than "My Editorconfig file is not working" to help out 🙂
are you able to provide a repro project? also, please capture the log with "omnisharp.loggingLevel":"debug"

Finally, I will move it to the server repo as it's not extension specific.

@filipw filipw transferred this issue from dotnet/vscode-csharp Nov 18, 2020
@ffMathy
Copy link
Author

ffMathy commented Nov 20, 2020

According to the logs, this was the config that was loaded after I set the log level:

{"RoslynExtensionsOptions":{"EnableDecompilationSupport":false,"EnableAnalyzersSupport":true,"EnableImportCompletion":false,"DocumentAnalysisTimeoutMs":10000,"LocationPaths":null},"FormattingOptions":{"OrganizeImports":false,"EnableEditorConfigSupport":true,"NewLine":"\n","UseTabs":false,"TabSize":4,"IndentationSize":4,"SpacingAfterMethodDeclarationName":false,"SpaceWithinMethodDeclarationParenthesis":false,"SpaceBetweenEmptyMethodDeclarationParentheses":false,"SpaceAfterMethodCallName":false,"SpaceWithinMethodCallParentheses":false,"SpaceBetweenEmptyMethodCallParentheses":false,"SpaceAfterControlFlowStatementKeyword":true,"SpaceWithinExpressionParentheses":false,"SpaceWithinCastParentheses":false,"SpaceWithinOtherParentheses":false,"SpaceAfterCast":false,"SpacesIgnoreAroundVariableDeclaration":false,"SpaceBeforeOpenSquareBracket":false,"SpaceBetweenEmptySquareBrackets":false,"SpaceWithinSquareBrackets":false,"SpaceAfterColonInBaseTypeDeclaration":true,"SpaceAfterComma":true,"SpaceAfterDot":false,"SpaceAfterSemicolonsInForStatement":true,"SpaceBeforeColonInBaseTypeDeclaration":true,"SpaceBeforeComma":false,"SpaceBeforeDot":false,"SpaceBeforeSemicolonsInForStatement":false,"SpacingAroundBinaryOperator":"single","IndentBraces":false,"IndentBlock":true,"IndentSwitchSection":true,"IndentSwitchCaseSection":true,"IndentSwitchCaseSectionWhenBlock":true,"LabelPositioning":"oneLess","WrappingPreserveSingleLine":true,"WrappingKeepStatementsOnSingleLine":true,"NewLinesForBracesInTypes":true,"NewLinesForBracesInMethods":true,"NewLinesForBracesInProperties":true,"NewLinesForBracesInAccessors":true,"NewLinesForBracesInAnonymousMethods":true,"NewLinesForBracesInControlBlocks":true,"NewLinesForBracesInAnonymousTypes":true,"NewLinesForBracesInObjectCollectionArrayInitializers":true,"NewLinesForBracesInLambdaExpressionBody":true,"NewLineForElse":true,"NewLineForCatch":true,"NewLineForFinally":true,"NewLineForMembersInObjectInit":true,"NewLineForMembersInAnonymousTypes":true,"NewLineForClausesInQuery":true},"FileOptions":{"SystemExcludeSearchPatterns":["**/node_modules/**/*","**/bin/**/*","**/obj/**/*","**/.git/**/*","**/.git","**/.svn","**/.hg","**/CVS","**/.DS_Store"],"ExcludeSearchPatterns":[]},"RenameOptions":{"RenameOverloads":false,"RenameInStrings":false,"RenameInComments":false},"ImplementTypeOptions":{"InsertionBehavior":null,"PropertyGenerationBehavior":null},"Plugins":{"LocationPaths":null}}

However, even with debug log level, I can't see anything related to why the editorconfig is not loading. I have no idea. I tried moving the file around without any luck.

I'm glad this is being taken seriously - it seems there are many others having the same issues.

@ffMathy
Copy link
Author

ffMathy commented Nov 20, 2020

I can't provide a repro project, but in my opinion, that shouldn't be necessary either if there was a sufficient amount of logging present that would tell where it was searching for the files, or if some sort of error occured.

@filipw
Copy link
Member

filipw commented Nov 20, 2020

I can't provide a repro project, but in my opinion, that shouldn't be necessary either if there was a sufficient amount of logging present that would tell where it was searching for the files, or if some sort of error occured.

then you will have to wait for a next release, maybe it will help 🙂

@ffMathy
Copy link
Author

ffMathy commented Nov 20, 2020

That's fine with me - and thanks once again for looking into this.

There is no rush from my side! :)

@ffMathy
Copy link
Author

ffMathy commented Dec 15, 2020

This problem is now solved in the latest version! Thank you!

@ffMathy ffMathy closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants