QuBiT / cucumber-netbeans-plugin

Plugin / Module which allow Syntax Highlighting and many more in NetBeans with .feature Files
MIT License
50 stars 19 forks source link

Invalid error reports #25

Open gucki opened 14 years ago

gucki commented 14 years ago

The plugin reports "Unexpected ':'" for the first line of this code (taken from the cucumber site):

Feature: Search courses In order to ensure better utilization of courses Potential students should be able to search for courses

Scenario: Search by topic Given there are 240 courses which do not have the topic "biology" And there are 2 courses A001, B205 that each have "biology" as one of the topics When I search for "biology" Then I should see the following courses: | Course code | | A001 | | B205 |

QuBiT commented 14 years ago

Hi,

I've copy and pasted this code to a feature file in NetBeans 6.8 and 6.9RC1 and there is NO unexpected error or anything else ...

So please check it again, and provide more information about your configuration (netbeans version, module version ...)

Cheers Roland

gucki commented 14 years ago

Hi Roland,

here are the details:

Produktversion: NetBeans IDE 6.8 (Build 100326-unknown-revn) Java: 1.6.0_15; Java HotSpot(TM) 64-Bit Server VM 14.1-b02 System: Linux Version 2.6.32-22-generic läuft auf amd64; UTF-8; de_DE (nb) Ubuntu 10.04 LTS

Cucumber Features Version: 1.7.8 Source: NetBeans Beta

Syntax highlighting etc. works all fine. It's just that the first line (Feature: ...) has a red exclamation mark and the whole line is red underlined. If you need I can post a screenshot.

Corin

QuBiT commented 14 years ago

Hi again,

I now also have tested this file:

http://gist.github.com/438002

on my old laptop:

Produktversion: NetBeans IDE 6.8 (Build 100326-unknown-revn) Java: 1.6.0_18; OpenJDK Client VM 14.0-b16 System: Linux Version 2.6.32-22-generic läuft auf i386; UTF-8; de_AT (nb) Ubuntu 10.04 LTS

and also with Version 1.7.8 (upgraded from 1.6.7 and also from a clean install [deleted the settings folder]) from NetBeans Beta ...

... BUT ... there is no error showing up ...

so I suggest that you try to delete your netbeans-settings-folder:

/home/'user'/.netbeans/6.8

be aware that this will delete all your settings from netbeans, but not your projects if you have stored them elsewhere

so this may solve your problem ... but currently I am not able to reproduce your error ...even if I use the same system, version, file ...

Cheers Roland

QuBiT commented 14 years ago

Additional if this does not solve your problem you can try to use the 32bit version of java.

If this does solve your problem, then we at least get a clue why this strange thing occurs.

QuBiT commented 14 years ago

One more thing:

If you want to help debugging this problem (and I really would appreciate it, as I can't reproduce the error) then do the following:

  1. create a file dummy.nbs in the folder of your feature file.
  2. right click on that file in the project navigator
  3. select AST-View from the right click menu (AST = Abstract Syntax Tree)
  4. open your feature file (when you did not already opened it)
  5. place your cursor to the colon (':') of the feature file with the error message
  6. send me a screenshot of that AST View (fully expaned tree if possible)

Thx in advance

QuBiT commented 14 years ago

@gucki something new to report?