Skip to content

Add styleguide name validation for dart file creation (was Problem deleting file with space in it) #3292

Closed
@danrubel

Description

@danrubel

[user feedback]
I had issues deleting a dart file with a space in it.

This was on Windows 8 OS, and the file was a stubbed class called WebGL Triangle.dart, Thanks...
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 7905
////////////////////////////////////////////////////////////////////////////////////
OS: Windows NT (unknown) - amd64 (6.2)
SDK installed = true
Dartium installed = true
AnalysisServer enabled = true
////////////////////////////////////////////////////////////////////////////////////

!ENTRY com.google.dart.tools.core 4 0 2012-05-27 09:02:08.053
!MESSAGE Analysis Task Exception
!STACK 0
java.lang.IllegalArgumentException: Illegal character in path at index 5: WebGL Triangle.dart
       at java.net.URI.create(Unknown Source)
       at java.net.URI.resolve(Unknown Source)
       at com.google.dart.tools.core.analysis.AnalysisUtility.parse(AnalysisUtility.java:79)
       at com.google.dart.tools.core.analysis.ParseLibraryFileTask.perform(ParseLibraryFileTask.java:75)
       at com.google.dart.tools.core.analysis.AnalysisServer$1.run(AnalysisServer.java:284)
       at java.lang.Thread.run(Unknown Source)
Caused by: java.net.URISyntaxException: Illegal character in path at index 5: WebGL Triangle.dart
       at java.net.URI$Parser.fail(Unknown Source)
       at java.net.URI$Parser.checkChars(Unknown Source)
       at java.net.URI$Parser.parseHierarchical(Unknown Source)
       at java.net.URI$Parser.parse(Unknown Source)
       at java.net.URI.<init>(Unknown Source)
       ... 6 more

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions