Closed dustinbyrne closed 1 month ago
These Ruby instructions are still a lot more complicated than necessary.
appmap.yml is not needed - it’s auto created
imports into the tests code are not needed either
nor is a rake task
All of this information came from context.
appmap.yml
already existed and it confirmed it was correct. I don't mind this too much, it's good validation.appmap:architecture
task we'd written ages ago for the Rails sample app 6th edition that happened to come up in the search.So the rake task came from our doc or from the model's training. We need to control our help chat and turn down the model.
So the rake task came from our doc or from the model's training. We need to control our help chat and turn down the model.
If we prompt it to only explain one step at a time, I think it will calm down. The user can only do one thing at a time anyway.
The rake task came from the repository, not our documentation or training. It matched this file due to the keyword appmap
:
https://gist.github.com/dustinbyrne/9a8881e209cba91d3441b2a7ddef7f70
Here's a response from a less integrated project. Same prompt, zero temperature.
Given that you have AppMap already installed and activated in your Visual Studio Code editor, here's how you can make the most of it:
Viewing AppMap Diagrams:
tmp/appmap
directory (as specified in your appmap.yml
). Here, you will find the .appmap.json
files that represent recorded AppMaps..appmap.json
file. VS Code will display an option to view the sequence diagram. Select the Sequence Diagram
tab to view the interactive diagram.Navigating Code with AppMap:
Generating New AppMaps:
spring-petclinic
), you should run your tests or your application to generate new AppMap data. Given that you have Spring routes, information will be recorded with each interaction.Interactive Analysis:
tmp/appmap
directory in your project..appmap.json
files.Sequence Diagram
tab in the VS Code editor.By fully utilizing these features, you'll gain deeper insights into your application's behavior and architecture, and be able to make informed decisions for maintenance and improvements.
:tada: This PR is included in version @appland/navie-v1.10.0 :tada:
The release is available on:
@appland/navie-v1.10.0
@appland/navie-v1.10.0
Your semantic-release bot :package::rocket:
This PR updates the code editor prompt to inform the LLM that they're talking to a code editor user and not to provide additional instructions as to how to install the extension.
I've added an additional commit that will allow us to easily tweak the temperature via environment variable.
how do i use appmap in this editor
Configuration with
appmap.yml
:Your
appmap.yml
is correctly configured as follows:Enable AppMap in your Test Framework:
Depending on the test framework you're using (RSpec, Minitest, Cucumber), ensure AppMap is properly required.
RSpec:
Add
require 'appmap/rspec'
to yourspec_helper.rb
before loading the environment:Run specs normally:
Minitest:
Add
require 'appmap/minitest'
to yourtest_helper.rb
before loading the environment:Run tests normally:
Cucumber:
Add
require 'appmap/cucumber'
insupport/env.rb
and configure the Around hook insupport/hooks.rb
:Run features normally:
Run AppMap Task:
The provided Rake task
lib/tasks/appmap.rake
can update AppMaps. Run the architecture task to update AppMaps based on your tests:Open and View AppMaps in VS Code:
Ctrl+Shift+P
orCmd+Shift+P
on macOS).AppMap: Show Views
.Label Important Methods:
Optionally, you can add labels to your methods to improve the analysis and visualization:
By following these steps, you should be able to record and visualize your application’s runtime behavior using AppMap within your VS Code environment. If you encounter any issues or need further assistance, feel free to ask!