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

Code-D does not find symbols from anything in additional importPaths #495

Open
jordan4ibanez opened this issue Feb 4, 2025 · 0 comments

Comments

@jordan4ibanez
Copy link

jordan4ibanez commented Feb 4, 2025

If I have a setup as so:

{
// other stuff would be here.
	"sourcePaths": [
		"source",
		"mods"
	],
	"importPaths": [
		"source",
		"mods"
	]
}

When you start working in the mods folder there is a very specific scenario which happens.

So if I have something like this in mods/api.d

module mods.api;

class Mob {
    int hp = 0;
}

If I open up a file, let's say, foop.d in the same folder as the api.d, things start getting kind of weird.

Imports, symbols, etc seem to break.

I have made a video to showcase what is happening:

https://youtu.be/8Gm9sZjErgg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant