The error Parsing error: Cannot read file '.../tsconfig.json'.eslint
shows in all .ts
files in the src
folder including index.ts
.
I have no idea how to set up configs. The issue just shows a red line and makes the file red. However, everything compiles and run fine. The entire Node project was created using the firebase CLI.
tsconfig.json
file:
{
"compilerOptions": {
"module": "commonjs",
"noImplicitReturns": true,
"noUnusedLocals": true,
"outDir": "lib",
"sourceMap": true,
"strict": true,
"target": "es2017"
},
"compileOnSave": true,
"include": [
"src"
]
}
.eslintrc.js
file:
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
},
plugins: [
"@typescript-eslint",
"import",
],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/triple-slash-reference": "error",
"@typescript-eslint/unified-signatures": "warn",
"comma-dangle": "warn",
"constructor-super": "error",
eqeqeq: ["warn", "always"],
"import/no-deprecated": "warn",
"import/no-extraneous-dependencies": "error",
"import/no-unassigned-import": "warn",
"no-cond-assign": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": [
"error",
{
allowEmptyCatch: true,
},
],
"no-invalid-this": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-redeclare": "error",
"no-sequences": "error",
"no-shadow": [
"error",
{
hoist: "all",
},
],
"no-throw-literal": "error",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-var": "warn",
"no-void": "error",
"prefer-const": "warn",
},
settings: {
jsdoc: {
tagNamePreference: {
returns: "return",
},
},
},
};
I had tried restarting VScode, clearing the cache, and all to no avail. I am guessing I need to change some of the paths but I am not very good at changing the config files so I don’t want to accidentally break the entire project.
Hello,
My disk seems fine. I am going to check the disk, as soon as possible, and inform you.
There are no null bytes in the log files. Below there are the last lines of synctrayzor.log.
«Referência de objeto não definida para uma instância de um objeto.» means «Object reference undefined for an object instance» in portuguese.
Greetings,
Márcio
2018-07-23 08:22:53.3866 #9576 [Debug] SyncTrayzor.Services.Config.ConfigurationProvider: Found existing configuration at C:UsersMárcioAppDataRoamingSyncTrayzorconfig.xml
2018-07-23 08:22:54.6678 #9576 [Error] SyncTrayzor.Bootstrapper: An unhandled exception occurred SyncTrayzor.Services.Config.BadConfigurationException Error deserializing configuration file at C:UsersMárcioAppDataRoamingSyncTrayzorconfig.xml SyncTrayzor.Services.Config.Configuration LoadFromDisk(SyncTrayzor.Services.Config.Configuration, Boolean ByRef) em SyncTrayzor.Services.Config.ConfigurationProvider.LoadFromDisk(Configuration defaultConfiguration, Boolean& hadToCreate) na C:projectssynctrayzorsrcSyncTrayzorServicesConfigConfigurationProvider.cs:linha 186
em SyncTrayzor.Services.Config.ConfigurationProvider.Initialize(Configuration defaultConfiguration) na C:projectssynctrayzorsrcSyncTrayzorServicesConfigConfigurationProvider.cs:linha 99
em SyncTrayzor.Bootstrapper.Configure() na C:projectssynctrayzorsrcSyncTrayzorBootstrapper.cs:linha 144
em Stylet.BootstrapperBase.Start(String[] args) na c:projectsstyletStyletBootstrapperBase.cs:linha 81
em System.Windows.Application.OnStartup(StartupEventArgs e)
em System.Windows.Application.<.ctor>b__1_0(Object unused)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) SyncTrayzor.Services.Config.BadConfigurationException: Error deserializing configuration file at C:UsersMárcioAppDataRoamingSyncTrayzorconfig.xml ---> System.Xml.XmlException: '.', valor hexadecimal 0x00, é um caractere inválido. Linha 1, posição 1.
em System.Xml.XmlTextReaderImpl.Throw(Exception e)
em System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
em System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
em System.Xml.XmlTextReaderImpl.ParseDocumentContent()
em System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
em System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
em SyncTrayzor.Services.Config.ConfigurationProvider.LoadFromDisk(Configuration defaultConfiguration, Boolean& hadToCreate) na C:projectssynctrayzorsrcSyncTrayzorServicesConfigConfigurationProvider.cs:linha 166
--- Fim do rastreamento de pilha de exceções internas ---
em SyncTrayzor.Services.Config.ConfigurationProvider.LoadFromDisk(Configuration defaultConfiguration, Boolean& hadToCreate) na C:projectssynctrayzorsrcSyncTrayzorServicesConfigConfigurationProvider.cs:linha 186
em SyncTrayzor.Services.Config.ConfigurationProvider.Initialize(Configuration defaultConfiguration) na C:projectssynctrayzorsrcSyncTrayzorServicesConfigConfigurationProvider.cs:linha 99
em SyncTrayzor.Bootstrapper.Configure() na C:projectssynctrayzorsrcSyncTrayzorBootstrapper.cs:linha 144
em Stylet.BootstrapperBase.Start(String[] args) na c:projectsstyletStyletBootstrapperBase.cs:linha 81
em System.Windows.Application.OnStartup(StartupEventArgs e)
em System.Windows.Application.<.ctor>b__1_0(Object unused)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
XmlException '.', valor hexadecimal 0x00, é um caractere inválido. Linha 1, posição 1. Void Throw(System.Exception)
2018-07-23 08:25:25.9183 #9576 [Debug] SyncTrayzor.Services.AutostartProvider: Have read/write access to the registry
2018-07-23 08:25:33.0118 #9576 [Error] SyncTrayzor.Bootstrapper: An unhandled exception occurred System.NullReferenceException Referência de objeto não definida para uma instância de um objeto. Void Dispose() em SyncTrayzor.Services.ApplicationWindowState.Dispose() na C:projectssynctrayzorsrcSyncTrayzorServicesApplicationWindowState.cs:linha 67
em StyletIoC.Internal.Registrations.SingletonRegistration.<.ctor>b__0(Object o, EventArgs e) na c:projectsstyletStyletStyletIoCInternalRegistrationsSingletonRegistration.cs:linha 25
em System.EventHandler.Invoke(Object sender, EventArgs e)
em StyletIoC.Internal.Container.Dispose() na c:projectsstyletStyletStyletIoCInternalContainer.cs:linha 548
em Stylet.Bootstrapper`1.Dispose() na c:projectsstyletStyletBootstrapper.cs:linha 101
em System.Windows.Application.OnExit(ExitEventArgs e)
em System.Windows.Application.DoShutdown()
em System.Windows.Application.ShutdownImpl()
em System.Windows.Application.ShutdownCallback(Object arg)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
em SyncTrayzor.Services.ApplicationWindowState.Dispose() na C:projectssynctrayzorsrcSyncTrayzorServicesApplicationWindowState.cs:linha 67
em StyletIoC.Internal.Registrations.SingletonRegistration.<.ctor>b__0(Object o, EventArgs e) na c:projectsstyletStyletStyletIoCInternalRegistrationsSingletonRegistration.cs:linha 25
em System.EventHandler.Invoke(Object sender, EventArgs e)
em StyletIoC.Internal.Container.Dispose() na c:projectsstyletStyletStyletIoCInternalContainer.cs:linha 548
em Stylet.Bootstrapper`1.Dispose() na c:projectsstyletStyletBootstrapper.cs:linha 101
em System.Windows.Application.OnExit(ExitEventArgs e)
em System.Windows.Application.DoShutdown()
em System.Windows.Application.ShutdownImpl()
em System.Windows.Application.ShutdownCallback(Object arg)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2018-07-23 08:25:33.4493 #9576 [Error] SyncTrayzor.Bootstrapper: An unhandled AppDomain exception occurred. Terminating: True System.NullReferenceException Referência de objeto não definida para uma instância de um objeto. Void Dispose() em SyncTrayzor.Services.ApplicationWindowState.Dispose() na C:projectssynctrayzorsrcSyncTrayzorServicesApplicationWindowState.cs:linha 67
em StyletIoC.Internal.Registrations.SingletonRegistration.<.ctor>b__0(Object o, EventArgs e) na c:projectsstyletStyletStyletIoCInternalRegistrationsSingletonRegistration.cs:linha 25
em System.EventHandler.Invoke(Object sender, EventArgs e)
em StyletIoC.Internal.Container.Dispose() na c:projectsstyletStyletStyletIoCInternalContainer.cs:linha 548
em Stylet.Bootstrapper`1.Dispose() na c:projectsstyletStyletBootstrapper.cs:linha 101
em System.Windows.Application.OnExit(ExitEventArgs e)
em System.Windows.Application.DoShutdown()
em System.Windows.Application.ShutdownImpl()
em System.Windows.Application.ShutdownCallback(Object arg)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
em System.Windows.Threading.DispatcherOperation.InvokeImpl()
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
em System.Windows.Threading.DispatcherOperation.Invoke()
em System.Windows.Threading.Dispatcher.ProcessQueue()
em System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
em System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
em MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
em MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
em System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
em System.Windows.Application.RunDispatcher(Object ignore)
em System.Windows.Application.RunInternal(Window window)
em SyncTrayzor.App.Main() System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
em SyncTrayzor.Services.ApplicationWindowState.Dispose() na C:projectssynctrayzorsrcSyncTrayzorServicesApplicationWindowState.cs:linha 67
em StyletIoC.Internal.Registrations.SingletonRegistration.<.ctor>b__0(Object o, EventArgs e) na c:projectsstyletStyletStyletIoCInternalRegistrationsSingletonRegistration.cs:linha 25
em System.EventHandler.Invoke(Object sender, EventArgs e)
em StyletIoC.Internal.Container.Dispose() na c:projectsstyletStyletStyletIoCInternalContainer.cs:linha 548
em Stylet.Bootstrapper`1.Dispose() na c:projectsstyletStyletBootstrapper.cs:linha 101
em System.Windows.Application.OnExit(ExitEventArgs e)
em System.Windows.Application.DoShutdown()
em System.Windows.Application.ShutdownImpl()
em System.Windows.Application.ShutdownCallback(Object arg)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
em System.Windows.Threading.DispatcherOperation.InvokeImpl()
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
em System.Windows.Threading.DispatcherOperation.Invoke()
em System.Windows.Threading.Dispatcher.ProcessQueue()
em System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
em System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
em MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
em MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
em System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
em System.Windows.Application.RunDispatcher(Object ignore)
em System.Windows.Application.RunInternal(Window window)
em SyncTrayzor.App.Main()
- Remove From My Forums
-
Question
-
User2045484789 posted
Hello
I just want to open an html css site with visual studio
I go through the following route:
file>open>website (or shift+alt+o)
and after selecting my theme folder I click on Firefox for a run
When I choose «Add a new web.config file with debugging enabled», the following error occurs:
I’ll be grateful for your help thanks
Answers
-
User753101303 posted
Hi,
What if you open your empty web.config file and copy paste a minimal content such as:
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true"/> </system.web> </configuration>
Does it work or at least do you have now some other message?
My understanding is that for now you have just a web site with HTML/CSS content and no ASP.NET content at all (except now this web.config file).
-
Marked as answer by
Thursday, October 7, 2021 12:00 AM
-
Marked as answer by
-
User1771544211 posted
Hi Payman9272,
Payman9272
I have downloaded it from here:
http://www.free-css.com/free-css-templates/page88/tool-shopYou can check it
Actually when run it, it creates a web.config file in my root folder but with the error I mentioned and when I open web.config there’s nothing in it
I downloaded the project from the url and followed your steps to test this issue on my side. When I choose «Add a new web.config file with debugging enabled», it works fine and add the web.config file with the following content.
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0"/> </system.web> </configuration>
However, you mention that there’s nothing in the web.config. Please check if the current user has write permission to the project’s root folder. If you don’t have enough permission, this issue could occur.
And you can try manually add the web.config file with above content into the project’s root folder and reoload the website in the Visual Studio.
Here is what the project looks like on my side after add the web.config.
Best Regards,
Jean
-
Marked as answer by
Anonymous
Thursday, October 7, 2021 12:00 AM
-
Marked as answer by
-
User2045484789 posted
I had numerous problems with my visual studio
Finally, I repaired it and all of them disappeared!
Thank you for your sincere help
-
Marked as answer by
Anonymous
Thursday, October 7, 2021 12:00 AM
-
Marked as answer by
def parse_desktop_file(self, pkg, root, f, filename):
"""
Check the structure of a desktop file.
"""
cfp = cfgparser.RawConfigParser()
try:
with codecs.open(f, encoding='utf-8') as inputf:
cfp.read_file(inputf, filename)
except cfgparser.Error as e:
self._handle_parser_error(pkg, filename, e)
except UnicodeDecodeError as e:
self.output.add_info('E', pkg, 'non-utf8-desktopfile', filename, f'Unicode error: {e}')
else:
self._has_binary(pkg, root, cfp, filename)
def parse(self, cfg_set, creator, logger, args=None):
cfg = configparser.ConfigParser()
cfg.optionxform = str # do not case convert
# read config
try:
if self.fobj is not None:
cfg.readfp(self.fobj, self.cfg_file)
else:
with open(self.cfg_file) as fh:
cfg.readfp(fh, self.cfg_file)
logger.info("%s: config read", self.cfg_file)
except configparser.Error as e:
logger.error("%s: failed parsing: %s", self.cfg_file, e)
return False
# run through sections
for sect in cfg.sections():
for opt in cfg.options(sect):
in_val = cfg.get(sect, opt)
if not self._parse_sect_opt(cfg_set, creator, logger,
sect, opt, in_val):
return False
return True
parser.read_file(fp)
config['lastrun'] = parser.get(GEN,'lastrun')
config['format'] = parser.get(GEN,'format')
config['duplicates'] = parser.getboolean(GEN,'duplicates')
config[ENG] = {}
for engine_name in ENGINES.keys():
engine_section = {}
error = None
try:
engine_section['state'] = parser.getboolean(engine_name, 'state')
engine_section['tags'] = parser.get(engine_name,'tags')
engine_section['blacklist'] = parser.get(engine_name,'blacklist')
except (configparser.Error) as e:
error = str(e)
except KeyError as e:
error = "section [{}] not found in config file".format(e)
except ValueError as e:
error = 'error processing section [{}]: {}'.format(engine_name, e)
else:
LOG.debug('successfully parsed [%s] section in %s', engine_name, DEFAULT_INI_NAME)
config[ENG][engine_name] = engine_section
if error:
LOG.error(error)
error_str = "problem parsing [{}], this engine will be skipped.".format(engine_name)
return config
log_directory = os.path.join(data_dir, 'steam_tools_ng')
new("logger", "log_directory", log_directory)
log_level = parser.get("logger", "log_level")
if log_level and not log_level.upper() in log_levels:
raise configparser.Error(
_("Please, fix your config file. Accepted values for log_level are:n{}").format(
', '.join(log_levels),
)
)
log_console_level = parser.get("logger", "log_console_level")
if log_console_level and not log_console_level.upper() in log_levels:
raise configparser.Error(
_("Please, fix your config file. Accepted values for log_console_level are:n{}").format(
', '.join(log_levels),
)
)
os.makedirs(log_directory, exist_ok=True)
So I just wanted to change default username password from guest to sth else on rabbitmq
but nothing works for me…
this is my rabbitmq.conf
[
{rabbit,
[
{default_vhost, <<"/">>},
{default_user, <<"itsme">>},
{default_pass, <<"ok">>}
]
}
].
and my docker-compose:
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
hostname: rabbitmq
restart: always
# Also tried env_file and environment variables
# env_file:
# - ./docs/server/stack/dev/configs/rabbitmq/.env
# environment:
# RABBITMQ_DEFAULT_USER: itsme
# RABBITMQ_DEFAULT_PASS: ok
ports:
- 5672:5672
- 15672:15672
volumes:
- ./configs/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
networks:
- rabbitmq_network
and error that i get:
BOOT FAILED
===========
Error during startup: {error,failed_to_parse_configuration_file}
Application rabbitmq_prelaunch exited with reason: {{shutdown,{failed_to_start_child,prelaunch,failed_to_parse_configuration_file}},{rabbit_prelaunch_app,start,[normal,[]]}}
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,failed_to_parse_configuration_file}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
2022-01-03 11:50:58.446386+00:00 [erro] <0.130.0> Error parsing configuration:
2022-01-03 11:50:58.464588+00:00 [erro] <0.130.0> - Syntax error in /etc/rabbitmq/rabbitmq.conf after line 1 column 1, parsing incomplete
2022-01-03 11:50:58.464617+00:00 [erro] <0.130.0> Are these files using the Cuttlefish format?
i also tried to do it as config file:
default_user = itsme
default_pass = ok
stomp.default_user = itsme
stomp.default_pass = ok
mqtt.default_user = itsme
mqtt.default_pass = ok
amqp1_0.default_user = itsme
and errors:
{rabbit_prelaunch_app,start,[normal,[]]}}
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,failed_to_read_advanced_configuration_file}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
2022-01-03 12:20:01.457976+00:00 [erro] <0.130.0> Failed to load advanced configuration file "/etc/rabbitmq/rabbitmq.config": 2: syntax error before: default_pass