monorepo: Extension fails to open config

Problem

The path to the config is prefixed with C:, even though the project is on another drive. image The path after d: is correct.

Expected behavior

The config should load ๐Ÿ˜„

Steps to reproduce

  1. Create the project on a non-main drive (not sure if related โ€“ I initialized the project with SkeletonUI)
  2. Install the extension

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I created a repo that reproduces this and #843 on my local (Windows) machine

Sure, here you go:

/**
 * @type { import("@inlang/core/config").DefineConfig }
 */
export async function defineConfig(env) {
	const { default: pluginYaml } = await env.$import(
		"https://cdn.jsdelivr.net/gh/felixhaeberle/inlang-plugin-yaml@2.0.1/dist/index.js"
	);
	const { default: sdkPlugin } = await env.$import(
		'https://cdn.jsdelivr.net/npm/@inlang/sdk-js-plugin@0.6.5/dist/index.js'
	);
	const { default: standardLintRules } = await env.$import(
		"https://cdn.jsdelivr.net/npm/@inlang/plugin-standard-lint-rules@3/dist/index.js",
	);

	return {
		referenceLanguage: 'en',
		plugins: [
			sdkPlugin({
				languageNegotiation: {
					strategies: [{ type: 'url' }]
				}
			}),
			pluginYaml({
				pathPattern: './languages/{language}.yml'
			}),
			standardLintRules()
		]
	};
}

@NiklasBuchfink I canโ€™t reproduce this on Mac. Can you help me out?

Thank you for filing the bug! I assigned @felixhaeberle who is the lead of the ide extension at the moment.