Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: patrick
« on: September 14, 2023, 07:51:08 PM »

Yes, that gets saved with your configuration, so you should only need to do it once.

I'll take a look at improving that detection later this afternoon.  The top level project tag is one of the things the detection code is looking at.  For this specific case, I think we should rule out Ant just because of the supplied DOCTYPE. 
Posted by: rjpontefract
« on: September 14, 2023, 07:34:00 PM »

Thanks for the replies. 

If I use set-var-def-antmake-identify 0, is that remembered across restarts of SE?

Here's a small example that is identified as an ant file.  Is it the top level <project> tag that is being used to identify the file?

Code: [Select]
<!DOCTYPE ProjectAttributes SYSTEM "XML/platforms.dtd">
<project>

  <projectattributes name="TestAttributes">
  </projectattributes>

</project>
Posted by: Clark
« on: September 14, 2023, 04:42:36 PM »

Please post a small sample file which reproduces this problem.
Posted by: patrick
« on: September 14, 2023, 11:25:08 AM »

There is some code that looks at the beginning of the file and tries to decide if it's Ant or not.  You can disable that by going to the SlickEdit command line, and setting a variable to turn it off: set-var def-antmake-identify 0

It looks like it's looking for a certain structure of project node to decide whether it's an ant file.  Are the files it's mis-identifying for you something with a public DTD?  I'd like to see if it was something we could rule out.
Posted by: rjpontefract
« on: September 14, 2023, 05:32:52 AM »

I have several files with an extension of .XML that, when loaded into SE, cause the document mode to be set to ANT and not XML. 
How do I stop SE from doing this as they aren't ANT build files.