Jump to content
Sign in to follow this  
Guest Joe

Another "variables view" bug

Recommended Posts

Guest Joe

Variables are not shown because the header file is parsed by the IDE incorrectly:

 

To reproduce:

 

1/

Create a project that uses the 12F629 device (any device will work, but i know the variable names for this device)

 

2/

Open variables view in the workspace browser, and sort by file.

 

3/

double-click "fsr" in the list of vars (this opens the include file that contains the variable).

 

4/

The 1st 8 register variable names in the .h file are defined as:

 

VARNAME@ADDRESS with no spaces, these all appear in the variables list in the workspace view.

 

In the .h file the other variables are defined as:

VARNAME <TAB> @ADDRESS

 

These variables do not appear in the workspace browser.

 

5/

edit the file line, change:

char pir1 <TAB><TAB> @0x000C;

 

to:

char pir1@0x000C;

 

and save the file. The workspace updates the variables that it is showing, and now "pir1" is also in the list.

 

 

... Also try this:

edit the file, change:

char pir1@0x000C;

 

to:

 

char pir1 <TAB><TAB> @12;

 

 

and save file... It shows the variable when the address is a decimal number, change it back to hex:

 

char pir1 <TAB><TAB> @0xC;

 

save file and it disapears again !

 

Weird!!

 

???

Share this post


Link to post
Share on other sites
Guest Joe

This is directly related to my other post about variable view displaying ADDRESSES instead of variable names.

 

If you edit and save the file, removing all the tabs between the variable name and the @

The file is parsed correctly and the variable viewer is correct.

 

This is a temperary fix. Debugging will be required on the file parser code within the IDE.

Share this post


Link to post
Share on other sites
Guest Pavel

This is a good one ::P: Now fixed. Fix will be available in the next release.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...