Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint crashed for golang #3527

Open
zzy7517 opened this issue Mar 14, 2025 · 1 comment
Open

lint crashed for golang #3527

zzy7517 opened this issue Mar 14, 2025 · 1 comment
Labels

Comments

@zzy7517
Copy link

zzy7517 commented Mar 14, 2025

Issue

this is what i did

aider --lint app/intl-chat-rest/handler/letter_conversations_handler_test.go --lint-cmd "go: golangci-lint run" --model deepseek --api-key "$API_KEY" -v --yes-always

aider just crashed without any hint

and this is what I got from console

(base) zhongyuanzhang@MacBook-Pro-5 intl-chat % sh test.sh
Config files search order, if no --config:
  - /Users/zhongyuanzhang/1/intl-chat/.aider.conf.yml (exists)
  - /Users/zhongyuanzhang/.aider.conf.yml
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Too soon to check version: 3.3 hours
Command Line Args:   --lint app/intl-chat-rest/handler/letter_conversations_handler_test.go --lint-cmd go: golangci-lint run --model deepseek --api-key deepseek=sk-0776461dacac42c58c29035d46065db2 -v --yes-always
Config File (/Users/zhongyuanzhang/1/intl-chat/.aider.conf.yml):
  edit-format:       editor-whole
  architect:         False
  auto-accept-architect:True
  aiderignore:       .aiderignore
  watch-files:       True
  auto-test:         True
Defaults:
  --set-env:         []
  --model-settings-file:.aider.model.settings.yml
  --model-metadata-file:.aider.model.metadata.json
  --cache-keepalive-pings:0
  --map-refresh:     auto
  --map-multiplier-no-files:2
  --input-history-file:/Users/zhongyuanzhang/1/intl-chat/.aider.input.history
  --chat-history-file:/Users/zhongyuanzhang/1/intl-chat/.aider.chat.history.md
  --user-input-color:#00cc00
  --tool-error-color:#FF2222
  --tool-warning-color:#FFA500
  --assistant-output-color:#0088ff
  --code-theme:      default
  --test-cmd:        []
  --voice-format:    wav
  --voice-language:  en
  --encoding:        utf-8
  --line-endings:    platform
  --env-file:        /Users/zhongyuanzhang/1/intl-chat/.env

Option settings:
  - 35turbo: False
  - 4: False
  - 4_turbo: False
  - 4o: False
  - aiderignore: .aiderignore
  - alias: None
  - analytics: None
  - analytics_disable: False
  - analytics_log: None
  - anthropic_api_key: None
  - api_key: ['deepseek=sk-0776461dacac42c58c29035d46065db2']
  - apply: None
  - apply_clipboard_edits: False
  - assistant_output_color: #0088ff
  - attribute_author: True
  - attribute_commit_message_author: False
  - attribute_commit_message_committer: False
  - attribute_committer: True
  - auto_accept_architect: True
  - auto_commits: True
  - auto_lint: True
  - auto_test: True
  - cache_keepalive_pings: 0
  - cache_prompts: False
  - chat_history_file: /Users/zhongyuanzhang/1/intl-chat/.aider.chat.history.md
  - chat_language: None
  - check_update: True
  - code_theme: default
  - commit: False
  - commit_prompt: None
  - completion_menu_bg_color: None
  - completion_menu_color: None
  - completion_menu_current_bg_color: None
  - completion_menu_current_color: None
  - config: None
  - copy_paste: False
  - dark_mode: False
  - deepseek: False
  - detect_urls: True
  - dirty_commits: True
  - dry_run: False
  - edit_format: editor-whole
  - editor: None
  - editor_edit_format: None
  - editor_model: None
  - encoding: utf-8
  - env_file: /Users/zhongyuanzhang/1/intl-chat/.env
  - exit: False
  - fancy_input: True
  - file: None
  - files: ['app/intl-chat-rest/handler/letter_conversations_handler_test.go']
  - git: True
  - gitignore: True
  - gui: False
  - haiku: False
  - input_history_file: /Users/zhongyuanzhang/1/intl-chat/.aider.input.history
  - install_main_branch: False
  - just_check_update: False
  - light_mode: False
  - line_endings: platform
  - lint: True
  - lint_cmd: ['go: golangci-lint run']
  - list_models: None
  - llm_history_file: None
  - load: None
  - map_multiplier_no_files: 2
  - map_refresh: auto
  - map_tokens: None
  - max_chat_history_tokens: None
  - message: None
  - message_file: None
  - mini: False
  - model: deepseek
  - model_metadata_file: .aider.model.metadata.json
  - model_settings_file: .aider.model.settings.yml
  - multiline: False
  - notifications: False
  - notifications_command: None
  - o1_mini: False
  - o1_preview: False
  - openai_api_base: None
  - openai_api_deployment_id: None
  - openai_api_key: None
  - openai_api_type: None
  - openai_api_version: None
  - openai_organization_id: None
  - opus: False
  - pretty: True
  - read: None
  - reasoning_effort: None
  - restore_chat_history: False
  - set_env: []
  - show_diffs: False
  - show_model_warnings: True
  - show_prompts: False
  - show_release_notes: None
  - show_repo_map: False
  - skip_sanity_check_repo: False
  - sonnet: False
  - stream: True
  - subtree_only: False
  - suggest_shell_commands: True
  - test: False
  - test_cmd: []
  - thinking_tokens: None
  - timeout: None
  - tool_error_color: #FF2222
  - tool_output_color: None
  - tool_warning_color: #FFA500
  - upgrade: False
  - user_input_color: #00cc00
  - verbose: True
  - verify_ssl: True
  - vim: False
  - voice_format: wav
  - voice_input_device: None
  - voice_language: en
  - watch_files: True
  - weak_model: None
  - yes_always: True

Checking imports for version 0.77.0 and executable /Users/zhongyuanzhang/.local/share/uv/tools/aider-chat/bin/python3
Installs file: /Users/zhongyuanzhang/.aider/installs.json
Installs file exists and loaded
Not first run, loading imports in background thread
No model settings files loaded
Searched for model settings files:
  - /Users/zhongyuanzhang/.aider.model.settings.yml
  - /Users/zhongyuanzhang/1/intl-chat/.aider.model.settings.yml
Loaded model metadata from:
  - /Users/zhongyuanzhang/.local/share/uv/tools/aider-chat/lib/python3.12/site-packages/aider/resources/model-metadata.json
Model metadata:
{
    "max_tokens": 8192,
    "max_input_tokens": 65536,
    "max_output_tokens": 8192,
    "input_cost_per_token": 2.7e-07,
    "input_cost_per_token_cache_hit": 7e-08,
    "cache_read_input_token_cost": 7e-08,
    "cache_creation_input_token_cost": 0.0,
    "output_cost_per_token": 1.1e-06,
    "litellm_provider": "deepseek",
    "mode": "chat",
    "supports_function_calling": true,
    "supports_assistant_prefill": true,
    "supports_tool_choice": true,
    "supports_prompt_caching": true
}
Model settings:
cache_control: false
caches_by_default: true
edit_format: "diff"
editor_edit_format: "diff"
editor_model_name: null
examples_as_sys_msg: true
extra_params: {
    "max_tokens": 8192
}
lazy: false
name: "deepseek/deepseek-chat"
reasoning_tag: null
reminder: "sys"
remove_reasoning: null
send_undo_reply: false
streaming: true
system_prompt_prefix: null
use_repo_map: true
use_system_prompt: true
use_temperature: true
weak_model_name: null
RepoMap initialized with map_mul_no_files: 2
Aider v0.77.0
Model: deepseek/deepseek-chat with editor-whole edit format, prompt cache, infinite output
Git repo: .git with 380 files
Repo-map: using 4096 tokens, auto refresh
Added app/intl-chat-rest/handler/letter_conversations_handler_test.go to the chat.
(base) zhongyuanzhang@MacBook-Pro-5 intl-chat %

Version and model info

0.77

No response

@zzy7517
Copy link
Author

zzy7517 commented Mar 14, 2025

aider --lint app/intl-chat-rest/handler/letter_conversations_handler_test.go --model deepseek --api-key "$API_KEY" -v --yes-always
got same response from this command

@zzy7517 zzy7517 changed the title lint failed for golang lint crashed for golang Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants