Skip to content
Snippets Groups Projects
Commit f45ae700 authored by Florian Angerer's avatar Florian Angerer
Browse files

Fix: Did not properly configure source builder for parsing.

parent 64d92738
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ public class RSource {
public static Source fromFileName(String text, String path, boolean internal) throws URISyntaxException {
File file = new File(path).getAbsoluteFile();
URI uri = new URI("file://" + file.getAbsolutePath());
Source.Builder<RuntimeException, RuntimeException, RuntimeException> builder = Source.newBuilder(text).name(file.getName()).uri(uri).mimeType(RRuntime.R_APP_MIME);
Source.Builder<RuntimeException, RuntimeException, RuntimeException> builder = Source.newBuilder(file).content(text).uri(uri).mimeType(RRuntime.R_APP_MIME);
if (internal) {
builder.internal();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment