testmycode / tmc-netbeans

Test My Code NetBeans plugin
GNU General Public License v2.0
19 stars 18 forks source link

plugin does not install under netbeans-9.0-vc3, but works in 9.0-rc1 #146

Open homberghp opened 6 years ago

homberghp commented 6 years ago

due to a change in dependency or dependency handling in netbeans-9.0-vc3 (on top of java 10), a precursor of the final 9.0 release under the apache falg, the plugin will not install. The message I get is:

Some plugins require plugin org.jdesktop.beansbinding to be installed. The plugin org.jdesktop.beansbinding is requested in version 1.24.1.121. The following plugin is affected:       Test My Code plugin

I am not sure where the problem lies: Either to strict version selection for the plugin (no open end) or not being available in netbeans 9.0

nygrenh commented 6 years ago

Thanks for reporting this!

I have now built an experimental version of the plugin without the beansbinding dependency. You should be able to install it if you change your update url to http://update.testmycode.net/tmc-netbeans_test/updates.xml.

homberghp commented 6 years ago

This version installs cleanly with netbeans-9.0-vc3 on top of java-10-oracle, on ubuntu. I currently cannot access the server, but that is consistent with the behaviour of my netbean-82 installation and migth be an other issue. Thx. I will drop the issue at netbeans.apache.org, because it is not relevant to them anymore.

On Tue, Jul 17, 2018 at 1:20 PM Henrik Nygren notifications@github.com wrote:

Thanks for reporting this!

I have now built an experimental version of the plugin without the beansbinding dependency. You should be able to install it if you change your update url to http://update.testmycode.net/tmc-netbeans_test/updates.xml.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/testmycode/tmc-netbeans/issues/146#issuecomment-405548080, or mute the thread https://github.com/notifications/unsubscribe-auth/AECVtt8pLi2hgVRdwzhnnGusnHCkZED5ks5uHciOgaJpZM4VShgJ .

-- Pieter Van den Hombergh. No software documentation is complete with out it's source code.

joonashak commented 5 years ago

Just installed this on NetBeans 9.0 build 1.2.0 and everything seems to work (so far I've just installed it and downloaded and updated exercises from TMC server). I'll be using this set up for course work, so I'll report back if I encounter any problems.

However, I did get an exception while TMC was extracting one of the exercise zips. This isn't necessary an issue, because the exercise in question seems to have been unzipped successfully in the end. I thought I'd let you know anyway:

java.lang.NullPointerException
    at fi.helsinki.cs.tmc.langs.utils.TmcProjectYmlParser.<init>(TmcProjectYmlParser.java:30)
    at fi.helsinki.cs.tmc.langs.io.ConfigurableStudentFilePolicy.isUpdatingForced(ConfigurableStudentFilePolicy.java:88)
    at fi.helsinki.cs.tmc.langs.io.zip.StudentFileAwareUnzipper.mayDelete(StudentFileAwareUnzipper.java:233)
    at fi.helsinki.cs.tmc.langs.io.zip.StudentFileAwareUnzipper.deleteFilesNotInZip(StudentFileAwareUnzipper.java:144)
    at fi.helsinki.cs.tmc.langs.io.zip.StudentFileAwareUnzipper.unzip(StudentFileAwareUnzipper.java:127)
    at fi.helsinki.cs.tmc.langs.AbstractLanguagePlugin.extractProject(AbstractLanguagePlugin.java:75)
    at fi.helsinki.cs.tmc.langs.util.TaskExecutorImpl.extractProject(TaskExecutorImpl.java:68)
[catch] at fi.helsinki.cs.tmc.core.commands.ExerciseDownloadingCommand.extractProject(ExerciseDownloadingCommand.java:111)
Caused: fi.helsinki.cs.tmc.core.exceptions.ExtractingExericeFailedException: Extracting zip for viikko08-Viikko08Tehtava4 failed
    at fi.helsinki.cs.tmc.core.commands.ExerciseDownloadingCommand.extractProject(ExerciseDownloadingCommand.java:120)
[catch] at fi.helsinki.cs.tmc.core.commands.DownloadOrUpdateExercises.call(DownloadOrUpdateExercises.java:81)
    at fi.helsinki.cs.tmc.core.commands.DownloadOrUpdateExercises.call(DownloadOrUpdateExercises.java:29)
    at fi.helsinki.cs.tmc.core.utilities.ExceptionTrackingCallable.call(ExceptionTrackingCallable.java:39)
    at fi.helsinki.cs.tmc.utilities.BgTask.call(BgTask.java:147)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

The course in question is hy-tira-s18.

PS. Thanks for making TMC work on NB9! At least for me, working on 8.2 on macOS has been quite painful. NB9 already seems way smoother and easier to live with.

tomWhilbert commented 5 years ago

Hi, Just installed this test plugin on top of Netbeans 11, macos 10.14.5.

samip5 commented 4 years ago

It seems like update.testmycode.net is not working anymore, so I cannot download the experimental plugin. :(

nygrenh commented 4 years ago

Please see https://www.mooc.fi/en/installation/netbeans for the latest version. It's much newer than the experimental version.

samip5 commented 4 years ago

Please see https://www.mooc.fi/en/installation/netbeans for the latest version. It's much newer than the experimental version.

Netbeans version of that is pretty old, in that regard that it has no dark mode by default. Newer Netbeans have that, and for the life of me, I cannot use a white UI nor background while coding anything.

P.S I already tried that, and came to the conclusion that I CANNOT use it when Mac OS X UI is set to dark, as the white text on like dependencies on packages cannot be seen easilly.

Screenshot 2020-05-23 at 8 51 04
nygrenh commented 4 years ago

Have you tried installing taking the plugin repository url (https://download.mooc.fi/tmcbeans/updates/updates.xml) from that netbeans and using that on Netbeans 11.3?

samip5 commented 4 years ago

Have you tried installing taking the plugin repository url (https://download.mooc.fi/tmcbeans/updates/updates.xml) from that netbeans and using that on Netbeans 11.3?

Yup, that works. :) I hadn't tried that as I did not think to look for the actual URL of the plugin.