fix: 🐛 fix config.py import paths
This commit is contained in:
parent
bc75ff294a
commit
97861bf411
4 changed files with 14 additions and 17 deletions
|
|
@ -46,6 +46,7 @@ function FTCDialog() {
|
|||
<GridDiv>
|
||||
<Button
|
||||
onClick={() => {
|
||||
dispatch(setShowDialog(false));
|
||||
navigate("/models");
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ a = Analysis(
|
|||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[
|
||||
('server/continuedev', 'server/continuedev'),
|
||||
('server/continuedev', 'continuedev'),
|
||||
(certifi.where(), 'ca_bundle'),
|
||||
] + copy_metadata('replicate'),
|
||||
hiddenimports=['anthropic', 'github', 'ripgrepy', 'bs4', 'redbaron'],
|
||||
|
|
|
|||
2
run.spec
2
run.spec
|
|
@ -10,7 +10,7 @@ a = Analysis(
|
|||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[
|
||||
('server/continuedev', 'server/continuedev'),
|
||||
('server/continuedev', 'continuedev'),
|
||||
(certifi.where(), 'ca_bundle')
|
||||
] + copy_metadata('replicate'),
|
||||
hiddenimports=['anthropic', 'github', 'ripgrepy', 'bs4', 'redbaron'],
|
||||
|
|
|
|||
|
|
@ -5,11 +5,7 @@ from typing import Coroutine, List, Optional, Union
|
|||
from ..libs.llm.base import LLM
|
||||
from ..libs.util.devdata import dev_data_logger
|
||||
from ..libs.util.logging import logger
|
||||
from ..libs.util.paths import (
|
||||
convertConfigImports,
|
||||
getConfigFilePath,
|
||||
getDiffsFolderPath,
|
||||
)
|
||||
from ..libs.util.paths import getConfigFilePath, getDiffsFolderPath
|
||||
from ..libs.util.telemetry import posthog_logger
|
||||
from ..models.filesystem import RangeInFile
|
||||
from ..models.filesystem_edit import (
|
||||
|
|
@ -252,17 +248,17 @@ class ContinueSDK(AbstractContinueSDK):
|
|||
|
||||
return config
|
||||
except ModuleNotFoundError as e:
|
||||
if not retry:
|
||||
raise e
|
||||
# if not retry:
|
||||
raise e
|
||||
# Check if the module was "continuedev.src"
|
||||
if e.name == "continuedev.src":
|
||||
convertConfigImports(shorten=True)
|
||||
return self._load_config_dot_py(retry=False)
|
||||
elif e.name.startswith("continuedev."):
|
||||
convertConfigImports(shorten=False)
|
||||
return self._load_config_dot_py(retry=False)
|
||||
else:
|
||||
raise e
|
||||
# if e.name == "continuedev.src":
|
||||
# convertConfigImports(shorten=True)
|
||||
# return self._load_config_dot_py(retry=False)
|
||||
# elif e.name.startswith("continuedev."):
|
||||
# convertConfigImports(shorten=False)
|
||||
# return self._load_config_dot_py(retry=False)
|
||||
# else:
|
||||
# raise e
|
||||
|
||||
def get_code_context(
|
||||
self, only_editing: bool = False
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue