question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot create Uri using with method

See original GitHub issue

monaco-editor version: 0.15.2 Browser: Chrome OS: Windows

dependencies:

 "@angular/animations": "^7.0.3",
 "@angular/cdk": "^7.0.4",
 "@angular/common": "~7.0.3",
 "@angular/core": "~7.0.3",
 "@angular/forms": "~7.0.3",
 "@angular/http": "~7.0.3",
 "@angular/material": "^7.0.4",
 "@angular/platform-browser": "~7.0.3",
 "@angular/platform-browser-dynamic": "~7.0.3",
 "@angular/router": "~7.0.3",

Steps or JS usage snippet reproducing the issue:

const uri: monaco.Uri = new monaco.Uri().with({
   path : 'inmemory://abc'
});

Earlier, this used to work. Now it throws an error. Even with all the optional parameters provided.

Error:

capture

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
windischbcommented, Dec 7, 2018

following is working for me:

monaco.Uri.parse(`file://local/code.ts`)
0reactions
sushantahirrao-gepcommented, Sep 11, 2019

import { Injectable } from ‘@angular/core’;

@Injectable() export class SharedService { public activeDropdown: any;

testMethod() {
    console.log('hey');
}

newMethod() {
    console.log('newMethod');
}

}

How do I resolve ‘@angular/core’ in above code sample? Please help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.net.URI.create exception - Stack Overflow
Cannot reproduce. Both URI.create() and new URI() throw that exception. In the case of URI.create() it is wrapped in an ...
Read more >
URI (Java Platform SE 8 ) - Oracle Help Center
This class provides constructors for creating URI instances from their components or by parsing their string forms, methods for accessing the various ...
Read more >
Uri Class (System) | Microsoft Learn
The Uri class defines the properties and methods for handling URIs, including parsing, comparing, and combining. The Uri class properties are read-only; to ......
Read more >
Uri | Android Developers
Creates an opaque Uri from the given components. Encodes the ssp which means this method cannot be used to create hierarchical URIs.
Read more >
UriComponentsBuilder (Spring Framework 6.0.3 API)
Create a UriComponentsBuilder with one of the static factory methods (such as fromPath(String) or fromUri(URI) ); Set the various URI components through the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found