ualberta-smr / LibCompPlugin

An IntelliJ plugin for comparing libraries
http://smr.cs.ualberta.ca/comparelibraries
MIT License
6 stars 1 forks source link

Trigger LibComp on save file and file open #21

Closed relhajj closed 4 years ago

relhajj commented 4 years ago

Current functionality of LibComp:

GOAL/WHAT THIS ISSUE IS FOR:

snadi commented 4 years ago

This still doesn't work for me until I right click. I tried the following:

  1. Create a new java file
  2. Add import org.junit.Test;
  3. Do ctrl+s to save the file

Nothing happens

  1. Right click anywhere in the file and still nothing happens

Then, I tried the same exact above except that in Step 2, I typed import org.junit.*. After step 3, still nothing happens. Then, when I right clicked, the highlighting happened.

This means two things:

snadi commented 4 years ago

Just wanted to mention that i know tried running it from source (from within IntelliJ through run as plugin) and it seems to work fine. Not sure why there would be a difference between the zip installation and running from source

snadi commented 4 years ago

To clarify, it works fine in the running from source in terms of highlighting on file open. However, the issue of the org.junit.* vs org.junit.Test remains. Also, can you add the same event handling for file save? So basically, if I add an import and save, it should highlight.. I shouldn't have to leave the file and come back to it for it to trigger the highlighting.