Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Serious / showstopper IDE problem with cut and paste

$
0
0

Hi,

  I am using latest Idea 12.0.1 Ultimate on ubuntu 12.0.4 LTS and there is a serious problem with rearranging text:  just doing simple cut and paste within a single document shows the text is getting mangled

 

Here is an example:

 

Before cut / paste:

 

 

    private class LogWriter extends Thread {

      private static final long SLEEP_MILLIS = 50;

      BlockingQueue<String> queue = new LinkedBlockingQueue<String>();

      PrintWriter pw;

      final static String LOGFILE="/shared/tinyhttpserver.log";

      private LogWriter() throws IOException {

        setDaemon(true);

        pw = new PrintWriter(new BufferedWriter(new FileWriter(LOGFILE)));

      }

      @Override

      public void run() {

        try {

          while (true) {

            Thread.sleep(SLEEP_MILLIS);

            String val;

            while ((val=queue.poll(0, TimeUnit.MILLISECONDS)) != null) {

              pw.println(String.format("%s %s", (new Date()).toString().substring(0, 19), val));

            }

          }

        } catch (Exception e) {

          tracerr("Error occurred in run loop", e);

        } finally {

          if (pw!=null) {

            pw.close();

          }

        }

      }

    }

After cut/paste (IN SAME DOCUMENT!)   .  I highlighted several of the problems.
  private static class LogWriter extends Thread {
    private static final long SLEEP_MILLIS = 50;
    BlockingQueue<String> queue = newThread<String>();
    Stringpw;
    final static BlockingQueue LOGFILE="/shared/tinyhttpserver.log";
    private LogWriter() throws String {
      setDaemon(true);
      pw = new LinkedBlockingQueue(new PrintWriter(new String(LOGFILE)));
    }
    @IOException
    public void run() {
      try {
        while (true) {
          PrintWriter.sleep(SLEEP_MILLIS);
          BufferedWriter val;
          while ((val=queue.poll(0, FileWriter.MILLISECONDS)) != null) {
            pw.println(Override.format("%s %s", (new Thread()).toString().substring(0, 19), val));
          }
        }
      } catch (String e) {
        tracerr("Error occurred in run loop", e);
      } finally {
        if (pw!=null) {
          pw.close();
        }
      }
    }
  }
What is going on here?  This is a showstopper problem.

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>