VSCode Synchronize Error With Output Content in the file is not valid - visual-studio-code

This is the first time for me to sync the VSCode using the GitHub account. But I experienced an error such as these when I try to sync (after login):
[2022-03-07 17:01:16.719] [settingssync] [info] Using settings sync service https://vscode-sync.trafficmanager.net/
[2022-03-07 17:01:16.719] [settingssync] [info] Auto Sync is disabled.
[2022-03-07 17:04:41.983] [settingssync] [info] Did reset the local sync state.
[2022-03-07 17:04:43.688] [settingssync] [error] LocalInvalidContent (UserDataSyncError) syncResource:keybindings operationId:unknown: Unable to sync keybindings because the content in the file is not valid. Please open the file and correct it.
at y.generateSyncPreview (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:91833)
at async y.doGenerateSyncResourcePreview (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:76:56502)
[2022-03-07 17:04:43.693] [settingssync] [info] Settings: Stopped synchronizing settings.
[2022-03-07 17:04:43.697] [settingssync] [info] Did reset the local sync state.
Do you have any idea for me what to do? Because the explanation is unclear. I have tried to click while holding CMD on the path and create a new file but it is not working. Thank you

In my case, was a missed ] in ~/.config/Code/User/keybindings.json. I was noticed all the json files in this folder must be reviewed to be correct jsons.
Before:
After:

You must have some syntactial error in your settings.json file. If dont find any error or dont understand JSON file, please go to https://jsonlint.com/ & peste your settings files json text & validate.

Related

Unity WebGL on GitHub Page: [libil2cpp] ERROR: Could not open Il2CppData/Metadata/global-metadata.dat

I exported WebGL in Unity.
It's works on Itch.io, but it cannot run on Github Page and repit is the same probelm.
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
PopTeacherComplete.loader.js:1 [UnityCache] 'https://rogewood.github.io/PopTeacher/Build/PopTeacherComplete.data' successfully downloaded and stored in the indexedDB cache
PopTeacherComplete.framework.js:2
no boot config - using default values
[libil2cpp] ERROR: Could not open Il2CppData/Metadata/global-metadata.dat
PopTeacherComplete.framework.js:2 RuntimeInitializeOnLoadManagerInitializer: Failed reading 'RuntimeInitializeOnLoads.json'
PopTeacherComplete.framework.js:2 RuntimeInitializeOnLoadManagerInitializer: Failed reading 'ScriptingAssemblies.json'
PopTeacherComplete.framework.js:2 No GlobalGameManagers file was found at , quitting player!
PopTeacherComplete.framework.js:2 Failed to initialize player
I think the problem is i use git lfs or not support libil2cpp, but I don't know how to solve it.

"push" takes very long time and never seems to end when I push some changes to Github remote repo from VSCode local repo

I'm coding something in python and tried to push them but it took very very long time and never seems to end, so I raised this issue.
What I succeeded are below;
Created a new remote repo in Github
Cloned the repo into local repo by VSCode
Created a file and saved it in local env
Staged all the changes and pushed them into local repo by VSCode
Then, I pushed them into remote repo by pressing button below;
This button which shows 0 pull and 4 pushes
Spec and logs that I found are below;
Windows Specifications
Edition Windows 10 Home
Version 20H2
OS build 19042.1052
Experience Windows Feature Experience Pack 120.2212.2020.0
Output (Python)
Python interpreter path: ~\anaconda3\python.exe
Error 2021-07-06 21:34:56: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): Unable to read file 'c:\Users\81906\Documents\atcoder.vscode\settings.json' (Error: Unable to resolve non-existing file 'c:\Users\81906\Documents\atcoder.vscode\settings.json')
at _handleError (c:\Users\81906\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:155535)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async y.readText (c:\Users\81906.vscode\extensions\ms-python.python-2021.6.944021595\out\client\extension.js:9:343940)
at async p.doesFileNeedToBeFixed (c:\Users\81906.vscode\extensions\ms-python.python-2021.6.944021595\out\client\extension.js:59:581700)
at async c:\Users\81906.vscode\extensions\ms-python.python-2021.6.944021595\out\client\extension.js:59:580827
at async Promise.all (index 1)
at async p.getFilesToBeFixed (c:\Users\81906.vscode\extensions\ms-python.python-2021.6.944021595\out\client\extension.js:59:580773)
at async p.updateTestSettings (c:\Users\81906.vscode\extensions\ms-python.python-2021.6.944021595\out\client\extension.js:59:580400)] {
code: 'FileNotFound'
}
Output (Git)
git remote --verbose
Warning: Failed to watch ref 'c:\Users\81906\Documents\atcoder.git\refs\remotes\origin\main', is most likely packed.
Output (Log (Setting Sync))
[2021-07-06 21:34:54.005] [settingssync] [info] Using settings sync service https://vscode-sync.trafficmanager.net/
[2021-07-06 21:34:54.005] [settingssync] [info] Auto Sync is disabled.

Determining reason that chrome enterprise-deployed extension will not load

I have a locally sourced enterprise-installed extension which is installed via the ExtensionInstallForcelist policy. The policy is visible on the chrome://policy page with a status of OK. The URL to the update manifest xml file is of the form "file:///c:/program%20files/xxx/updates.xml" The .crx file is also located in the same folder "file:///c:/program%20files/xxx/myextension.crx" I can successfully browse to both of those files. Yet the extension does not load.
Is there any way to determine the reason that chrome is not loading the extension? I do not see any indication of error. I have opened up the inspect developer window on the extension page, but see no console messages or exceptions. Is there a log file I could look at, or some other means of determining why the extension is not loading?
UPDATE: Turned on logging and see the following:
[3752:3156:0327/171545:WARNING:extension_error_reporter.cc(79)] Extension error: Expected ID "kfegeekbdleinhdfillngiggbjiflghe", but ID was "ijdpkgandgfnpbammiehlfpfpboclodn".
[3752:3440:0327/172253:WARNING:extension_protocols.cc(422)] Failed to GetPathForExtension: kfegeekbdleinhdfillngiggbjiflghe
[3752:3440:0327/172253:WARNING:url_request_job_manager.cc(89)] Failed to map: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/
[3752:3440:0327/172253:VERBOSE1:resource_loader.cc(364)] OnResponseStarted: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/
[3752:3440:0327/172253:VERBOSE1:resource_loader.cc(778)] ResponseCompleted: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/
[3752:3156:0327/172253:VERBOSE1:navigator_impl.cc(298)] Failed Provisional Load: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/, error_code: -2, error_description: Unknown error., showing_repost_interstitial: 0, frame_id: 1

Documentation Generation is disabled

I did all that is specified in the tutorial - Doxygen Plugin.
Here is the sonarqube-4.5.1/conf/sonar.propeties file doxygen entries:
# Doxygen
sonar.doxygen.generateDocumentation=enable
sonar.doxygen.deploymentPath=D:\Downloads\sonarqube-4.5.1\web
sonar.doxygen.deploymentUrl=http://localhost:9000/sonar/documentation
The output of the sonarqube runner:
16:07:16.265 INFO - ANALYSIS SUCCESSFUL
16:07:16.266 DEBUG - Post-jobs : org.sonar.plugins.doxygen.DoxygenPostJob#28bda649
16:07:16.266 INFO - Executing post-job class org.sonar.plugins.doxygen.DoxygenPostJob
16:07:16.271 INFO - === SUPPRESS PREVIOUS GENERATION ===
16:07:16.395 INFO - === DOXYGEN EXECUTION ===
16:07:16.396 INFO - ### Generating configuration ###
16:07:16.427 INFO - ### Generating documentation ###
Also, in the specified \web folder there is a documentation folder which seems to contain the correct doxygen documentation output.
Yet I keep getting this Documentation Generation is disabled. message in the SonarQube web interface:
UPDATE
This is what my sonar-project.properties file contains now ― using a unix-style path:
#Doxygen
sonar.doxygen.generateDocumentation=enable
sonar.doxygen.deploymentPath=/Downloads/sonarqube-4.5.1/web
sonar.doxygen.deploymentUrl=http://localhost:9000/sonar/documentation
The output remains the same, same issue.
What do I need to do in order to see the documentation in the web server interface?
This seems to be a server linkage problem, because the documentation is being generated correctly, at this location: /Downloads/sonarqube-4.5.1/web/documentation.
I have also found this content:
core,true,sonar-core-plugin-4.5.1.jar|9289fc1067c31372c0b020aa01163087
emailnotifications,true,sonar-email-notifications-plugin-4.5.1.jar|bb35818e4a655a3ba2cff2afc65a296b
findbugs,false,sonar-findbugs-plugin-2.4.jar|bb0bf263ef1e0d56f569878732060cc9
java,false,sonar-java-plugin-2.4.jar|a105d018165ddeb2c0f5074100768660
cpd,true,sonar-cpd-plugin-4.5.1.jar|e11ff5066c9e2308036838510d87a6fe
dbcleaner,true,sonar-dbcleaner-plugin-4.5.1.jar|a444b3b4571791e1cde146ffa5132ee4
design,true,sonar-design-plugin-4.5.1.jar|0c6476994a44904307cfa8b8a08bbddd
doxygen,false,sonar-doxygen-plugin-0.1.jar|d86e1ab81c3ac34e6b31aa1da28d7f72
l10nen,true,sonar-l10n-en-plugin-4.5.1.jar|c21d53f67901cf6df3da1b4dd48a441b
in sonarqube-4.5.1\web\deploy\plugins\index.txt.
It looks like doxygen has a false associated with it. If I try to edit it (to true) and restart the server nothing changes. The file is overwritten at by the sonar-runner.
sonar.doxygen.generateDocumentation is a project property, not a server property. You have to set it in your "sonar-project.properties" file if you run your analysis with the SonarQube Runner or in your pom.xml file if you run the analysis with Maven.
Here is how I solved this:
Stopped the sonar-qube server.
Replaced the old sonar-doxygen-plugin-0.1.jar, from /Downloads/sonarqube-4.5.1/extensions/plugins, with the updated doxygen plugin from here https://github.com/SonarCommunity/sonar-doxygen/releases/download/1.0/sonar-doxygen-plugin-1.0-SNAPSHOT.jar.
Commented out the old configuration entries for doxygen from the project sonar-project.properties file. And replaced them with the follwoing entries:
sonar.doxygen.url=http://localhost:8000/
sonar.doxygen.enable=true
Used a simple python script to post the documentation html on that server (http://localhost:8000/).
Restarted the sonar-qube server.
Run the sonar-runner.bat again.
The documentation is in its place now.

FATAL org.apache.hadoop.conf.Configuration - error parsing conf file: org.xml.sax.SAXParseException

I'm trying to run pig locally, installed using homebrew, to test a script. However, I get the following error when I attempt to run a simple dump from the interactive prompt pig -x local:
2012-07-16 23:20:40,447 [Thread-7] INFO org.apache.pig.backend.hadoop.executionengine.util.MapRedUtil - Total input paths (combined) to process : 1
[Fatal Error] :63:85: Character reference "&#2" is an invalid XML character.
2012-07-16 23:20:40,688 [Thread-7] FATAL org.apache.hadoop.conf.Configuration - error parsing conf file: org.xml.sax.SAXParseException: Character reference "&#2" is an invalid XML character.
The same load/dump works fine on Elastic MapReduce.
I can't find any XML config files, and I've tried with both version 0.9.2 and 0.10.0
What am I missing?
Edit: Just checked a direct download (vs. homebrew) and it doesn't seem to work either
You should check that your Hadoop configuration files have correct configuration data.
Have a look in your hadoop/conf directory.
Have a look inside:
hdfs-site.xml
mapred-site.xml
core-site.xml
Finally worked out what the problem was. I ended up having to use dtruss -p on the pig/java process. This revealed a temporary directory and dynamically generated xml files. Once the temporary directory was discovered, it all fell quickly into place.
It was picking up the proxy excludes from my network connections, which had, as far as I can tell, &#2 (http://www.fileformat.info/info/unicode/char/02/index.htm) embedded in it. How this invalid value came to be in my network preferences in the first place, I haven't the faintest clue.
The value was then being pulled into dynamically generated files, for example /tmp/hadoop-vertis/mapred/staging/vertis-1005847898/.staging/job_local_0001/job.xml.
The offending lines:
<property><name>ftp.nonProxyHosts</name><value>localhost|*.localhost|127.0.0.1|h|*.h</value></property>
<property><name>socksNonProxyHosts</name><value>localhost|*.localhost|127.0.0.1|h|*.h</value></property>
<property><name>http.nonProxyHosts</name><value>localhost|*.localhost|127.0.0.1|h|*.h</value></property>