You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When asking questions or reporting issues, it is very helpful if you can include:
PS D:\Repos> aider
Aider v0.22.0
Model: gpt-4-0613 using diff edit format
Git repo: none
Repo-map: using 1024 tokens
Use /help to see in-chat commands, run with --help to see cmd line args
This change will make the ScriptOptions use the assemblies loaded in the same AssemblyLoadContext as the plugin for
resolving types, which should include the TestPlugin assembly loaded by the plugin.
TestPlugin\Plugin.cs does not contain the exact chunk of SEARCH lines you specified.
Try again.
DO NOT skip blank lines, comments, docstrings, etc!
The SEARCH block needs to be EXACTLY the same as the lines in TestPlugin\Plugin.cs with nothing missing!
TestPlugin\Plugin.cs does not contain these 6 exact lines in a row:
Are those lines in your file? Or are there similar lines, but not quite exactly the same? If so, can you share the actual chunk of the file that it seems to be trying to edit?
You could also try switching to GPT-4 Turbo and see if it works better with your code.
When asking questions or reporting issues, it is very helpful if you can include:
PS D:\Repos> aider
Aider v0.22.0
Model: gpt-4-0613 using diff edit format
Git repo: none
Repo-map: using 1024 tokens
Use /help to see in-chat commands, run with --help to see cmd line args
I keep getting these errors:
<<<<<<< SEARCH
var options = ScriptOptions.Default
.WithImports("System")
.WithMetadataResolver(ScriptMetadataResolver.Default
.WithBaseDirectory(AppDomain.CurrentDomain.BaseDirectory)
.WithSearchPaths(AssemblyLoadContext.Default.Assemblies
.Select(a => Path.GetDirectoryName(a.Location))));
var loadContext = AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly());
loadContext.Resolving += (context, name) =>
{
return context.Assemblies.FirstOrDefault(a => a.FullName == name.FullName);
};
var options = ScriptOptions.Default
.WithImports("System")
.WithMetadataResolver(ScriptMetadataResolver.Default
.WithBaseDirectory(AppDomain.CurrentDomain.BaseDirectory)
.WithSearchPaths(loadContext.Assemblies
.Select(a => Path.GetDirectoryName(a.Location))));
This change will make the ScriptOptions use the assemblies loaded in the same AssemblyLoadContext as the plugin for
resolving types, which should include the TestPlugin assembly loaded by the plugin.
Committing TestPlugin\Plugin.cs before applying edits.
Commit 2e28b2c Add System.Runtime.Loader to script metadata resolver search paths.
Malformed response #4, aborting.
InvalidEditBlock: edit failed!
TestPlugin\Plugin.cs does not contain the exact chunk of SEARCH lines you specified.
Try again.
DO NOT skip blank lines, comments, docstrings, etc!
The SEARCH block needs to be EXACTLY the same as the lines in TestPlugin\Plugin.cs with nothing missing!
TestPlugin\Plugin.cs does not contain these 6 exact lines in a row:
The text was updated successfully, but these errors were encountered: