Skip to content

Weird text appears when format on save is used #3809

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

Closed
TheGreatRambler opened this issue Jun 20, 2019 · 3 comments
Closed

Weird text appears when format on save is used #3809

TheGreatRambler opened this issue Jun 20, 2019 · 3 comments

Comments

@TheGreatRambler
Copy link
Contributor

cpp file

{
	"configurations": [{
		"name": "Win32",
		"includePath": [
			"${workspaceFolder}/include/**",
			"${workspaceFolder}/**"
		],
		"defines": [
			"_DEBUG",
			"UNICODE",
			"_UNICODE"
		],
		"compilerPath": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin\\gcc.exe",
		"cStandard": "c11",
		"cppStandard": "c++11",
		"intelliSenseMode": "gcc-x64"
	}],
	"version": 4
}

ajshort.include-autocomplete
ban.spellright
brunnerh.file-properties-viewer
CoenraadS.bracket-pair-colorize
dbaeumer.vscode-eslint
formulahendry.code-runner
Gruntfuggly.todo-tree
HookyQR.beautify
ms-python.python
ms-vscode.cpptools
msjsdiag.debugger-for-chrome
PhilHindle.errorlens
redhat.java
shakram02.bash-beautify
shinnn.stylelint
sleistner.vscode-fileutils
twxs.cmake
vscode-icons-team.vscode-icons
xaver.clang-format
yzhang.markdown-all-in-one
ziyasal.vscode-open-in-github

I had clang format and removed it to see if anything could be fixed, but nothing helped.

I have a multi root workspace (a root folder and the other root is a child folder) if that helps.

My issue is similar to this person's issue. #3796

Here is a screenshot:

search

@TheGreatRambler
Copy link
Contributor Author

Here is my clang format file

---
BasedOnStyle: WebKit
AllowShortBlocksOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
BreakBeforeBraces: Attach
ColumnLimit: '500'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
IndentWrappedFunctionNames: 'true'
MaxEmptyLinesToKeep: '2'
NamespaceIndentation: All
PointerAlignment: Left
SpaceBeforeParens: Never
SpaceInEmptyParentheses: 'false'
SpacesInAngles: 'false'
Standard: Cpp11
TabWidth: '4'
UseTab: Always
IndentCaseLabels: 'true'
SpaceAfterCStyleCast: 'true'
SpaceBeforeParens: ControlStatements
...

@sean-mcmanus
Copy link
Contributor

I think this is a duplicate of #1073 (and others?) .

@TheGreatRambler
Copy link
Contributor Author

I do, in fact, have a multi-root workspace organized that way. WOW! Reducing the roots of my workspace to 1 have actually fixed many errors! Previously, my intellisense wouldn't update and I would have errors stick around for no apparent reason, but that is now fixed. MY header detection works now! I think I will submit a pull request to add a warning against multi-root workspaces on the readme. Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants