[BUG]: split('/') caused bug on windows (#6697)

* fix: trying to figure out this pathing issue

* fix: found the bug

* fix: adding linter rule

* fix: rule for join('/') as well

* fix: removing useless string template

* fix: removing useless string template

* fix: ???? What ????

* fix: remove unused import

* fix: circular dep was added when I cleaned up the path logic, fixed the circular dep by passing args from the parent function
This commit is contained in:
Kevin Nadro
2025-05-06 11:48:45 -05:00
committed by GitHub
parent e06a09ed42
commit 941eacd559
14 changed files with 100 additions and 29 deletions

View File

@ -13,7 +13,10 @@ import {
import { getProjectInfo } from '@src/lib/desktop'
import { isDesktop } from '@src/lib/isDesktop'
import { BROWSER_PATH, PATHS, getProjectMetaByRouteId } from '@src/lib/paths'
import { loadAndValidateSettings } from '@src/lib/settings/settingsUtils'
import {
loadAndValidateSettings,
readLocalStorageAppSettingsFile,
} from '@src/lib/settings/settingsUtils'
import { codeManager } from '@src/lib/singletons'
import type {
FileLoaderData,
@ -21,6 +24,7 @@ import type {
IndexLoaderData,
} from '@src/lib/types'
import { settingsActor } from '@src/lib/singletons'
import { readAppSettingsFile } from '@src/lib/desktop'
export const fileLoader: LoaderFunction = async (
routerData
@ -29,6 +33,8 @@ export const fileLoader: LoaderFunction = async (
let { configuration } = await loadAndValidateSettings()
const projectPathData = await getProjectMetaByRouteId(
readAppSettingsFile,
readLocalStorageAppSettingsFile,
params.id,
configuration
)