-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error when a D project is opened as the root #39
Comments
@WebFreak001 Any idea about this? |
is the LSP client sending didChangeWorkspaceFolders before config changes like at startup? It seems it registers the same folder twice. |
ah the issue might actually be that there is a trailing |
I pushed some changes to serve-d, try building them from source to see if that fixes the issue. |
Nothing changed. stderr 2021-02-24T15:08:22.646 [info] source\served\extension.d:667:rootsForProject Root Suggestions: [RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures\\", true), RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures", true)]
stderr 2021-02-24T15:08:22.785 [info] source\served\extension.d:701:doStartup Initializing instance for root RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures", true)
stderr object.Exception@..\..\..\..\AppData\Local\dub\packages\workspace-d-3.6.0-pre.8\workspace-d\source\workspaced\backend.d(564): Instance with cwd 'C:\Users\aminy\Documents\GitHub\JavaScript\atom-ide-d\spec\fixtures' already exists!
|
When you spawn serve-d, what should be the cwd? Line 23 in 6a6ecc2
Changing |
sorry, I forgot Windows uses |
the manyProjectsThreshold needs to be improved on serve-d side anyway as there is lazy loading now, which means it should only complain once you loaded that many projects. |
Unfortunately, the error still happens. The log has changed: [trace] source\served\extension.d:534:doGlobalStartup Starting dlangui
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.500 [trace] source\served\extension.d:536:doGlobalStartup Starting importer
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.500 [trace] source\served\extension.d:538:doGlobalStartup Starting moduleman
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.500 [trace] source\served\extension.d:540:doGlobalStartup Starting snippets
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.501 [trace] source\served\extension.d:681:doStartup Initializing serve-d for file:///C:/Users/aminy/Documents/GitHub/JavaScript/atom-ide-d/spec/fixtures/
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.502 [info] source\served\extension.d:667:rootsForProject Root Suggestions: [RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures\\", true), RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures", true)]
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.502 [info] source\served\extension.d:701:doStartup Initializing instance for root RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures\\", true)
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.502 [trace] source\served\types.d:565:activeInstance Setting active instance to C:\Users\aminy\Documents\GitHub\JavaScript\atom-ide-d\spec\fixtures.
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.502 [trace] source\served\extension.d:728:doStartup Starting dub...
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.642 [trace] source\served\extension.d:750:doStartup Started dub with root dependencies []
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.642 [trace] source\served\extension.d:777:doStartup Started files provider for root RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures\\", true)
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.642 [trace] source\served\extension.d:779:doStartup Loaded Components for C:\Users\aminy\Documents\GitHub\JavaScript\atom-ide-d\spec\fixtures: ["dub"]
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.642 [info] source\served\extension.d
logger.ts:19 D (serve-d) stderr :785:doStartup Root RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures\\", true) initialized in 140 ms and 477 μs
logger.ts:19 D (serve-d) stderr 2021-02-24T15:17:55.642 [info] source\served\extension.d:701:doStartup Initializing instance for root RootSuggestion("C:\\Users\\aminy\\Documents\\GitHub\\JavaScript\\atom-ide-d\\spec\\fixtures", true)
logger.ts:19 D (serve-d) stderr
logger.ts:19 D (serve-d) stderr object.Exception@..\..\..\..\AppData\Local\dub\packages\workspace-d-3.6.0-pre.8\workspace-d\source\workspaced\backend.d(564): Instance with cwd 'C:\Users\aminy\Documents\GitHub\JavaScript\atom-ide-d\spec\fixtures' already exists!
logger.ts:19 D (serve-d) stderr ----------------
logger.ts:19 D (serve-d) stderr
logger.ts:19 D (serve-d) stderr 0x00007FF764773515 in workspaced.backend.WorkspaceD.addInstance at C:\Users\aminy\AppData\Local\dub\packages\workspace-d-3.6.0-pre.8\workspace-d\source\workspaced\backend.d(565)
logger.ts:19 D (serve-d) stderr 0x00007FF764543774 in served.extension.doStartup at C:\Users\aminy\Documents\GitHub\D\serve-d\source\served\extension.d(715)
logger.ts:19 D (serve-d) stderr 0x00007FF7645412B7 in served.extension.changedConfig at C:\Users\aminy\Documents\GitHub\D\serve-d\source\served\extension.d(124)
logger.ts:19 D (serve-d) stderr 0x00007FF76454B7DD in served.extension.initialize.__lambda4 at C:\Users\aminy\Documents\GitHub\D\serve-d\source\served\extension.d(481)
logger.ts:19 D (serve-d) stderr 0x00007FF7646D2F85 in served.utils.async.parallelMain at C:\Users\aminy\Documents\GitHub\D\serve-d\serverbase\source\served\utils\async.d(51)
logger.ts:19 D (serve-d) stderr 0x00007FF764C28958 in fiber_entryPoint
logger.ts:19 D (serve-d) stderr 0x00007FF764C28F19 in pure nothrow @nogc void core.thread.fiber.Fiber.initStack().trampoline()
|
try again now, should work this time for sure:tm: |
Whee! It is fixed now. 🎉 |
Fixed in Pure-D/serve-d@3d47689 |
If you open this repo, fixtures is a sub-folder and it works, but if you open a D project as the root of the project it errors for strange reasons.
The text was updated successfully, but these errors were encountered: