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

Processing of message 'al/hasProjectClosureLoadedRequest' failed with error: 'Invalid URI: The format of the URI could not be determined.' #7948

Open
kevinsjones71 opened this issue Jan 15, 2025 · 1 comment

Comments

@kevinsjones71
Copy link

[Error - 1:19:30 PM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'al/hasProjectClosureLoadedRequest' failed with error: 'Invalid URI: The format of the URI could not be determined.'
Details:
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
at System.Uri..ctor(String uriString)
at Microsoft.Dynamics.Nav.CodeAnalysis.Utilities.PathUtilities.CreateUriFilePath(String filePath) in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Utilities\PathUtilities.cs:line 457
at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.Solution.FindProject(String path) in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Workspace\Solution\Solution.cs:line 302
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.HasProjectClosureLoadedRequestHandler.HandleAsync(HasProjectClosureLoadedRequest request, Int32 requestId, CancellationToken cancellationToken) in X:\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\HasProjectClosureLoadedRequestHandler.cs:line 41
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken)
at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in X:\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 84

Laptop died today - new laptop - installed VS Code - pulled the code from GitHub that I was working on, went to publish and just got this now?

Any ideas, please help I am having a really bad day and need to get this sorted!

@BazookaMusic
Copy link
Contributor

For immediate comfort, try cloning your code into a different folder preferably with a simple path to it, eg: C:/code/project

What is the path to your code right now?Any special characters?

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

2 participants