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

The SourcePathProviderImpl can not be created because of an IllegalArgumentException #151

Open
entlicher opened this issue Sep 23, 2015 · 1 comment

Comments

@entlicher
Copy link

See https://netbeans.org/bugzilla/show_bug.cgi?id=255499

The SourcePathProviderImpl can not be created because of:
Caused: java.lang.IllegalArgumentException: file:/....jar is not a valid classpath entry; use a jar-protocol URL.
at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:104)
at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:68)
at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.(SimplePathResourceImplementation.java:131)
at org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:77)
at org.netbeans.spi.java.classpath.support.ClassPathSupport.createClassPath(ClassPathSupport.java:126)
at org.netbeans.modules.scala.debugger.projects.SourcePathProviderImpl.(SourcePathProviderImpl.java:205)

The code need to catch IllegalArgumentException, like we do it in org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl

@sworisbreathing
Copy link

The impact of this is pretty high. It causes the IDE to hang unrecoverably when it goes into debugger mode, even if I'm debugging a project that doesn't use scala. The only way to recover is to run killall java from the command line and relaunch the IDE.

In order for me to debug my project, I had to uninstall the plugin.

dcaoyuan added a commit that referenced this issue Oct 16, 2017
Fixed issue #151 - dealing with an exception in SourcePathProviderImpl
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