Skip to content

Initialize Language Server Error in VScode large workspace #312

@jokervTv

Description

@jokervTv

Describe the bug
Initialising Language Server Error in VScode.

To Reproduce
Open a large fortran workspace.

Start with posting:

fortls --debug_filepath mpas_atm_time_integration.F --debug_rootpath . --debug_log

Testing "initialize" request:
  Root = "."
REQUEST None None
fortls - Fortran Language Server 2.13.0 Initialized
  Successful with errors:
    fortls debugging enabled

  Source directories:
    C:\Users\****\src\core_atmosphere\dynamics
fortls --debug_filepath mpas_atm_time_integration.F --debug_rootpath . --debug_log --enable_code_actions --autocomplete_no_prefix --lowercase_intrinsics --nthreads=4 --incremental_sync

Testing "initialize" request:
  Root = "."
REQUEST None None

long time no output

Alternatively, you can try and describe the steps that you followed to encounter the bug:

  1. Open a large fortran file
  2. error on vscode output

Setup information (please complete the following information):

  • OS: windows
  • Python 3.11
  • fortls 2.13.0
  • Code editor used VS Code
  • Modern Fortran v3.2.0

Configuration information (please complete the following information):
Using default.

VScode Log

["INFO" - 14:29:50] Initialising Language Server for workspace: c:\Users\**\src\core_atmosphere\dynamics\mpas_atm_time_integration.F with command-line options: --enable_code_actions, --autocomplete_no_prefix, --lowercase_intrinsics, --nthreads=4, --incremental_sync
[Error - 14:30:11] Server initialization failed.
  Message: Error sending result: '<fortls.parse_fortran.FortranFile object at 0x000001ACEBEE63D0>'. Reason: 'RecursionError('maximum recursion depth exceeded while calling a Python object')'
  Code: -32603 

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions