-
Notifications
You must be signed in to change notification settings - Fork 18
Description
When I assign a shortcut to the "recompile all files" command (ProjectandSolutionContextMenus.Project.WebCompiler.Recompileallfiles), it does not work. Instead of looking at all the compilerconfig.json files in my solution, Web Compiler will try to parse the currently opened file as a json file, and treat it as a compilerconfig.json file. This will (typically) result in showing this error message (if it isn't a json file): "There is an error in the compilerconfig.json file. This could be due to a change in the format after this extension was updated."
The output window will show something like:
8-8-2025 15:53:24: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: @. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at WebCompiler.ConfigHandler.GetConfigs(String fileName) in W:\Git\Light Speed Solutions\WebCompiler\src\WebCompiler\Config\ConfigHandler.cs:line 105
at WebCompiler.ConfigFileProcessor.Process(String configFile, IEnumerable`1 configs, Boolean force) in W:\Git\Light Speed Solutions\WebCompiler\src\WebCompiler\Config\ConfigFileProcessor.cs:line 35
at WebCompilerVsix.CompilerService.<>c__DisplayClass6_0.b__0(Object o) in W:\Git\Light Speed Solutions\WebCompiler\src\WebCompilerVsix\CompilerService.cs:line 60
Note: if the currently opened file is a compilerconfig.json file, it will try to handle this file and do so correctly.